# How to connect OECD Data Explorer SDMX API to ChatGPT

> Connect OECD Data Explorer SDMX API to ChatGPT with the Firecrawl plugin. Use OECD Data Explorer SDMX API as an MCP tool in ChatGPT via Firecrawl Alexandria.

To connect OECD Data Explorer SDMX API to ChatGPT, add the Firecrawl plugin to ChatGPT, sign in on a Firecrawl team with Alexandria enabled, and ask for OECD Data Explorer SDMX API data in plain language. The connection works in ChatGPT and Codex, and you set it up once.

ChatGPT uses OECD Data Explorer SDMX API as an MCP tool through Firecrawl's hosted MCP server, so you don't install or host a separate MCP server for OECD Data Explorer SDMX API.

ChatGPT is OpenAI's AI assistant. Plugins add tools from other services, and the Firecrawl plugin adds web search, scraping and every data provider in Firecrawl Alexandria.

## How do I connect OECD Data Explorer SDMX API to ChatGPT?

### 1. Install the Firecrawl plugin

Open the [Firecrawl listing in ChatGPT's plugin directory](https://chatgpt.com/plugins/plugin_asdk_app_6a314a73f8ac819195b0d55e36b9c609?q=firecrawl) and select Install plugin. You can also open Plugins in ChatGPT or Codex and search for Firecrawl.

[Add to ChatGPT](https://chatgpt.com/plugins/plugin_asdk_app_6a314a73f8ac819195b0d55e36b9c609?q=firecrawl)

![The Firecrawl plugin page in ChatGPT with the Install plugin button](https://www.firecrawl.dev/images/alexandria/connect/chatgpt/install.webp)

### 2. Connect your Firecrawl account

ChatGPT opens Firecrawl in your browser. Sign in, choose a team with Alexandria enabled, and approve access. No account yet? You can create one for free in the same flow.

![Firecrawl's consent screen asking to connect chatgpt.com to Firecrawl](https://www.firecrawl.dev/images/alexandria/connect/chatgpt/authorize.webp)

### 3. Attach Firecrawl to a chat

Start a new chat so it loads the plugin, open the + menu and choose Firecrawl. You can also ask ChatGPT to use Firecrawl by name.

![ChatGPT's + menu with the Firecrawl plugin listed](https://www.firecrawl.dev/images/alexandria/connect/chatgpt/attach.webp)

### 4. Ask ChatGPT for the data

Ask in plain language and mention OECD Data Explorer SDMX API or Firecrawl Alexandria. ChatGPT finds the OECD Data Explorer SDMX API capability that fits and runs it. For example:

```text
Use Firecrawl to run OECD Data Explorer SDMX API's Codelist get capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.
```

## What can ChatGPT do with OECD Data Explorer SDMX API?

OECD Data Explorer SDMX 2.1 REST API (sdmx.oecd.org/public/rest): any public OECD dataflow by country and period, including G20 international merchandise trade and balance-of-payments services trade (quarterly), Revenue Statistics (tax revenue by type, % of GDP), Social Expenditure (SOCX) and quarterly/annual sector accounts, plus financial market indicators. Dataflow catalogue, structures (dimensions and codes with data), codelists and observations as records. Select observations with `filters` (dimension id to code(s), e.g. REF_AREA USA) and start_period/end_period; the program places the codes in key order. Anonymous, no key.

ChatGPT can run any of OECD Data Explorer SDMX API's 6 capabilities through Alexandria. Each call is billed in Firecrawl credits on your Firecrawl team.

- **Codelist get**: Codes and labels of one SDMX codelist from GET codelist/{agency}/{id}/{version}: code, English name and parent code. Codelist references come from `structure_get` (dimensions[].codelist, attributes[].codelist). Paginated client-side. Costs 5 Firecrawl credits per call.
- **Dataflows list**: Find OECD dataflows by keyword: id, agency, version, name and the `dataflow_ref` every other function takes, from GET dataflow/{agency}/all/latest?detail=allstubs (about 1,500 public dataflows with `agency` = all). `q` filters by a case-insensitive substring of the name or id (e.g. `revenue statistics`, `social expenditure`, `sector accounts`, `merchandise trade`). Common dataflows: G20/OECD merchandise trade OECD.SDD.TPS:DSD_IMTS@DF_IMTS (REF_AREA incl. G20, G7, OECD; TRADE_FLOW X exports, M imports, TB balance; FREQ Q/M/A; UNIT_MEASURE USD_EXC); quarterly trade in services and goods from balance of payments OECD.SDD.TPS:DSD_BOP@DF_BOP (MEASURE S services, G goods; ACCOUNTING_ENTRY C credit (exports), D debit (imports), B balance; FREQ Q); annual services by partner and category OECD.SDD.TPS:DSD_BOP@DF_TIS; Revenue Statistics OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD (STANDARD_REVENUE _T total tax, T_1000 income, T_1100 personal income, T_1200 corporate, T_2000 social security, T_4000 property, T_5000 goods and services; UNIT_MEASURE PT_B1GQ % of GDP; SECTOR S13 general government); Social expenditure (SOCX) OECD.ELS.SPD:DSD_SOCX_AGG@DF_SOCX_AGG (EXPEND_SOURCE ES10 public, ES20 mandatory private; PROGRAMME_TYPE _T total, TP11 old age...; UNIT_MEASURE PT_B1GQ % of GDP); quarterly sector accounts OECD.SDD.NAD:DSD_NASEC1@DF_QSA (SECTOR S1 total economy, S11 non-financial corporations, S13 government, S14 households, S1M households and NPISH; TRANSACTION B6G disposable income, B8G saving, B9 net lending...); annual sector accounts OECD.SDD.NAD:DSD_NASEC10@DF_TABLE14. Countries are ISO3 codes in REF_AREA; periods are 2024, 2024-Q3, 2024-07. Costs 5 Firecrawl credits per call.
- **Records get**: One observation by its source identity: dataflow, full series key (no wildcards, no `+`) and TIME_PERIOD, from GET data/{flow}/{series key}?startPeriod=P&endPeriod=P as SDMX-CSV. not_found when OECD has no observation for that series and period. Costs 5 Firecrawl credits per call.
- **Records list**: Observations of one dataflow selected by country, other dimension codes and period, as records. Give `filters` (dimension id to code(s); REF_AREA is the country) or a raw `key`, plus optional start_period/end_period. Unknown dimensions or codes without data fail with invalid_input listing the valid ones; a combination with no data is not_found. Selections above 50,000 observations are rejected: add filters or a period range. One data download per page (OECD allows about 60 per hour); rows are sorted canonically and the cursor pins the dataflow version and segment hash, so a publication change fails with upstream_error `publication_changed` instead of mixing data. Each record carries every dimension and attribute code, obs_value, time_period, series_key, source_record_id and source_url; Revenue Statistics and financial market rows also get a typed `mapped` view. Common dataflows: merchandise trade incl. G20 aggregate OECD.SDD.TPS:DSD_IMTS@DF_IMTS, quarterly services/goods trade (balance of payments) OECD.SDD.TPS:DSD_BOP@DF_BOP, Revenue Statistics OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD, SOCX OECD.ELS.SPD:DSD_SOCX_AGG@DF_SOCX_AGG, quarterly sector accounts OECD.SDD.NAD:DSD_NASEC1@DF_QSA; structure_get and dataflows_list list their key codes. Costs 5 Firecrawl credits per call.
- **Source status**: Cheap check of one selection (`filters` or `key`) of a dataflow from GET availableconstraint/{flow}/{key}?mode=exact (cached 2 h upstream): resolved dataflow version, obs_count, time range and the codes present per dimension, plus the segment's data file URL. With `include_hash` the SDMX-CSV segment is downloaded once and hashed canonically (the same hash records_list pins in its cursor). Useful to see which codes and periods exist for a country before collecting. Costs 5 Firecrawl credits per call.
- **Structure get**: Describe one dataflow: dimension ids in key order, the codelist of each, the codes that actually carry data per dimension, attributes, total obs_count and time range (stub, data structure definition and whole-flow availability). Use it to choose `filters` for records_list; code labels come from codelist_get. Common dataflows: G20/OECD merchandise trade OECD.SDD.TPS:DSD_IMTS@DF_IMTS (REF_AREA incl. G20, G7, OECD; TRADE_FLOW X exports, M imports, TB balance; FREQ Q/M/A; UNIT_MEASURE USD_EXC); quarterly trade in services and goods from balance of payments OECD.SDD.TPS:DSD_BOP@DF_BOP (MEASURE S services, G goods; ACCOUNTING_ENTRY C credit (exports), D debit (imports), B balance; FREQ Q); annual services by partner and category OECD.SDD.TPS:DSD_BOP@DF_TIS; Revenue Statistics OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD (STANDARD_REVENUE _T total tax, T_1000 income, T_1100 personal income, T_1200 corporate, T_2000 social security, T_4000 property, T_5000 goods and services; UNIT_MEASURE PT_B1GQ % of GDP; SECTOR S13 general government); Social expenditure (SOCX) OECD.ELS.SPD:DSD_SOCX_AGG@DF_SOCX_AGG (EXPEND_SOURCE ES10 public, ES20 mandatory private; PROGRAMME_TYPE _T total, TP11 old age...; UNIT_MEASURE PT_B1GQ % of GDP); quarterly sector accounts OECD.SDD.NAD:DSD_NASEC1@DF_QSA (SECTOR S1 total economy, S11 non-financial corporations, S13 government, S14 households, S1M households and NPISH; TRANSACTION B6G disposable income, B8G saving, B9 net lending...); annual sector accounts OECD.SDD.NAD:DSD_NASEC10@DF_TABLE14. Countries are ISO3 codes in REF_AREA; periods are 2024, 2024-Q3, 2024-07. Costs 5 Firecrawl credits per call.

## What should I ask ChatGPT?

Name OECD Data Explorer SDMX API or Firecrawl Alexandria in the prompt so ChatGPT reaches for it.

- [Use Firecrawl to run OECD Data Explorer SDMX API's Codelist get capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.](https://chatgpt.com/?q=Use%20Firecrawl%20to%20run%20OECD%20Data%20Explorer%20SDMX%20API's%20Codelist%20get%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)
- [Use Firecrawl to run OECD Data Explorer SDMX API's Dataflows list capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.](https://chatgpt.com/?q=Use%20Firecrawl%20to%20run%20OECD%20Data%20Explorer%20SDMX%20API's%20Dataflows%20list%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)
- [Use Firecrawl to run OECD Data Explorer SDMX API's Records get capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.](https://chatgpt.com/?q=Use%20Firecrawl%20to%20run%20OECD%20Data%20Explorer%20SDMX%20API's%20Records%20get%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)
- [Use Firecrawl to run OECD Data Explorer SDMX API's Records list capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.](https://chatgpt.com/?q=Use%20Firecrawl%20to%20run%20OECD%20Data%20Explorer%20SDMX%20API's%20Records%20list%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)

### For agents

Start with the `sdmx-oecd-org` provider. Use Firecrawl Alexandria first. With MCP, use firecrawl_search with sources: ["alexandria"] to discover relevant tools, firecrawl_find_tools to inspect the selected capability contracts, then firecrawl_scrape in alexandria mode to retrieve records. With the CLI, use firecrawl search alexandria, firecrawl list, then firecrawl scrape for the selected provider/capability. Follow the live tool schema and returned contract; never invent provider IDs or inputs. Ask for missing required details before execution, respect access and pricing, and inspect each result for errors. Cite retrieved records, distinguish missing data from failures, and explain gaps. If no suitable Alexandria capability exists, say so before using web sources. Do not treat a tool listing as retrieved data.

## Troubleshooting

### Why doesn't ChatGPT use OECD Data Explorer SDMX API?

Start a new chat after installing so ChatGPT loads the plugin, then attach Firecrawl from the + menu and name OECD Data Explorer SDMX API or Firecrawl Alexandria in the prompt.

### How do I switch the Firecrawl team ChatGPT uses?

Open the Firecrawl plugin page in ChatGPT, uninstall it from the menu next to Settings, then install it again and choose the other team on Firecrawl's consent screen.

### Why does ChatGPT say OECD Data Explorer SDMX API isn't available?

Alexandria needs a Firecrawl team with Alexandria enabled. Reinstall the plugin and pick that team when you approve access.

## Use OECD Data Explorer SDMX API in other AI apps

- [OECD Data Explorer SDMX API in Claude](https://alexandria.firecrawl.dev/providers/sdmx-oecd-org/connect/claude)
- [OECD Data Explorer SDMX API in Cursor](https://alexandria.firecrawl.dev/providers/sdmx-oecd-org/connect/cursor)
- [OECD Data Explorer SDMX API in Grok Bot](https://alexandria.firecrawl.dev/providers/sdmx-oecd-org/connect/grok-bot)
- [OECD Data Explorer SDMX API in Muse](https://alexandria.firecrawl.dev/providers/sdmx-oecd-org/connect/muse)

### Other data providers you can connect to ChatGPT

- [How to connect France public medicines database (BDPM) to ChatGPT](https://alexandria.firecrawl.dev/providers/base-donnees-publique-medicaments-gouv-fr/connect/chatgpt)
- [How to connect ClinicalTrials.gov to ChatGPT](https://alexandria.firecrawl.dev/providers/clinicaltrials-gov/connect/chatgpt)
- [How to connect CMS Medicare Drug Prices: Negotiated Prices and Part B ASP Payment Limits to ChatGPT](https://alexandria.firecrawl.dev/providers/cms-gov/connect/chatgpt)
- [How to connect CDC PLACES local health estimates (data.cdc.gov) to ChatGPT](https://alexandria.firecrawl.dev/providers/data-cdc-gov/connect/chatgpt)

Full setup guide: [Firecrawl in ChatGPT](https://www.firecrawl.dev/integrations/chatgpt)

## Frequently asked questions

### What is Firecrawl?

Firecrawl is the web data API to search, scrape and interact with the web at scale. It turns websites into clean, LLM-ready data for AI agents and apps. The Firecrawl plugin brings those tools into ChatGPT, along with every data provider in Firecrawl Alexandria.

### What is Firecrawl Alexandria?

Firecrawl Alexandria is Firecrawl's library of 550+ data providers for AI agents, OECD Data Explorer SDMX API among them. Each provider returns structured data through documented capabilities. ChatGPT finds the capability that fits your question and calls it through the Firecrawl plugin, so you don't write any integration code. Alexandria needs a Firecrawl account signed in on a team with Alexandria enabled, or an API key from such a team; keyless connections don't include it.

### Is there a OECD Data Explorer SDMX API MCP server for ChatGPT?

ChatGPT reaches OECD Data Explorer SDMX API through Firecrawl's hosted MCP server, which serves OECD Data Explorer SDMX API and every other Alexandria provider as tools. Add the Firecrawl plugin once and you don't install or host a separate MCP server for OECD Data Explorer SDMX API.

### What does connecting OECD Data Explorer SDMX API to ChatGPT unlock?

ChatGPT can run all 6 of OECD Data Explorer SDMX API's capabilities, including Codelist get, Dataflows list and Records get, from any chat, with structured results it can sort, compare and summarize. In the same conversation, ChatGPT can combine OECD Data Explorer SDMX API with Firecrawl's web search and scraping and the other providers in Firecrawl Alexandria.

### Do I need my own OECD Data Explorer SDMX API account or API key to use it in ChatGPT?

No. ChatGPT calls OECD Data Explorer SDMX API through Firecrawl Alexandria and each call is billed in Firecrawl credits, so you don't need a separate OECD Data Explorer SDMX API account or API key.

### How much does it cost to use OECD Data Explorer SDMX API in ChatGPT?

Each OECD Data Explorer SDMX API call costs 5 Firecrawl credits. The capability list on this page shows each price and its unit. The credits come from the Firecrawl team you connect to ChatGPT, and finding the right capability is free.

### Can ChatGPT use other providers besides OECD Data Explorer SDMX API?

Yes. The same Firecrawl plugin reaches every provider in Firecrawl Alexandria, along with Firecrawl's web search and scraping, so you connect once.

### Can I use OECD Data Explorer SDMX API in other AI apps?

Yes. Connect Firecrawl to Claude, Cursor, Grok Bot, Muse signed in on a Firecrawl team with Alexandria enabled, or use the Firecrawl MCP server, CLI or API with an API key from that team, and the same OECD Data Explorer SDMX API capabilities are available there. Keyless connections don't include Alexandria.
