> ## Documentation Index
> Fetch the complete documentation index at: https://lava.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# OECD

> OECD statistics API providing economic outlook, trade flows, education metrics, environmental data, and policy indicators across 38 member countries.

OECD statistics API providing economic outlook, trade flows, education metrics, environmental data, and policy indicators across 38 member countries. Best for comparative policy analysis, benchmarking national performance, and accessing harmonized cross-country statistics. Covers structural economic policy — complementary to IMF (monetary/financial) and World Bank (development indicators).

2 example endpoints available through Lava's AI Gateway. See the [OECD API docs](https://data-explorer.oecd.org/) for full documentation.

<Info>This provider is **managed** — no additional setup required.</Info>

<Info>This is a **catch-all provider** — any valid URL under `https://sdmx.oecd.org/public/rest` is supported. OECD statistics API. Construct URL as [https://sdmx.oecd.org/public/rest/\&#123;endpoint\&#125](https://sdmx.oecd.org/public/rest/\&#123;endpoint\&#125);. Common endpoints: /dataflow/all, /data/\{dataflowId}/\{key}. Use ?format=jsondata for JSON responses. The endpoints below are curated examples.</Info>

## Endpoints

### List all available dataflows

**GET** `https://sdmx.oecd.org/public/rest/dataflow/all?format=jsondata` — Free

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://sdmx.oecd.org/public/rest/dataflow/all?format=jsondata', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fsdmx.oecd.org%2Fpublic%2Frest%2Fdataflow%2Fall%3Fformat%3Djsondata" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### Query data from a specific dataflow

**GET** `https://sdmx.oecd.org/public/rest/data/OECD.SDD.STES,DSD_STES@DF_BTS/all?lastNObservations=1&dimensionAtObservation=AllDimensions` — Free

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://sdmx.oecd.org/public/rest/data/OECD.SDD.STES,DSD_STES@DF_BTS/all?lastNObservations=1&dimensionAtObservation=AllDimensions', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fsdmx.oecd.org%2Fpublic%2Frest%2Fdata%2FOECD.SDD.STES%2CDSD_STES%40DF_BTS%2Fall%3FlastNObservations%3D1%26dimensionAtObservation%3DAllDimensions" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

## Next Steps

<CardGroup cols={2}>
  <Card title="All Providers" icon="grid" href="/gateway/supported-providers">
    Browse all supported AI providers
  </Card>

  <Card title="Forward Proxy" icon="route" href="/gateway/forward-proxy">
    Learn how to construct proxy URLs and authenticate requests
  </Card>
</CardGroup>
