OECD.Stat Scraper avatar

OECD.Stat Scraper

Pricing

from $19.00 / 1,000 results

Go to Apify Store
OECD.Stat Scraper

OECD.Stat Scraper

Collects structured datasets from the OECD.Stat SDMX REST API by dataflow ID and optional key filter. Returns each observation as a flat row with dimensions, time period, and value.

Pricing

from $19.00 / 1,000 results

Rating

0.0

(0)

Developer

ParseForge

ParseForge

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Categories

Share

ParseForge

OECD.Stat Scraper

Scrape structured macroeconomic datasets from OECD.Stat via the SDMX REST API, up to a million per run. Each dataset returns as a flat table with dimensions, time series, and observation values. No custom parsing needed. Export to CSV, JSON, Excel, or XML.

The OECD publishes thousands of economic indicators across its 38 member countries and partner economies, but downloading them manually through the web interface means clicking through dimension trees and reformatting spreadsheets. This Actor reads the SDMX REST API directly, so you define a dataflow ID and an optional key filter, and it returns every matching observation in one consistent schema. It works for national accounts, trade statistics, productivity, health, education, and any other dataset hosted on OECD.Stat.

Who uses itWhat they scrape OECD.Stat for
Economic analystsPull quarterly GDP and national accounts aggregates for cross-country comparisons.
Policy researchersTrack health spending, education outcomes, or environmental indicators across member states.
Data journalistsGather trade balance, inflation, or employment figures for a story with a reproducible data source.
Academic researchersBuild a panel dataset of productivity or R&D expenditure for econometric modeling.

What it does

This Actor collects structured datasets from the OECD.Stat SDMX API by dataflow ID and optional key filter, and returns each observation as a flat row.

  • ๐Ÿ“Š Any OECD.Stat dataset: supply the SDMX dataflow ID for national accounts, trade, health, education, or any other domain.
  • ๐Ÿ”‘ Optional key filter: narrow to a specific country, indicator, or frequency with an SDMX key string like "A.USA" or ".OECD".
  • ๐Ÿ“ฆ Flat row output: every observation lands as one row with its dimensions, time period, and value, ready for analysis.

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

What you can do with OECD.Stat data

๐Ÿ“ˆ Compare GDP growth across OECD countries.

An economic analyst runs the Actor with the national accounts dataflow and a key filter for quarterly GDP, then loads the CSV into a dashboard to rank growth rates.

๐Ÿฅ Monitor health expenditure trends.

A policy researcher pulls the health spending dataflow filtered to a set of G7 countries and tracks per-capita expenditure over a decade for a policy brief.

๐ŸŒ Build a trade flows panel dataset.

An academic scrapes bilateral trade statistics for 38 countries over 20 years, merges the flat rows into a panel, and runs a gravity model.

๐Ÿ“ฐ Fact-check an employment story.

A data journalist collects harmonized unemployment rates by country and year, then cites the reproducible Actor run as the source.

Why choose this scraper

What you get
SDMX-nativeReads the same REST API that powers OECD.Stat, so you get the same data the web interface shows.
One fixed schemaEvery dataset, regardless of topic, returns as a flat table with dimension columns and observation values.
No manual downloadsSkip the point-and-click export; define the query once and collect up to a million rows per run.

How it compares

This Actor and the OECD Economic Statistics Search both pull from the OECD SDMX API, but they serve different workflows: one queries a known dataflow ID directly, the other searches by keyword first.

FeatureParseForgeOECD Economic Statistics Search
Direct dataflow ID queryYesNot listed
SDMX key filter supportYesNot listed
Flat row output per observationYesNot listed
Keyword-based dataset searchNot listedYes
Up to 1,000,000 rows per runYesNot listed

Configure the run

Drive the Actor with an OECD SDMX dataflow ID and an optional key filter; the filter is applied server-side so only matching observations reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

{
"maxItems": 10
}

A larger pull:

{
"maxItems": 200
}

Pricing

Pay-per-result: $0.021 per result collected. You pay only for the results written to your dataset.

Results collectedApproximate cost
100 results$2.10
1,000 results$21.00
10,000 results$210.00

New Apify accounts start with $5 in free credit.

Free users

Free-plan runs return up to 10 results as a preview. Upgrade your Apify plan to collect up to 1,000,000 results per run.

Run it

  1. Create a free Apify account with $5 in credit.
  2. Open the OECD.Stat Scraper.
  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 (run-sync-get-dataset-items) or the ApifyClient for JavaScript and Python.

Use with AI agents (MCP)

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

$claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/oecd-stat-scraper"

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

Troubleshooting

Why am I getting no results?

Check that your dataflow ID is correctly formatted as Agency,Resource,Version. Also verify that your key filter matches the dimension order of that dataflow. Try running without a filter first to confirm the dataflow returns data.

The run fails with an error about the dataflow ID.

Ensure the dataflow ID uses commas between the three parts and that there are no extra spaces. Browse the OECD SDMX web service to confirm the exact ID string.

My key filter returns data for the wrong country.

SDMX key filters are position-dependent. The first dimension in the key corresponds to the first dimension in the dataflow definition. Check the dataflow structure on OECD.Stat to confirm the dimension order.

The dataset is too large and the run times out.

Use the key filter to narrow your request to a specific country, indicator, or time range. You can also lower the maxItems setting to limit the number of observations returned.

I don't know which dataflow ID to use for trade data.

Visit the OECD.Stat web interface, navigate to the trade dataset you want, and look at the URL or the SDMX query link. The dataflow ID is embedded there. You can also search the OECD SDMX registry.

FAQ

QuestionAnswer
What is a dataflow ID and where do I find it?A dataflow ID identifies a specific dataset on OECD.Stat in the form Agency,Resource,Version. You can browse available dataflows on the OECD SDMX web service or copy one from the OECD.Stat interface URL.
How do I filter for a specific country?Use the optional key filter field with an SDMX key string. For example, "A.USA" filters to the United States, or ".OECD" filters to the OECD aggregate. Leave it blank to return all available dimensions.
Can I scrape multiple datasets in one run?Each run targets one dataflow ID. To collect multiple datasets, run the Actor once per dataflow ID, or schedule separate runs for each dataset you need.
Does this Actor require an API key?No. The OECD SDMX REST API is publicly accessible and does not require registration or authentication.
What output formats are supported?You can export your dataset to CSV, JSON, Excel, or XML from the Apify platform after the run completes.
How many rows can I collect per run?You can set the maximum number of datasets up to 1,000,000 per run. The actual number of rows depends on the dataflow and filter you choose.
What is an SDMX key filter?An SDMX key filter is a string appended to the dataflow ID that selects specific dimension values, such as a country, frequency, or indicator. It follows the SDMX REST API convention.
Does this work for all OECD.Stat databases?Yes, any dataset exposed through the OECD SDMX REST API is supported. This includes national accounts, trade, productivity, health, education, environment, and more.
Can I get time series data with this Actor?Yes. Each observation row includes a time period dimension, so you get the full time series for the dimensions you request.
Is the data returned in a flat or nested format?The Actor returns each observation as a flat row with columns for each dimension, the time period, and the observation value. No nested JSON to unpack.

Browse the full ParseForge collection 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 Organisation for Economic Co-operation and Development. 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.