# OECD Data API

Category: [Statistics](https://free-web-services.com/web-services/open-data/statistics/)  
Page: https://free-web-services.com/web-services/open-data/statistics/oecd-data-api.html  
Documentation: https://www.oecd.org/en/data/insights/data-explainers/2024/09/api.html

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.

- API key: Not needed
- 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

Example request:

```sh
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'
```

The JavaScript works in a web page as well as in Node.js 18 or newer.

