API reference
Data API
Every read route of https://api.aggre.org: what each does, its parameters and an example.
The data API is served at https://api.aggre.org. It is read-only, takes an API key in Authorization: Bearer aggre_sk_... (or X-API-Key), sets no cookies and allows no browser (CORS) access; call it from a server, a script or an agent. New to it? Start with the quickstart.
This reference is generated from the OpenAPI file (/openapi/data.yaml, also as JSON), so it lists exactly the routes the service registers. Row shapes are the JSON Schemas in the schema reference.
Rules that apply to every route are in Concepts: the response envelope, strict query parameters, opaque cursors, freshness (meta.status), attribution (credit) and the shared error codes.
Pages#
| Page | Routes | Covers |
|---|---|---|
| Service routes | 4 | Health checks, the dataset list and the calling key. |
| Market data | 7 | Candles, funding rates, open interest, instruments and the latest tickers. |
| Macro data | 5 | The economic calendar, official macro series and their observations, and derived series. |
| Filings and trades (SEC EDGAR, US Congress) | 9 | Companies, filings, XBRL facts, fundamentals, insider transactions, fails-to-deliver, 13F holdings, 8-K news and Congress trades. |
| Taiwan equities | 9 | TWSE and TPEx securities, daily closes, valuation, institutional and margin data, revenue, statements and indices. |
| Legal data | 8 | Statutes, sanctions and exclusion lists, the Taiwan FSC news feed and Taiwan standard-form contracts. |
| Health: openFDA | 40 | The 19 openFDA datasets (drug labels, NDC, approvals, shortages, recalls, device clearances and more). |
| Health: registries and statistics | 12 | EMA medicines, NPPES providers, ClinicalTrials.gov, FDA 510(k) summaries, WHO GHO and Eurostat mortality. |
| On-chain data | 1 | Total value locked in DeFi protocols, by protocol and chain. |
All routes#
| Method | Path | Summary |
|---|---|---|
GET | /healthz | Liveness |
GET | /readyz | Readiness |
GET | /v1/datasets | The datasets and where to read them |
GET | /v1/whoami | The calling key and its usage |
GET | /v1/finance/market/candles_1m | Confirmed one-minute candles of one instrument |
GET | /v1/finance/market/candles_1h | Confirmed one-hour candles of one instrument |
GET | /v1/finance/market/candles_1d | Confirmed one-day candles of one instrument |
GET | /v1/finance/market/funding_rates | Settled funding payments of a perpetual |
GET | /v1/finance/market/open_interest | Open-interest snapshots of a perpetual |
GET | /v1/finance/market/instruments | The instrument list |
GET | /v1/finance/market/tickers | The latest ticker of every enabled instrument |
GET | /v1/finance/macro/calendar_events | Scheduled economic releases |
GET | /v1/finance/macro/series | The macro series catalogue |
GET | /v1/finance/macro/observations | Observations of one series |
GET | /v1/finance/macro_derived/series | The computed macro series catalogue |
GET | /v1/finance/macro_derived/observations | Computed values of one series |
GET | /v1/finance/filings/companies | SEC companies on the coverage list |
GET | /v1/finance/filings/filings | A company's filings |
GET | /v1/finance/filings/company_facts | As-filed XBRL facts of a company |
GET | /v1/finance/filings/fundamentals | Normalized fundamentals per fiscal period |
GET | /v1/finance/filings/insider_transactions | Form 4 insider transactions of an issuer |
GET | /v1/finance/filings/fails_to_deliver | SEC fails-to-deliver balances of a symbol |
GET | /v1/finance/filings/holdings_13f | SEC Form 13F holdings of a covered company |
GET | /v1/finance/filings/news_8k | SEC 8-K current reports of a covered company, with the file names of their press releases |
GET | /v1/finance/filings/congress_trades | Stock trades of US members of Congress (Periodic Transaction Reports) |
GET | /v1/finance/equities_tw/securities | Taiwan listed and OTC securities |
GET | /v1/finance/equities_tw/daily_close | Daily close of Taiwan securities |
GET | /v1/finance/equities_tw/valuation_daily | Daily valuation ratios of Taiwan securities |
GET | /v1/finance/equities_tw/institutional_daily | Institutional trades of TPEx securities |
GET | /v1/finance/equities_tw/margin_daily | Margin balances of TPEx securities |
GET | /v1/finance/equities_tw/monthly_revenue | Monthly revenue of Taiwan companies |
GET | /v1/finance/equities_tw/statements | Quarterly statements of Taiwan companies |
GET | /v1/finance/equities_tw/indices | Index closes of Taiwan exchanges |
GET | /v1/finance/equities_tw/sources | Registered upstream files of the Taiwan datasets |
GET | /v1/legal/statutes/instruments | Statutes across the ten statute datasets |
GET | /v1/legal/statutes/instruments/{instrument_id} | One statute with its provisions |
GET | /v1/legal/statutes/instruments/{instrument_id}/provisions | The provisions of one statute, paged |
GET | /v1/legal/regulatory/entries | Entries of a sanctions or exclusion list |
GET | /v1/legal/regulatory/entry | One entry of a sanctions or exclusion list |
GET | /v1/legal/regulatory/fsc_news | Taiwan FSC news (five RSS feeds) |
GET | /v1/onchain/defi/protocol_tvl | DeFi protocol total value locked |
GET | /v1/legal/contracts/tw_standard_forms | Taiwan standard-form contracts (定型化契約), without text |
GET | /v1/legal/contracts/tw_standard_forms/{form_id} | One standard form with its versions and the text of its files |
GET | /v1/health/drugs/ema_medicines | EMA medicines register |
GET | /v1/health/drugs/ema_medicines/{product_number} | One EMA medicine, with its text and source row |
GET | /v1/health/providers/nppes | Search the NPPES NPI Registry |
GET | /v1/health/providers/nppes/{npi} | One NPPES provider by NPI |
GET | /v1/health/trials/clinicaltrials_gov | ClinicalTrials.gov studies |
GET | /v1/health/trials/clinicaltrials_gov/{nct_id} | One ClinicalTrials.gov study, with its prose |
GET | /v1/health/devices/fda_510k_summary | FDA 510(k) summary documents (extracted text) |
GET | /v1/health/devices/fda_510k_summary/{k_number} | One 510(k) summary, with its text |
GET | /v1/health/drugs/fda_label | openFDA drug labels (prescribing information) |
GET | /v1/health/drugs/fda_label/{key} | One record of: openFDA drug labels (prescribing information) |
GET | /v1/health/drugs/fda_ndc | openFDA National Drug Code directory |
GET | /v1/health/drugs/fda_ndc/{key} | One record of: openFDA National Drug Code directory |
GET | /v1/health/drugs/fda_drugsfda | openFDA Drugs@FDA approvals |
GET | /v1/health/drugs/fda_drugsfda/{key} | One record of: openFDA Drugs@FDA approvals |
GET | /v1/health/drugs/fda_orangebook | openFDA Orange Book |
GET | /v1/health/drugs/fda_orangebook/{key} | One record of: openFDA Orange Book |
GET | /v1/health/drugs/fda_shortages | openFDA drug shortages |
GET | /v1/health/drugs/fda_shortages/{key} | One record of: openFDA drug shortages |
GET | /v1/health/drugs/fda_nsde | openFDA NDC SPL data elements (NSDE) |
GET | /v1/health/drugs/fda_nsde/{key} | One record of: openFDA NDC SPL data elements (NSDE) |
GET | /v1/health/drugs/fda_unii | openFDA UNII substance identifiers |
GET | /v1/health/drugs/fda_unii/{key} | One record of: openFDA UNII substance identifiers |
GET | /v1/health/drugs/fda_substance | openFDA substance data |
GET | /v1/health/drugs/fda_substance/{key} | One record of: openFDA substance data |
GET | /v1/health/drugs/fda_historicaldocument | openFDA historical documents |
GET | /v1/health/drugs/fda_historicaldocument/{key} | One record of: openFDA historical documents |
GET | /v1/health/drugs/fda_enforcement | openFDA drug enforcement reports (recalls) |
GET | /v1/health/drugs/fda_enforcement/{key} | One record of: openFDA drug enforcement reports (recalls) |
GET | /v1/health/drugs/fda_crl | openFDA complete response letters |
GET | /v1/health/drugs/fda_crl/{key} | One record of: openFDA complete response letters |
GET | /v1/health/devices/fda_510k | openFDA 510(k) clearances |
GET | /v1/health/devices/fda_510k/{key} | One record of: openFDA 510(k) clearances |
GET | /v1/health/devices/fda_pma | openFDA premarket approvals (PMA) |
GET | /v1/health/devices/fda_pma/{key} | One record of: openFDA premarket approvals (PMA) |
GET | /v1/health/devices/fda_classification | openFDA device classification |
GET | /v1/health/devices/fda_classification/{key} | One record of: openFDA device classification |
GET | /v1/health/devices/fda_udi | openFDA unique device identifiers (UDI) |
GET | /v1/health/devices/fda_udi/{key} | One record of: openFDA unique device identifiers (UDI) |
GET | /v1/health/devices/fda_registrationlisting | openFDA device registration and listing |
GET | /v1/health/devices/fda_registrationlisting/{key} | One record of: openFDA device registration and listing |
GET | /v1/health/devices/fda_covid19serology | openFDA COVID-19 serology tests |
GET | /v1/health/devices/fda_covid19serology/{key} | One record of: openFDA COVID-19 serology tests |
GET | /v1/health/devices/fda_recall | openFDA device recalls |
GET | /v1/health/devices/fda_recall/{key} | One record of: openFDA device recalls |
GET | /v1/health/devices/fda_device_enforcement | openFDA device enforcement reports |
GET | /v1/health/devices/fda_device_enforcement/{key} | One record of: openFDA device enforcement reports |
GET | /v1/health/statistics/who_gho | WHO Global Health Observatory observations of one indicator |
GET | /v1/health/statistics/who_gho/indicators | The curated WHO GHO indicators |
GET | /v1/health/statistics/eurostat_mortality | Eurostat causes of death, cells of one cause |
GET | /v1/health/statistics/eurostat_mortality/causes | Cause codes in the Eurostat table |
GET | /v1/health/statistics/eurostat_mortality/places | Place codes in the Eurostat table |
GET | /v1/health/statistics/eurostat_mortality/{year}/{geo}/{icd10} | One Eurostat cell |
Generated from contracts/data.openapi.yaml when the site is built, so it matches the API contract.