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).

The API is opening in stages. Until the first build is published, API calls return no data. The status page shows when it is live.

Overview#

Value
Base URLhttps://rohdeadata.com/api/v1
FormatsJSON by default. format=csv on /signals/weekly, /events and /companies returns CSV with a header row.
Dates and timesDates are YYYY-MM-DD. Times are UTC, ISO 8601.
Sort orderRows are sorted by ticker, then week_start (signals) or event_date (events).
StrictnessAn 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:

Header (recommended)
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#

TierHowSeesLimit
DemoNo key3 companies, listed in /status as demo_tickers, full history20 calls a minute per IP
TrialKey, 30 days20 companies, last 104 complete weeks120 calls a minute
FullKeyEvery company and week, plus /bulk, /builds and as_of120 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:

HeaderMeaning
X-RateLimit-LimitCalls allowed per minute for your tier.
X-RateLimit-RemainingCalls left in the current minute.
X-Rohdea-BuildThe build date that answered the request.
X-Rohdea-Next-CursorCSV responses only: the cursor for the next page, when there is one.
Retry-AfterOn 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.

SuffixMeaning
.gteon or after
.gtafter
.lteon or before
.ltbefore
Example
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_z

Pagination#

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.

Fetch every page
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"]

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 carries available_at = week_end + lag_days, with lag_days written 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_backfilled marks weeks before 23 Oct 2026, rebuilt from FDA's current files, which can include later corrections. Test with and without them.
  • is_complete is false for weeks FDA hasn't fully published. They are left out unless you ask for is_complete=all.
  • as_of (full tier) replays the data exactly as a past weekly build published it. /builds lists the dates.
What was knowable by 30 June 2025
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_4w

Endpoints#

GET /status#

GET/api/v1/statusNo key

Current 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.

Request
curl "https://rohdeadata.com/api/v1/status"
Response
{
  "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#

GET/api/v1/companiesTier

One row per company your tier can see, with the identifiers you need to join to your own data.

Parameters

ParameterTypeMeaning
tickerstringOne or more tickers, comma-separated, at most 10. rohdea_id works the same way.
columnsstringComma-separated list of fields to return. Unknown names are a 400.
as_ofdateFull tier. A past build date from /builds; returns the data exactly as that build published it.
formatstringjson (default) or csv.
Request
curl "https://rohdeadata.com/api/v1/companies"
Response
{
  "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#

GET/api/v1/signals/weeklyTier

Weekly 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

ParameterTypeMeaning
week_startdateExact match, or add .gte, .gt, .lte, .lt.
week_enddateSame operators.
available_atdateSame operators. available_at.lte=2026-06-30 gives what was knowable by 30 June 2026.
is_completestringtrue by default, so you never get half-filled weeks. Pass all to include incomplete weeks.
tickerstringOne or more tickers, comma-separated, at most 10. rohdea_id works the same way.
columnsstringComma-separated list of fields to return. Unknown names are a 400.
per_pageintegerRows per page. Default 500, maximum 1,000.
cursorstringThe next_cursor from the previous response.
as_ofdateFull tier. A past build date from /builds; returns the data exactly as that build published it.
formatstringjson (default) or csv.
Request
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"
Response
{
  "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#

GET/api/v1/eventsTier

One row per FDA inspection, warning letter, other compliance action or recall.

Parameters

ParameterTypeMeaning
event_datedateExact match, or add .gte, .gt, .lte, .lt.
event_typestringExact match, for example recall, inspection, warning_letter.
tickerstringOne or more tickers, comma-separated, at most 10. rohdea_id works the same way.
columnsstringComma-separated list of fields to return. Unknown names are a 400.
per_pageintegerRows per page. Default 500, maximum 1,000.
cursorstringThe next_cursor from the previous response.
as_ofdateFull tier. A past build date from /builds; returns the data exactly as that build published it.
formatstringjson (default) or csv.
Request
curl "https://rohdeadata.com/api/v1/events?ticker=PODD&event_type=recall"
Response
{
  "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}#

GET/api/v1/metadata/{table}No key

Each column's name, type, description and whether it can be filtered. table is signals_weekly, events or companies.

Request
curl "https://rohdeadata.com/api/v1/metadata/events"
Response
{
  "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#

GET/api/v1/changelogNo key

Dated list of schema and method changes. The same entries are on the changelog page.

Request
curl "https://rohdeadata.com/api/v1/changelog"
Response
{
  "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#

GET/api/v1/buildsFull

Past build dates that as_of accepts, oldest first, and which one is current.

Request
curl "https://rohdeadata.com/api/v1/builds" \
  -H "Authorization: Bearer $ROHDEA_API_KEY"
Response
{
  "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}#

GET/api/v1/bulk/{table}Full

The 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.

Request
curl -L -o signals_weekly.parquet \
  "https://rohdeadata.com/api/v1/bulk/signals_weekly" \
  -H "Authorization: Bearer $ROHDEA_API_KEY"

Errors#

Errors are always JSON with a stable code you can branch on:

403 response
{
  "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"
  }
}
HTTPcodeWhen
400invalid_parameterUnknown parameter, column or operator; a bad date; more than 10 tickers; a cursor from another build.
401invalid_api_keyKey not recognised or expired.
403not_in_planTicker, date range, as_of or bulk file outside your tier. The message says what your tier covers.
404not_foundUnknown path, table or build date.
405method_not_allowedAnything other than GET, HEAD or OPTIONS.
429rate_limitedOver the limit. Wait for Retry-After seconds.
500internal_errorSomething went wrong on our side. Try again, and email [email protected] if it continues.
503no_data_publishedNo build has been published yet. Try again later, or check the status page.
503storage_not_boundThe 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.