Context endpoint
Data catalogue
Search and export every series we hold for a currency, as JSON or a spreadsheet.
No API key required.
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.fxmacrodata.com/v1/data_catalogue/usd"
import os
import requests
response = requests.get(
"https://api.fxmacrodata.com/v1/data_catalogue/usd",
headers={"X-API-Key": os.environ["FXMACRODATA_API_KEY"]},
timeout=30,
)
response.raise_for_status()
print(response.json())
const response = await fetch("https://api.fxmacrodata.com/v1/data_catalogue/usd", {
headers: { "X-API-Key": process.env.FXMACRODATA_API_KEY },
});
const payload = await response.json();
console.log(payload);
What it can do
5 routes in this endpoint
Get Currently Available Macroeconomic Indicators
Use first in integrations to discover available indicator slugs, labels, units, and coverage for a currency.
GET/v1/catalogueSearch all dataset types and currencies
Search published collections, datasets and series using the same filters as the website. Returns metadata, facets, pagination and snapshot freshness; no observation values or data access grants.
GET/v1/catalogue/relatedFollow catalogue relationships from one record
List records linked to a catalogue node: who publishes a series, which country it covers, the sources it cites and related series. Use a node ID returned by /v1/catalogue/search.
GET/v1/catalogue/searchSearch series, publishers, countries and organisations
Search the connected catalogue by keyword. Choose a record kind and narrow by country, currency, publisher or dataset family. Each result carries a node ID for /v1/catalogue/related. Returns catalogue metadata only, no observation values.
GET/v1/data_catalogue/{currency}/exportSearch and export series metadata
Exports the public currency catalogue as JSON or spreadsheet-safe CSV. Search matches metadata text; frequency matches the entry's declared frequency. Native series variants remain in metadata and are not counted as separate countries. Unknown fields remain empty. Pagination uses next_offset (JSON) or X-FXMD-Next-Offset (CSV); repeat with the same filters until no next offset remains. This is a metadata export, not an observation history or a guarantee of snapshot isolation.
Example response
What comes back
A shortened example of the JSON this endpoint returns. Lists are cut to two rows here.
{
"gdp": {
"name": "GDP",
"unit": "%QoQ",
"frequency": "Quarterly",
"has_official_forecast": true
},
"inflation": {
"name": "Inflation (CPI)",
"unit": "%YoY",
"frequency": "Monthly",
"has_official_forecast": false
},
"unemployment": {
"name": "Unemployment Rate",
"unit": "%",
"frequency": "Monthly",
"has_official_forecast": false
},
"policy_rate": {
"name": "Policy Interest Rate",
"unit": "%",
"frequency": "Daily",
"has_official_forecast": false
},
"gov_bond_10y": {
"name": "10-Year Government Bond Yield",
"unit": "%",
"frequency": "Daily",
"has_official_forecast": false
}
}
Reference
Parameters and response fields
GET /v1/data_catalogue/{currency} Get Currently Available Macroeconomic Indicators
No API key required.
Returns the currently available macroeconomic indicators for a specific currency.
Availability reflects the data currently served, so temporarily unavailable series are excluded until data is available again. The catalogue is refreshed on a regular schedule.
This endpoint also replaces the deprecated /v1/capabilities and /v1/coverage_matrix endpoints. Coverage is included directly on each catalogue entry. To also include the legacy top-level coverage list, call it with include_coverage=true. To include capability metadata, call it with include_capabilities=true.
Each entry includes:
- name: The full descriptive name of the metric.
- unit: The unit of measurement (e.g., %YoY, Billions of USD).
- frequency: How often the data is updated (Daily, Monthly, Quarterly).
- source / source_url: The publisher or source family for the series, when available.
- source_series_id / source_series_name: The upstream source identifier and exact source-series label, when available.
- seasonal_adjustment: Adjustment basis (
SA,NSA,WDAfor working-day adjusted,UNKNOWN, orNOT_APPLICABLE). - price_basis: GDP/level price basis (
REAL,NOMINAL, orUNKNOWN) when applicable. - aliases / related_indicators: Optional flat discovery metadata for common alternative names and adjacent indicators.
- standardization_note: Optional note explaining sign, unit, scope, or cross-currency comparability choices.
- has_official_forecast: Whether the relevant central bank or statistics agency publishes a preliminary, flash, or advance estimate of this indicator before the main/final data release.
- coverage: Earliest/latest available dates, row count, recency status, and coverage quality for that indicator.
Parameters
| Name | In | Type | Details |
|---|---|---|---|
| currencyRequired | path | string | The 3-letter currency code (e.g., USD, AUD, EUR, GBP, CHF) Allowed: 62 currencies. |
| include_capabilities | query | boolean | Include currency-scoped endpoint/auth metadata that replaces the deprecated /v1/capabilities response. Default: false. |
| include_coverage | query | boolean | Also include the legacy currency-scoped coverage list that replaces the deprecated /v1/coverage_matrix response. Per-indicator coverage is included in catalogue entries by default. Default: false. |
| include_analytics | query | boolean | Include available precomputed analytics in capabilities when include_capabilities=true. Existing catalogue responses are unchanged unless explicitly selected. Default: false. |
| indicator | query | string | Optional indicator filter when include_coverage=true. |
| lang | query | string | Optional language for names and labels, for example es or pt-BR. A regional tag falls back to its base language, and a language that is not yet available returns English with Content-Language: en. Translated fields keep the English text in <field>_original and add a <field>_localized flag. Slugs, field names, codes, dates and values never change. Omit it for English. |
GET /v1/catalogue Search all dataset types and currencies
No API key required.
Search published collections, datasets and series using the same filters as the website. Returns metadata, facets, pagination and snapshot freshness; no observation values or data access grants.
Parameters
| Name | In | Type | Details |
|---|---|---|---|
| q | query | string | Keyword search; empty text browses all definitions. |
| currency | query | string | Currency from the returned facets; matches either leg of a pair. |
| topic | query | string | Exact topic from the returned facets. |
| publisher | query | string | Exact publisher label from the returned facets. |
| frequency | query | string | Exact frequency from the returned facets. |
| dataset | query | string | Exact dataset ID from a result; do not construct IDs. |
| data_type | query | string | Exact data type from the returned facets. |
| kind | query | string | Record kind; empty selects all kinds. Allowed: , Collection, Dataset, Series. |
| collection | query | string | Collection ID from a result; searches its children. |
| sort | query | string | Relevance, name, or earliest documented history. Allowed: relevance, name, history. Default: relevance. |
| page | query | integer | One-based result page. Default: 1. |
| page_size | query | integer | Results per page, between 1 and 50. Default: 20. |
| lang | query | string | Optional language for names and labels, for example es or pt-BR. A regional tag falls back to its base language, and a language that is not yet available returns English with Content-Language: en. Translated fields keep the English text in <field>_original and add a <field>_localized flag. Slugs, field names, codes, dates and values never change. Omit it for English. |
GET /v1/catalogue/search Search series, publishers, countries and organisations
No API key required.
Search the connected catalogue by keyword. Choose a record kind and narrow by country, currency, publisher or dataset family. Each result carries a node ID for /v1/catalogue/related. Returns catalogue metadata only, no observation values.
Parameters
| Name | In | Type | Details |
|---|---|---|---|
| q | query | string | Keyword search; empty text lists records of the selected kind. |
| kind | query | string | Record kind to search: series, publisher, country, organisation, dataset or currency. Allowed: series, publisher, country, organisation, dataset, currency. Default: series. |
| country | query | string | Two-letter ISO country code filter, for example US. |
| currency | query | string | Three-letter currency code filter, for example USD. |
| publisher | query | string | Publisher name or ID filter. |
| limit | query | integer | Results per page, between 1 and 50. Default: 10. |
| cursor | query | string | Opaque cursor from the previous page's response. |
| family | query | string | Dataset family for kind=dataset, for example fx_pair, cot or rate_curve. |
| lang | query | string | Optional language for names and labels, for example es or pt-BR. A regional tag falls back to its base language, and a language that is not yet available returns English with Content-Language: en. Translated fields keep the English text in <field>_original and add a <field>_localized flag. Slugs, field names, codes, dates and values never change. Omit it for English. |
Response fields
| Field | Type | Details |
|---|---|---|
| as_of | string | |
| revision | string | |
| results[] | object[] | |
| results[].id | string | |
| results[].kind | string | |
| results[].label | string | |
| results[].currency | string | |
| results[].country_code | string | |
| results[].unit | string | |
| results[].frequency | string | |
| results[].indicator | string | |
| results[].source_url | string | |
| results[].citation_url | string | |
| results[].services[] | string[] | |
| results[].category | string | |
| results[].family | string | |
| results[].coverage | string | |
| results[].currencies[] | string[] | |
| results[].next_tools[] | object[] | |
| results[].next_tools[].tool | string | |
| results[].next_tools[].arguments | object | |
| results[].access | object | |
| results[].access.metadata | string | |
| results[].access.values_included | boolean | |
| results[].access.data_requires_api_key | boolean | |
| results[].evidence[] | object[] | |
| pagination | object | |
| pagination.has_more | boolean | |
| pagination.next_cursor | string | |
| metadata_only | boolean |
GET /v1/data_catalogue/{currency}/export Search and export series metadata
No API key required.
Exports the public currency catalogue as JSON or spreadsheet-safe CSV. Search matches metadata text; frequency matches the entry's declared frequency. Native series variants remain in metadata and are not counted as separate countries. Unknown fields remain empty. Pagination uses next_offset (JSON) or X-FXMD-Next-Offset (CSV); repeat with the same filters until no next offset remains. This is a metadata export, not an observation history or a guarantee of snapshot isolation.
Parameters
| Name | In | Type | Details |
|---|---|---|---|
| currencyRequired | path | string | Allowed: 62 currencies. |
| format | query | string | Allowed: json, csv. Default: json. |
| q | query | string | |
| frequency | query | string | |
| offset | query | integer | Default: 0. |
| limit | query | integer | Default: 500. |
| lang | query | string | Optional language for names and labels, for example es or pt-BR. A regional tag falls back to its base language, and a language that is not yet available returns English with Content-Language: en. Translated fields keep the English text in <field>_original and add a <field>_localized flag. Slugs, field names, codes, dates and values never change. Omit it for English. |
Works well with
Endpoints people use alongside Data catalogue
The whole API
All 24 endpoint guides
Rates and markets