API Access
Access dataset files directly from scripts, code, or AI agents.
Browse dataset files
API Access
Access dataset files directly from scripts, code, or AI agents.
Dataset Files
Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.
/core/pharmaceutical-drug-spending/
https://datahub.io/core/pharmaceutical-drug-spending/_r/-/.gitignore
https://datahub.io/core/pharmaceutical-drug-spending/_r/-/README.md
https://datahub.io/core/pharmaceutical-drug-spending/_r/-/UPDATE_SCRIPT_MAINTENANCE_REPORT.md
https://datahub.io/core/pharmaceutical-drug-spending/_r/-/archive/merge-all.csv
https://datahub.io/core/pharmaceutical-drug-spending/_r/-/archive/merge-health-gdp.csv
https://datahub.io/core/pharmaceutical-drug-spending/_r/-/archive/perc-gdp.csv
https://datahub.io/core/pharmaceutical-drug-spending/_r/-/archive/perc-health-spend.csv
https://datahub.io/core/pharmaceutical-drug-spending/_r/-/archive/pharma-spending.csv
https://datahub.io/core/pharmaceutical-drug-spending/_r/-/archive/population.csv
https://datahub.io/core/pharmaceutical-drug-spending/_r/-/archive/usd-cap.csv
https://datahub.io/core/pharmaceutical-drug-spending/_r/-/data/data.csv
https://datahub.io/core/pharmaceutical-drug-spending/_r/-/datapackage.json
Key Files
Start with these files — they give you everything you need to understand and access the dataset.
datapackage.json— metadata & schema
https://datahub.io/core/pharmaceutical-drug-spending/_r/-/datapackage.json
README.md— documentation
https://datahub.io/core/pharmaceutical-drug-spending/_r/-/README.md
Typical Usage
- 1. Fetch datapackage.json to inspect schema and resources
- 2. Download data resources listed in datapackage.json
- 3. Read README.md for full context
Data Files
Explore with AIdata
| Field | Type | Description |
|---|---|---|
| LOCATION | string | Country code |
| TIME | year | Year of observation in the form YYYY |
| PC_HEALTHXP | number | % of Health spending |
| PC_GDP | number | % of GDP |
| USD_CAP | number | in USD per capita (using economy-wide PPPs) |
| TOTAL_SPEND | number | Total spending in millions of USD, calculated as USD_CAP multiplied by country population divided by 1,000,000 |
Download
Download CSVAbout
- Annual pharmaceutical drug spending per country, combining OECD expenditure data with UN population figures. Each row represents one country-year combination. TOTAL_SPEND is derived by multiplying USD_CAP by the country's population and dividing by 1,000,000.
- Last updated
- 9 February 2026
- Total rows
- ...
- Format
- CSV
- File size
- 51.2 kB
About this dataset
Update Script Maintenance Report
Date: 2026-03-04
- Root cause: automation was tied to mixed triggers and lacked explicit write permission.
- Fixes made: simplified workflow to scheduled/manual execution, upgraded action versions, added
permissions: contents: write, and kept safe commit guard. - Validation: reviewed workflow syntax and commit path targeting for generated
data/andarchive/outputs. - Known blockers: none identified in this remediation pass.