# OECD Dataset Catalog & Indicator Time Series Tool (`nimbryxo-studio/oecd-dataset-catalog-and-indicator-time-series`) Actor

Browse the OECD's dataset catalog and pull indicator time series for GDP, employment, trade, inequality or housing by country and year.

- **URL**: https://apify.com/nimbryxo-studio/oecd-dataset-catalog-and-indicator-time-series.md
- **Developed by:** [Nimbryxo-studio](https://apify.com/nimbryxo-studio) (community)
- **Categories:** Automation, Developer tools, Real estate
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## OECD Dataset Catalog & Indicator Time Series Tool

The OECD publishes thousands of economic and social datasets covering GDP, employment, trade, inequality, housing and more across its member and partner countries. This actor lists what's available in that catalog, then pulls the actual time-series values for whichever dataset, countries and years you need.

### What this actor does

- Lists a curated set of major OECD dataflows — national accounts, labour, trade, inequality, wealth, housing and climate — with name, description, category and available frequencies, so you can find a dataset code to query.
- Fetches time-series observations for a specific dataset, filterable by country and year range.
- Also accepts any other valid OECD SDMX dataflow ID directly, beyond the curated list.
- Resolves country codes to full country names and indicator codes to their descriptions wherever the dataset provides them.
- Supports querying several countries in the same run.
- Omits any field a dataset or observation doesn't provide, so a record never carries an empty value.

### Output per record

#### Dataset record (`mode=searchDatasets`)

| Field | Description |
|---|---|
| `datasetCode` | Unique dataset/dataflow identifier, used as `datasetCode` input for `getIndicator`. |
| `agencyId` | OECD agency responsible for the dataset. |
| `name` | Full dataset name. |
| `description` | What the dataset covers. |
| `category` | Thematic category. |
| `frequency` | Available frequencies (e.g. A, Q, M). |
| `version` | Dataset version. |
| `sourceUrl` | Link to the dataset in the OECD Data Explorer. |
| `recordType` | Always `dataset`. |
| `scrapedAt` | ISO 8601 timestamp of when the record was collected. |

#### Indicator observation (`mode=getIndicator`)

| Field | Description |
|---|---|
| `datasetCode`, `agencyId` | Dataset the observation belongs to. |
| `countryCode`, `countryName` | ISO-3 country code and resolved country name. |
| `indicatorCode`, `indicatorName` | Indicator/measure code and its description, when the dataset provides one. |
| `period` | Time period, e.g. `2022` or `2022-Q3`. |
| `value` | Numeric observation value. |
| `frequency` | `A` (annual), `Q` (quarterly), or `M` (monthly). |
| `sourceUrl` | Link to this series in the OECD Data Explorer. |
| `recordType` | Always `indicator`. |
| `scrapedAt` | ISO 8601 timestamp of when the record was collected. |

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | String (select) | `searchDatasets` | `searchDatasets` (list datasets) or `getIndicator` (fetch observations). |
| `datasetCode` | String | – | Dataset code to query, found via `searchDatasets` (`getIndicator` mode). |
| `countries` | Array of strings | – | ISO-3 country codes to filter by; leave empty for all countries. |
| `startYear` | Integer | `2020` | First year of the period to fetch, inclusive (1990–2030). |
| `endYear` | Integer | `2022` | Last year of the period to fetch, inclusive (1990–2030). |
| `maxItems` | Integer | `100` | Maximum number of records to return (1–1000). |

#### Example: browse available datasets

```json
{
  "mode": "searchDatasets",
  "maxItems": 20
}
```

#### Example: US quarterly GDP growth

```json
{
  "mode": "getIndicator",
  "datasetCode": "DSD_NAMAIN1@DF_QNA_EXPENDITURE_GROWTH_OECD",
  "countries": ["USA"],
  "startYear": 2020,
  "endYear": 2022,
  "maxItems": 100
}
```

#### Example: income inequality across several countries

```json
{
  "mode": "getIndicator",
  "datasetCode": "DSD_WISE_IDD@DF_IDD",
  "countries": ["USA", "FRA", "SWE"],
  "startYear": 2015,
  "endYear": 2022
}
```

### Use cases

- **Macro research** — pull GDP, trade or labour statistics across countries and years for analysis.
- **Policy comparison** — compare inequality or housing indicators between member countries.
- **Economic dashboards** — feed a time series into a chart or report that tracks a specific indicator over time.
- **Dataset discovery** — browse `searchDatasets` to find which OECD series cover a topic you need.
- **Cross-country benchmarking** — query the same indicator across several ISO-3 codes in one run.

### FAQ

**Do I need an account or key?**
No, both modes read publicly available OECD data with no registration.

**How do I find the right `datasetCode`?**
Run `mode: searchDatasets` first; each returned record includes the `datasetCode` to copy into a `getIndicator` run.

**What are ISO-3 country codes?**
Three-letter codes like `USA`, `GBR`, `AUS`, `DEU`, `FRA`, `JPN`, `CAN`, `ITA`, `KOR`, `MEX`.

**Why does `getIndicator` sometimes return nothing?**
Some datasets have specific country or dimension requirements that don't match every query; check the dataset's `description` from `searchDatasets` first, since a handful of datasets cover only a subset of countries.

**What do the frequency codes mean?**
`A` is annual, `Q` is quarterly, and `M` is monthly.

**How recent is the data?**
Typically 6–18 months behind the current date, depending on the dataset and how quickly member countries report.

**Why do some observations have no `indicatorName`?**
A few datasets don't label their indicator dimension with a readable description; the code is still returned under `indicatorCode`.

**Is this affiliated with the OECD?**
No. This actor is an independent tool that reads the OECD's public data and is not affiliated with, endorsed by, or sponsored by the OECD. Data remains subject to the OECD's own terms and conditions.

# Actor input Schema

## `mode` (type: `string`):

searchDatasets: list all available OECD datasets with descriptions. getIndicator: fetch actual time-series data for a dataset.

## `datasetCode` (type: `string`):

The OECD dataflow ID to fetch data from. Run searchDatasets first to get valid codes. Example: DSD_NAMAIN1@DF_QNA_EXPENDITURE_GROWTH_OECD

## `countries` (type: `array`):

List of ISO-3 country codes to filter data. Examples: USA, GBR, AUS, DEU, FRA, JPN, CAN, ITA. Leave empty for all countries.

## `startYear` (type: `integer`):

First year of the time period to fetch (inclusive).

## `endYear` (type: `integer`):

Last year of the time period to fetch (inclusive).

## `maxItems` (type: `integer`):

Maximum number of records to return (1â€“1000).

## Actor input object example

```json
{
  "mode": "searchDatasets",
  "datasetCode": "DSD_NAMAIN1@DF_QNA_EXPENDITURE_GROWTH_OECD",
  "countries": [
    "USA"
  ],
  "startYear": 2020,
  "endYear": 2022,
  "maxItems": 100
}
```

# Actor output Schema

## `indicators` (type: `string`):

Dataset containing OECD indicator records or dataset catalog entries.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "searchDatasets",
    "datasetCode": "DSD_NAMAIN1@DF_QNA_EXPENDITURE_GROWTH_OECD",
    "countries": [
        "USA"
    ],
    "startYear": 2020,
    "endYear": 2022,
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("nimbryxo-studio/oecd-dataset-catalog-and-indicator-time-series").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "searchDatasets",
    "datasetCode": "DSD_NAMAIN1@DF_QNA_EXPENDITURE_GROWTH_OECD",
    "countries": ["USA"],
    "startYear": 2020,
    "endYear": 2022,
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("nimbryxo-studio/oecd-dataset-catalog-and-indicator-time-series").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "searchDatasets",
  "datasetCode": "DSD_NAMAIN1@DF_QNA_EXPENDITURE_GROWTH_OECD",
  "countries": [
    "USA"
  ],
  "startYear": 2020,
  "endYear": 2022,
  "maxItems": 100
}' |
apify call nimbryxo-studio/oecd-dataset-catalog-and-indicator-time-series --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nimbryxo-studio/oecd-dataset-catalog-and-indicator-time-series"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/8BfeTU1pXcEjIJgMI/builds/i0gqozqhjz24YgPyd/openapi.json
