Docs · Reference
API reference
Version 1. One base URL, an optional API key, filters with .gte and .lte operators, column selection and cursor paging. Machine-readable spec: openapi.json (OpenAPI 3.1).
Overview#
| Value | |
|---|---|
| Base URL | https://rohdeadata.com/api/v1 |
| Formats | JSON by default. format=csv on /signals/weekly, /events and /companies returns CSV with a header row. |
| Dates and times | Dates are YYYY-MM-DD. Times are UTC, ISO 8601. |
| Sort order | Rows are sorted by ticker, then week_start (signals) or event_date (events). |
| Strictness | An unknown parameter, column or operator is a 400, never silently ignored. |
Authentication#
The demo tier needs no key. For trial and full access, send your key in the Authorization header:
curl "https://rohdeadata.com/api/v1/companies" \
-H "Authorization: Bearer rd_t_0123456789abcdef0123456789abcdef"Or as a query parameter, ?api_key=…. A key in a URL can end up in server logs and browser history, so use the header where you can. Keys look like rd_t_… (trial) or rd_f_… (full), followed by 32 hex characters. We store only a hash of each key, so a lost key can't be shown again; ask for a new one. A key that is wrong or past its end date returns 401 invalid_api_key.
Access tiers#
| Tier | How | Sees | Limit |
|---|---|---|---|
| Demo | No key | 3 companies, listed in /status as demo_tickers, full history | 20 calls a minute per IP |
| Trial | Key, 30 days | 20 companies, last 104 complete weeks | 120 calls a minute |
| Full | Key | Every company and week, plus /bulk, /builds and as_of | 120 calls a minute |
Asking for a ticker, date range, past build or bulk file outside your tier returns 403 not_in_plan, and the message says what your tier covers. Request a trial key.
Rate limits#
Limits are fair-use and approximate: they are counted separately at each server location. Every response carries:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Calls allowed per minute for your tier. |
X-RateLimit-Remaining | Calls left in the current minute. |
X-Rohdea-Build | The build date that answered the request. |
X-Rohdea-Next-Cursor | CSV responses only: the cursor for the next page, when there is one. |
Retry-After | On a 429 only: seconds to wait before trying again. |
Successful responses may be cached for five minutes (Cache-Control: private, max-age=300); errors are never cached. Data changes once a week, so there's no need to poll. Browsers can call the API directly: GET and OPTIONS allow any origin and the Authorization header.
Filtering#
Date fields take an exact value or an operator suffix. Combine as many as you need; they are joined with AND.
| Suffix | Meaning |
|---|---|
.gte | on or after |
.gt | after |
.lte | on or before |
.lt | before |
https://rohdeadata.com/api/v1/signals/weekly?ticker=DXCM&week_start.gte=2025-01-01&week_start.lt=2026-01-01&columns=ticker,week_start,deaths,deaths_4w_zPagination#
Data endpoints return at most per_page rows (default 500, maximum 1,000). If there are more, meta.next_cursor holds a string; pass it back as cursor with the same filters to get the next page. next_cursor: null means you have everything.
Cursors are opaque and tied to the build that issued them. If a new weekly build lands while you page, the old cursor returns 400; start again from the first page. A page can hold fewer than per_page rows, and the last page can be empty, so always follow next_cursor until it is null rather than checking the row count. With format=csv the cursor comes in the X-Rohdea-Next-Cursor response header.
import requests
url = "https://rohdeadata.com/api/v1/signals/weekly"
params = {"ticker": "DXCM,PODD,TNDM", "per_page": 1000}
rows = []
while True:
page = requests.get(url, params=params).json()
rows += page["data"]
if page["meta"]["next_cursor"] is None:
break
params["cursor"] = page["meta"]["next_cursor"]library(httr2)
rows <- list(); cursor <- NULL
repeat {
page <- request("https://rohdeadata.com/api/v1/signals/weekly") |>
req_url_query(ticker = "DXCM,PODD,TNDM", per_page = 1000, cursor = cursor) |>
req_perform() |> resp_body_json()
rows <- c(rows, page$data)
cursor <- page$meta$next_cursor
if (is.null(cursor)) break
}Point in time#
The feed is built so a backtest only sees what was knowable on each date.
- Filter weekly rows on
available_at. FDA gives no "made public" date for adverse-event reports, so each row carriesavailable_at = week_end + lag_days, withlag_dayswritten on every row. It is 60 days today and moves to our measured delay once enough reports are measured; early measurements show FDA often takes longer, so add a buffer if you need to be strict. - Recalls carry
published_date, the real date FDA published them, and are counted in that week. - Inspections and compliance actions are dated when they happened. FDA gives no publication date and these often appear weeks later, so add your own delay.
is_backfilledmarks weeks before 23 Oct 2026, rebuilt from FDA's current files, which can include later corrections. Test with and without them.is_completeis false for weeks FDA hasn't fully published. They are left out unless you ask foris_complete=all.as_of(full tier) replays the data exactly as a past weekly build published it./buildslists the dates.
https://rohdeadata.com/api/v1/signals/weekly?ticker=PODD&available_at.lte=2025-06-30&columns=week_start,available_at,deaths_4w_z,likely_batch_4wEndpoints#
GET /status#
/api/v1/statusNo keyCurrent build date, data version, how far each source reaches, row counts and the demo tickers. ok is true when a build is being served; compare build with today to see if it is late (builds run weekly). The status page reads this endpoint.
curl "https://rohdeadata.com/api/v1/status"import requests
r = requests.get("https://rohdeadata.com/api/v1/status")
r.raise_for_status()
print(r.json())library(httr2)
resp <- request("https://rohdeadata.com/api/v1/status") |> req_perform()
str(resp_body_json(resp)){
"ok": true,
"build": "2026-11-10",
"built_at": "2026-11-10T08:05:00Z",
"api_version": "1.0",
"data_version": "1.0",
"adverse_event_data_through": "2026-09-30",
"coverage": {
"signals_first_week": "2018-01-01",
"signals_last_complete_week": "2026-08-31",
"events_first": "2018-01-09",
"events_last": "2026-11-04"
},
"counts": {
"companies": 43,
"listed": 38,
"signals_rows": 19866,
"events": 844
},
"demo_tickers": [
"DXCM",
"TNDM",
"PODD"
]
}Example values. The shape is exact; call the API for live numbers.
GET /companies#
/api/v1/companiesTierOne row per company your tier can see, with the identifiers you need to join to your own data.
Parameters
| Parameter | Type | Meaning |
|---|---|---|
ticker | string | One or more tickers, comma-separated, at most 10. rohdea_id works the same way. |
columns | string | Comma-separated list of fields to return. Unknown names are a 400. |
as_of | date | Full tier. A past build date from /builds; returns the data exactly as that build published it. |
format | string | json (default) or csv. |
curl "https://rohdeadata.com/api/v1/companies"import requests
r = requests.get("https://rohdeadata.com/api/v1/companies")
r.raise_for_status()
print(r.json())library(httr2)
resp <- request("https://rohdeadata.com/api/v1/companies") |> req_perform()
str(resp_body_json(resp)){
"data": [
{
"rohdea_id": "RDS0002",
"ticker": "PODD",
"exchange": "Nasdaq",
"status": "listed",
"cik": 1145197,
"composite_figi": "BBG000R7XX87",
"share_class_figi": "BBG001SRF439",
"sec_name": "INSULET CORP",
"delisted_on": null
}
],
"meta": {
"count": 1,
"next_cursor": null,
"as_of": "2026-11-10",
"data_version": "1.0",
"tier": "demo"
}
}Example values. The shape is exact; call the API for live numbers.
GET /signals/weekly#
/api/v1/signals/weeklyTierWeekly rows per company: adverse-event counts, baselines, z-scores, spike and false-alarm flags, and counts of inspections, warning letters and recalls. Every field is in the data dictionary.
Parameters
| Parameter | Type | Meaning |
|---|---|---|
week_start | date | Exact match, or add .gte, .gt, .lte, .lt. |
week_end | date | Same operators. |
available_at | date | Same operators. available_at.lte=2026-06-30 gives what was knowable by 30 June 2026. |
is_complete | string | true by default, so you never get half-filled weeks. Pass all to include incomplete weeks. |
ticker | string | One or more tickers, comma-separated, at most 10. rohdea_id works the same way. |
columns | string | Comma-separated list of fields to return. Unknown names are a 400. |
per_page | integer | Rows per page. Default 500, maximum 1,000. |
cursor | string | The next_cursor from the previous response. |
as_of | date | Full tier. A past build date from /builds; returns the data exactly as that build published it. |
format | string | json (default) or csv. |
curl "https://rohdeadata.com/api/v1/signals/weekly?ticker=PODD&week_start.gte=2026-09-01&columns=rohdea_id,ticker,week_start,available_at,deaths,injuries"import requests
r = requests.get(
"https://rohdeadata.com/api/v1/signals/weekly",
params={"ticker": "PODD", "week_start.gte": "2026-09-01", "columns": "rohdea_id,ticker,week_start,available_at,deaths,injuries"},
)
r.raise_for_status()
rows = r.json()["data"]library(httr2)
resp <- request("https://rohdeadata.com/api/v1/signals/weekly") |>
req_url_query(ticker = "PODD", `week_start.gte` = "2026-09-01", columns = "rohdea_id,ticker,week_start,available_at,deaths,injuries") |>
req_perform()
rows <- resp_body_json(resp)$data{
"data": [
{
"rohdea_id": "RDS0002",
"ticker": "PODD",
"week_start": "2026-08-31",
"available_at": "2026-11-05",
"deaths": 0,
"injuries": 412
}
],
"meta": {
"count": 1,
"next_cursor": null,
"as_of": "2026-11-10",
"data_version": "1.0",
"adverse_event_data_through": "2026-09-30",
"tier": "demo"
}
}Example values. The shape is exact; call the API for live numbers.
GET /events#
/api/v1/eventsTierOne row per FDA inspection, warning letter, other compliance action or recall.
Parameters
| Parameter | Type | Meaning |
|---|---|---|
event_date | date | Exact match, or add .gte, .gt, .lte, .lt. |
event_type | string | Exact match, for example recall, inspection, warning_letter. |
ticker | string | One or more tickers, comma-separated, at most 10. rohdea_id works the same way. |
columns | string | Comma-separated list of fields to return. Unknown names are a 400. |
per_page | integer | Rows per page. Default 500, maximum 1,000. |
cursor | string | The next_cursor from the previous response. |
as_of | date | Full tier. A past build date from /builds; returns the data exactly as that build published it. |
format | string | json (default) or csv. |
curl "https://rohdeadata.com/api/v1/events?ticker=PODD&event_type=recall"import requests
r = requests.get(
"https://rohdeadata.com/api/v1/events",
params={"ticker": "PODD", "event_type": "recall"},
)
r.raise_for_status()
rows = r.json()["data"]library(httr2)
resp <- request("https://rohdeadata.com/api/v1/events") |>
req_url_query(ticker = "PODD", event_type = "recall") |>
req_perform()
rows <- resp_body_json(resp)$data{
"data": [
{
"rohdea_id": "RDS0002",
"ticker": "PODD",
"event_type": "recall",
"event_date": "2025-03-04",
"published_date": "2025-03-19",
"detail": "Class II",
"firm_name": "INSULET CORPORATION",
"event_id": "Z-0000-2025",
"source": "fda_enforcement_report",
"captured_at": "2026-11-10T08:01:12Z"
}
],
"meta": {
"count": 1,
"next_cursor": "MjAyNjExMTA6UkRTMDAwMjo1MDA",
"as_of": "2026-11-10",
"data_version": "1.0",
"adverse_event_data_through": "2026-09-30",
"tier": "demo"
}
}Example values. The shape is exact; call the API for live numbers.
GET /metadata/{table}#
/api/v1/metadata/{table}No keyEach column's name, type, description and whether it can be filtered. table is signals_weekly, events or companies.
curl "https://rohdeadata.com/api/v1/metadata/events"import requests
r = requests.get("https://rohdeadata.com/api/v1/metadata/events")
r.raise_for_status()
print(r.json())library(httr2)
resp <- request("https://rohdeadata.com/api/v1/metadata/events") |> req_perform()
str(resp_body_json(resp)){
"data": {
"description": "One row per company event: inspections, warning letters, other compliance actions and recalls.",
"columns": [
{
"name": "event_type",
"type": "string",
"description": "inspection, warning_letter, recall, or another FDA compliance action type.",
"filterable": true
},
{
"name": "event_date",
"type": "date",
"description": "Inspection end date, action date, or recall start date.",
"filterable": true
}
]
},
"meta": {
"table": "events",
"as_of": "2026-11-10",
"data_version": "1.0"
}
}Example values. The shape is exact; call the API for live numbers.
GET /changelog#
/api/v1/changelogNo keyDated list of schema and method changes. The same entries are on the changelog page.
curl "https://rohdeadata.com/api/v1/changelog"import requests
r = requests.get("https://rohdeadata.com/api/v1/changelog")
r.raise_for_status()
print(r.json())library(httr2)
resp <- request("https://rohdeadata.com/api/v1/changelog") |> req_perform()
str(resp_body_json(resp)){
"data": [
{
"date": "2026-11-14",
"version": "1.0",
"type": "added",
"change": "First version of the Device Safety Feed API."
}
],
"meta": {
"count": 1
}
}Example values. The shape is exact; call the API for live numbers.
GET /builds#
/api/v1/buildsFullPast build dates that as_of accepts, oldest first, and which one is current.
curl "https://rohdeadata.com/api/v1/builds" \
-H "Authorization: Bearer $ROHDEA_API_KEY"import os, requests
r = requests.get(
"https://rohdeadata.com/api/v1/builds",
headers={"Authorization": f"Bearer {os.environ['ROHDEA_API_KEY']}"},
)
r.raise_for_status()
rows = r.json()["data"]library(httr2)
resp <- request("https://rohdeadata.com/api/v1/builds") |>
req_auth_bearer_token(Sys.getenv("ROHDEA_API_KEY")) |>
req_perform()
rows <- resp_body_json(resp)$data{
"data": [
"2026-11-03",
"2026-11-10"
],
"meta": {
"count": 2,
"current": "2026-11-10",
"tier": "full"
}
}Example values. The shape is exact; call the API for live numbers.
GET /bulk/{table}#
/api/v1/bulk/{table}FullThe whole table as one Parquet file. Add format=csv for gzipped CSV. table is signals_weekly, events or companies. Takes as_of for a past build.
curl -L -o signals_weekly.parquet \
"https://rohdeadata.com/api/v1/bulk/signals_weekly" \
-H "Authorization: Bearer $ROHDEA_API_KEY"import os, io, requests, pandas as pd
r = requests.get(
"https://rohdeadata.com/api/v1/bulk/signals_weekly",
headers={"Authorization": f"Bearer {os.environ['ROHDEA_API_KEY']}"},
)
r.raise_for_status()
df = pd.read_parquet(io.BytesIO(r.content))library(httr2); library(arrow)
request("https://rohdeadata.com/api/v1/bulk/signals_weekly") |>
req_auth_bearer_token(Sys.getenv("ROHDEA_API_KEY")) |>
req_perform(path = "signals_weekly.parquet")
df <- read_parquet("signals_weekly.parquet")Errors#
Errors are always JSON with a stable code you can branch on:
{
"error": {
"code": "not_in_plan",
"message": "Your trial key covers 20 companies and the last 104 complete weeks. ALGN is not one of them.",
"docs": "https://rohdeadata.com/docs/api.html#errors"
}
}| HTTP | code | When |
|---|---|---|
| 400 | invalid_parameter | Unknown parameter, column or operator; a bad date; more than 10 tickers; a cursor from another build. |
| 401 | invalid_api_key | Key not recognised or expired. |
| 403 | not_in_plan | Ticker, date range, as_of or bulk file outside your tier. The message says what your tier covers. |
| 404 | not_found | Unknown path, table or build date. |
| 405 | method_not_allowed | Anything other than GET, HEAD or OPTIONS. |
| 429 | rate_limited | Over the limit. Wait for Retry-After seconds. |
| 500 | internal_error | Something went wrong on our side. Try again, and email [email protected] if it continues. |
| 503 | no_data_published | No build has been published yet. Try again later, or check the status page. |
| 503 | storage_not_bound | The service's data storage isn't connected. This is our problem, not yours; email us if you see it. |
Versioning#
The version is in the path. v1 only ever gains fields and endpoints, so code written against it keeps working. Removing or renaming anything means a new /api/v2, with v1 kept running for at least 90 days and the change announced in the changelog first. Every response's meta.data_version says which schema version produced it.