OECD Data API

The Data API from OECD — 2 operation(s) for data.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/oecd-data-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

oecd-data-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: OECD SDMX REST Data API
  description: 'The OECD provides programmatic access to its statistical data through a

    public SDMX REST API. Both SDMX REST v1.5.0 and v2.0.0 paths are exposed.

    Endpoints return data and structural metadata (dataflows, code lists,

    concept schemes, agencies) about OECD datasets. The API is free of charge

    and offered under the OECD Terms and Conditions; no authentication is

    required for public data.

    '
  version: 2.0.0
  contact:
    name: OECD Data
    url: https://www.oecd.org/en/data/insights/data-explainers/2024/09/api.html
servers:
- url: https://sdmx.oecd.org/public/rest
  description: OECD SDMX public REST API (v1.5 paths)
- url: https://sdmx.oecd.org/public/rest/v2
  description: OECD SDMX public REST API (v2 paths)
security: []
tags:
- name: Data
paths:
  /data/{flow}/{key}:
    get:
      tags:
      - Data
      summary: Retrieve data (SDMX v1.5 path)
      description: 'Retrieve observations for a dataflow filtered by a dimension key

        (dot-separated dimension codes). Supports SDMX content negotiation

        (XML / JSON / CSV) via the Accept header.

        '
      parameters:
      - in: path
        name: flow
        required: true
        schema:
          type: string
        description: Full dataflow reference, e.g. `OECD.ENV.EPI,DSD_ECH@EXT_DROUGHT,1.0`
      - in: path
        name: key
        required: true
        schema:
          type: string
        description: Dot-separated dimension key (use `all` to retrieve everything)
      - in: query
        name: startPeriod
        schema:
          type: string
        description: Start of time period (e.g. 2020)
      - in: query
        name: endPeriod
        schema:
          type: string
        description: End of time period (e.g. 2024)
      - in: query
        name: dimensionAtObservation
        schema:
          type: string
      - in: query
        name: updatedAfter
        schema:
          type: string
          format: date-time
      responses:
        '200':
          description: Data response
          content:
            application/vnd.sdmx.data+json: {}
            application/vnd.sdmx.genericdata+xml: {}
            text/csv: {}
  /v2/data/dataflow/{agencyId}/{flowId}/{version}/{key}:
    get:
      tags:
      - Data
      summary: Retrieve data (SDMX v2 path)
      description: 'SDMX v2.0.0 data query with explicit agency, dataflow, version and

        key components, plus enhanced attribute, measure, and update filters.

        '
      parameters:
      - in: path
        name: agencyId
        required: true
        schema:
          type: string
      - in: path
        name: flowId
        required: true
        schema:
          type: string
      - in: path
        name: version
        required: true
        schema:
          type: string
      - in: path
        name: key
        required: true
        schema:
          type: string
      - in: query
        name: startPeriod
        schema:
          type: string
      - in: query
        name: endPeriod
        schema:
          type: string
      - in: query
        name: attributes
        schema:
          type: string
          enum:
          - dsd
          - msd
          - all
          - none
      - in: query
        name: measures
        schema:
          type: string
          enum:
          - all
          - none
      - in: query
        name: updatedAfter
        schema:
          type: string
          format: date-time
      responses:
        '200':
          description: Data response (SDMX v2)