Data API
Query the portal programmatically
Open endpoints over 365 DHIR reports and 3,688 extracted tables. No key, no rate limit, CORS open to any origin.
Endpoints
| Endpoint | Description | Query params |
|---|---|---|
| GET /api/public/reports | Index of every DHIR report in the portal with extent, topics and download URLs. | q, group, topic |
| GET /api/public/reports/{slug} | All extracted tables for one report as JSON, or as long-format CSV. | format=csv |
| GET /portal/{slug}.json | Static, CDN-cached JSON extract for one report (same payload, no query params). | — |
| GET /api/public/data/all-tables.csv | Long-format CSV of all 107 fully verified Health Interview Survey trend tables. | — |
| GET /api/public/data/module-{a|b|c}.csv | Health Interview Survey trend tables for one module, as CSV or JSON. | — |
| GET /api/public/healthdcat-ap | HealthDCAT-AP / DCAT-AP catalogue of the whole portal as JSON-LD. | — |
Query builder
Build a request, copy the URL, or run it here.
/api/public/reports
Reuse and accuracy
Tables from the Health Interview Surveys trend report were transcribed and double-verified. Everything else is machine-extracted from DHIR PDFs and may contain layout artefacts — validate against the linked source PDF before publishing. Attribute the Directorate for Health Information and Research as the data source.