What it does
The OECD Data API gives the statistics of the OECD's member countries, such as GDP growth, inflation, employment, education and environment indicators, for example to compare countries in a report. It is an SDMX REST API: build a query from a dataflow and filters, and get SDMX-JSON, SDMX-ML (XML) or CSV. Free, no key needed; the OECD limits how many queries one user may send per hour.
At a glance
- API key
- Not needed · More APIs with no key
- Pricing
- Free, no key needed; the OECD limits how many queries one user may send per hour.
- From the browser
- Yes (CORS)
- Formats
- JSON, XML, CSV
- Interface
- REST, HTTP-GET
- Provider
- oecd.org
More information: https://www.oecd.org/en/data/insights/data-explainers/2024/09/api.html
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl 'https://sdmx.oecd.org/public/rest/data/OECD.SDD.NAD,DSD_NAMAIN1@DF_QNA_EXPENDITURE_GROWTH_OECD,1.1/Q..NLD.S1..B1GQ......G1.?lastNObservations=1&format=jsondata'
JavaScript
const response = await fetch("https://sdmx.oecd.org/public/rest/data/OECD.SDD.NAD,DSD_NAMAIN1@DF_QNA_EXPENDITURE_GROWTH_OECD,1.1/Q..NLD.S1..B1GQ......G1.?lastNObservations=1&format=jsondata");
const data = await response.json();
console.log(data);
Python
import requests
response = requests.get(
"https://sdmx.oecd.org/public/rest/data/OECD.SDD.NAD,DSD_NAMAIN1@DF_QNA_EXPENDITURE_GROWTH_OECD,1.1/Q..NLD.S1..B1GQ......G1.?lastNObservations=1&format=jsondata",
timeout=30,
)
print(response.json())
The JavaScript works in a web page as well as in Node.js 18 or newer.