# OECD Short-term Economic Statistics Scraper (`parseforge/oecd-data-scraper`) Actor

Scrape OECD short-term economic statistics by dataset and country via the official SDMX API: composite leading indicators, consumer prices, industrial production, business and consumer surveys, key economic indicators. Flat rows, CSV, JSON, Excel or XML.

- **URL**: https://apify.com/parseforge/oecd-data-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Business, Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.52 / 1,000 results

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

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner.jpg)](https://apify.com/parseforge?fpr=vmoqkp)

### OECD Short-term Economic Statistics Scraper

**Scrape OECD short-term economic statistics for any country, up to a million records per run.** Get Composite Leading Indicators, Consumer Prices, Industrial Production, Business and Consumer Surveys, Financial Market Indicators, Monetary Aggregates or the Key Economic Indicators in a flat, analysis-ready format. Export to CSV, JSON, Excel, or XML.

The OECD publishes critical short-term economic data, but downloading it manually means navigating their data portal, selecting filters, and exporting file by file. This Actor reads the OECD SDMX API directly, letting you pull any of eight short-term dataflows for one country, a list of countries, or all countries at once, optionally limited to a period range. Each record lands in your dataset with a consistent schema, ready for analysis.

| Who uses it | What they scrape OECD for |
|---|---|
| Macroeconomic analysts | Monitor turning points in the business cycle with the latest Composite Leading Indicators. |
| Financial market researchers | Track inflation trends across multiple economies using harmonized Consumer Price Index data. |
| Supply chain strategists | Assess real economic activity in sourcing countries through monthly Industrial Production figures. |
| Data journalists | Build a time series of key economic metrics to support a story on global economic health. |

### What it does

This Actor collects OECD short-term economic statistics by dataset and country code, and returns each observation as a flat row.

- 🌐 **Eight datasets:** Composite Leading Indicators (CLI), Consumer Prices (CPI), Industrial Production (production, sales, work started and orders), Key Short-term Economic Indicators (KEI), Business Tendency Surveys, Consumer Opinion Surveys, Financial Market Indicators, and Monetary Aggregates.
- 🏳️ **Country selection:** Pull data for a single ISO3 country code, a comma-separated list, or set to "all" for every available country.
- 📅 **Period range:** Optional start and end period (2020, 2020-01 or 2020-Q1) to keep the run to the years you need. The most recent observations come first.
- 📊 **Flat output:** Each observation is one row with its country, subject, unit, frequency, seasonal adjustment, transformation, time period, value and observation status, both as OECD codes and as plain-English names, ready for pivot tables.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

### What you can do with OECD data

**📈 Monitor business cycle turning points.**

A macro analyst pulls the latest CLI data for the G7 countries each month to update a recession probability dashboard.

**💰 Track inflation for investment decisions.**

A fixed-income researcher scrapes monthly CPI for Brazil, India, and South Africa to gauge real yield opportunities.

**🏭 Gauge real-time industrial activity.**

A procurement manager collects Industrial Production data for Vietnam and Mexico to anticipate factory output and shipping demand.

**📰 Build a global economic snapshot.**

A data journalist runs the scraper for all countries on the CLI dataset to create a heatmap of economic momentum for an article.

### Why choose this scraper

|  | What you get |
|---|---|
| **Consistent schema** | All eight datasets return the same flat structure, so you can append runs without reshaping. |
| **No manual downloads** | Skip the OECD Data Explorer interface and get raw data directly into your pipeline. |
| **Full country coverage** | One run with "all" countries gives you a global view for cross-country comparisons. |

### How it compares

No other Store actor targets OECD the same way, so the honest comparison is with the alternatives teams actually weigh.

| | OECD Short-term Economic Statistics Scraper | Build it in-house | By hand |
|---|---|---|---|
| Setup | Run it now, zero config | Days of engineering | None, but hours per pull |
| When OECD changes | Maintained for you | You fix it | You re-learn the page |
| Proxies, retries, anti-bot | Built in | Your problem | Browser only |
| Output | Fixed JSON schema, CSV/Excel export | Whatever you build | Copy-paste |
| Cost | Pay per result | Engineering time | Analyst hours |

### Configure the run

Drive the Actor by selecting one of the eight OECD datasets and a country code, then set a maximum number of records to cap the run. The Input tab lists every parameter.

A first run with the defaults:

```json
{
  "dataset": "OECD.SDD.STES,DSD_STES@DF_CLI",
  "country": "USA",
  "maxItems": 10
}
```

Consumer prices for three economies since 2020:

```json
{
  "dataset": "OECD.SDD.TPS,DSD_PRICES@DF_PRICES_ALL",
  "country": "USA,DEU,JPN",
  "startPeriod": "2020-01",
  "maxItems": 5000
}
```

### Free users

Free-plan runs return up to 10 results as a preview. [Upgrade your Apify plan](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 results per run.

### Run it

1. [Create a free Apify account with $5 in credit](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Open the [OECD Short-term Economic Statistics Scraper](https://apify.com/parseforge/oecd-data-scraper?fpr=vmoqkp).
3. Set your inputs and any filters, then click **Start**.
4. Export the results as CSV, Excel, JSON, or XML from the **Dataset** tab.

Run it programmatically through the [Apify API](https://docs.apify.com/api/v2) (`run-sync-get-dataset-items`) or the [ApifyClient](https://docs.apify.com/api/client/js) for JavaScript and Python.

### Use with AI agents (MCP)

Give an AI agent live access to OECD through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/oecd-data-scraper"
```

Then prompt it in plain language to run the scraper and read back the results.

### Troubleshooting

**I got zero results for my country code.**

Verify you are using the correct ISO3 code, like "USA" not "US". Also, not all countries are available in every dataset. Try the "all" setting to see which countries return data.

**The run stopped at 10 records but I need more.**

The free tier is limited to a 10-record preview. Upgrade to a paid Apify plan and increase the "Maximum data records" field to pull your full dataset.

**The data values look strange or are missing.**

The OECD API sometimes returns nulls for missing periods. This is normal. Filter nulls in your analysis tool, or check the OECD data portal to confirm the series coverage for that country.

**I don't know which dataset to choose.**

CLI predicts economic turning points, CPI measures inflation, Industrial Production measures real output, and KEI bundles the headline indicators (production, retail trade, earnings, unemployment) in one dataset. Pick the one that matches your economic question.

### FAQ

| Question | Answer |
|---|---|
| What OECD datasets can I scrape? | Composite Leading Indicators (CLI), Consumer Prices (CPI), Industrial Production (production, sales, work started and orders), Key Short-term Economic Indicators (KEI), Business Tendency Surveys, Consumer Opinion Surveys, Financial Market Indicators, and Monetary Aggregates. Select one per run from the dataset dropdown. |
| How do I specify a country? | Use the three-letter ISO3 country code, like USA, DEU, or JPN. Separate several codes with commas, or enter "all" to fetch data for every country the OECD has in that dataset. |
| Is there a limit on how many records I can get? | Free Apify users are limited to 10 records as a preview. Paid users can set the maxItems field up to 1,000,000 records per run. |
| What format is the data returned in? | Each observation is a flat row with the dataset, country, subject, unit, frequency, adjustment, transformation, time period, value and observation status, as OECD codes plus plain-English names. You can export the full run to CSV, JSON, Excel, or XML. |
| Can I limit the run to recent years? | Yes. Set Start period and End period in the dataset's own format (2020, 2020-01 or 2020-Q1). Without them the full history is returned, most recent observations first. |
| Does this use the official OECD API? | Yes, it reads from the OECD SDMX API, which is the same public interface that powers their data portal. No API key is needed. |
| Can I get historical data or only the latest value? | The API returns the full time series available for your chosen dataset and country, so you get historical observations as well as the most recent one. |
| How often is the OECD data updated? | The Actor pulls live data from the OECD API on each run. The underlying data is updated by the OECD according to their publication schedule, typically monthly. |
| What is a Composite Leading Indicator? | The CLI is designed to signal turning points in the business cycle. It aggregates several component series to anticipate fluctuations in economic activity. |
| Can I schedule this scraper to run automatically? | Yes, Apify supports scheduled runs. You can set this Actor to run daily or monthly to keep your economic database current. |

### Related actors

- [OECD SDMX Statistics Scraper](https://apify.com/parseforge/oecd-sdmx-scraper?fpr=vmoqkp) for any OECD dataflow by ID and key filter.
- [OECD.Stat Scraper](https://apify.com/parseforge/oecd-stat-scraper?fpr=vmoqkp) for the legacy OECD.Stat datasets.
- [DBnomics Economic Series Scraper](https://apify.com/parseforge/dbnomics-economic-series-scraper?fpr=vmoqkp) for series from 80+ statistical providers in one place.

Browse the full [ParseForge collection](https://apify.com/parseforge?fpr=vmoqkp) for more scrapers.

🆘 **Need help?** Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ **Disclaimer.** This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by OECD. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

# Actor input Schema

## `dataset` (type: `string`):

OECD dataflow to query. All of them come from the official SDMX API (no API key). The retired IDs DSD\_STES@DF\_CPI and DSD\_STES@DF\_INDPROD are still accepted and mapped onto their successors.

## `country` (type: `string`):

ISO3 country code (USA, DEU, JPN). Several codes separated by commas (USA,DEU,JPN), or "all" for every country in the dataset.

## `startPeriod` (type: `string`):

Earliest period to return, in the dataset's own format: 2020, 2020-01 or 2020-Q1. Leave empty for the full history.

## `endPeriod` (type: `string`):

Latest period to return, same format as Start period. Leave empty for the most recent data.

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

Free users limited to 10 data records (preview). Paid users optional, up to 1,000,000. The most recent observations come first.

## Actor input object example

```json
{
  "dataset": "OECD.SDD.STES,DSD_STES@DF_CLI",
  "country": "USA",
  "maxItems": 10
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "country": "USA",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/oecd-data-scraper").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 = {
    "country": "USA",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/oecd-data-scraper").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 '{
  "country": "USA",
  "maxItems": 10
}' |
apify call parseforge/oecd-data-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parseforge/oecd-data-scraper"
        }
    }
}
```

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/lDOwSlgXvb5Y6j0Y1/builds/ttW0Yb8SfZYmycGQF/openapi.json
