OECD Data API — macroeconomics and social indicators
The OECD's SDMX REST API provides access to thousands of indicators for 38 OECD countries including Sweden, Denmark and Norway: GDP, inflation, the labour market, social spending, taxes, health and education. Historical time series back to 1960. Complementary to Eurostat for non-EU comparison. Free use with attribution, a hard rate limit (20 downloads/hour) → 30-day cache. SDMX-JSON. Issue #1212.
—
Data volume
Monthly
Updates
3
MCP tools
{
"data": "..."
}MCP integration
API endpoints
/dataHent SDMX-datasett
- dataflow required
- OECD dataflow-ID (uten agency/versjon — angi agency separat)
dataflow=DSD_NAMAIN10@DF_TABLE1_EXPENDITURE - agency optional
- SDMX agency-ID som eier dataflow-en
agency=OECD.SDD.NAD - version optional
- SDMX-versjon av dataflyten. Inngår i upstream-nøkkelen `{agency},{dataflow},{version}`.
version=1.0 - selection required
- SDMX serie-nøkkel: dimensjons-verdier separert med `.`, `+` for alternativer på én dimensjon, `*` for alle. Rekkefølgen følger dataflyt-ens DSD.
selection=A.NOR+SWE+DNK.*.*.*.*.B1GQ.*.*.*.USD_EXC.V.*.* - startPeriod optional
- Startperiode (YYYY / YYYY-MM / YYYY-MM-DD)
startPeriod=2020 - endPeriod optional
- Sluttperiode (YYYY / YYYY-MM / YYYY-MM-DD)
endPeriod=2023
Show curl example
# GET https://data.ketl.no/api/connectors/oecd-data/data?dataflow=DSD_NAMAIN10%40DF_TABLE1_EXPENDITURE&selection=A.NOR%2BSWE%2BDNK.*.*.*.*.B1GQ.*.*.*.USD_EXC.V.*.*
curl \
-H "Accept: application/json" \
"https://data.ketl.no/api/connectors/oecd-data/data?dataflow=DSD_NAMAIN10%40DF_TABLE1_EXPENDITURE&selection=A.NOR%2BSWE%2BDNK.*.*.*.*.B1GQ.*.*.*.USD_EXC.V.*.*"Authenticated call — add one of these headers: x-api-key: ketl_… · Authorization: Bearer … — See the full reference in the documentation.
/gdpKonveniens: BNP per land
- countries required
- ISO-3 landkoder separert med `,` (anbefalt). `+` godtas som alias, men MÅ URL-enkodes (`%2B`) — en rå `+` i en query-string dekodes som mellomrom.
countries=NOR,SWE,DNK - startPeriod optional
- Startår (YYYY). Kun år — denne ruta er årlig, til forskjell fra `/data`, som også tar YYYY-MM og YYYY-MM-DD.
startPeriod=2020 - endPeriod optional
- Sluttår (YYYY). Kun år, se `startPeriod`.
endPeriod=2023
Show curl example
# GET https://data.ketl.no/api/connectors/oecd-data/gdp?countries=NOR%2CSWE%2CDNK
curl \
-H "Accept: application/json" \
"https://data.ketl.no/api/connectors/oecd-data/gdp?countries=NOR%2CSWE%2CDNK"Authenticated call — add one of these headers: x-api-key: ketl_… · Authorization: Bearer … — See the full reference in the documentation.
/dataflowsList tilgjengelige dataflows
- agency optional
- SDMX agency-ID hvis dataflyter skal listes. `all` gir hele katalogen (~5,9 MB); f.eks. `OECD.CTP.TPS` (skatt), `OECD.ELS.HD` (helse), `OECD.EDU.IMEP` (utdanning).
agency=OECD.SDD.NAD
Show curl example
# GET https://data.ketl.no/api/connectors/oecd-data/dataflows
curl \
-H "Accept: application/json" \
"https://data.ketl.no/api/connectors/oecd-data/dataflows"Authenticated call — add one of these headers: x-api-key: ketl_… · Authorization: Bearer … — See the full reference in the documentation.