Releases endpoint
Release history
The full history of any indicator, first print and revisions, for backtests and charts.
USD is publicly accessible within the freemium window, on a 15-minute release delay, up to 100 no-key requests per day. Real-time releases, other currencies, deeper history, or higher-volume use require an Individual API key.
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.fxmacrodata.com/v1/announcements/usd/inflation"
import os
import requests
response = requests.get(
"https://api.fxmacrodata.com/v1/announcements/usd/inflation",
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/announcements/usd/inflation", {
headers: { "X-API-Key": process.env.FXMACRODATA_API_KEY },
});
const payload = await response.json();
console.log(payload);
What it can do
3 routes in this endpoint
Get macroeconomic indicator data
Use for historical macroeconomic time series, release timestamps, pagination, and source metadata for one indicator.
GET/v1/export/{currency}Bulk history export for one currency
Streams the stored announcement history of many indicators for one currency in a single response, as NDJSON (default) or CSV.
GET/v1/event-history/{currency}/{indicator}Past releases with forecast, surprise and FX reaction
Returns each past release of one indicator with the actual value, the previous value, the forecast held for that release, the surprise and the move in the currency's standard pair after the release.
Example response
What comes back
A shortened example of the JSON this endpoint returns. Lists are cut to two rows here.
{
"currency": "USD",
"indicator": "inflation",
"name": "Inflation (CPI)",
"source": "BLS",
"source_url": "https://www.bls.gov/",
"source_series_id": "BLS:CUUR0000SA0",
"source_series_name": "Consumer Price Index for All Urban Consumers: All Items",
"seasonal_adjustment": "NSA",
"is_proxy": false,
"provenance": {
"storage": "FXMacroData",
"is_proxy": false,
"publisher": "BLS",
"served_by": "/v1/announcements/{currency}/{indicator}",
"publisher_url": "https://www.bls.gov/",
"value_field": "val",
"timestamp_field": "announcement_datetime",
"source_series_id": "BLS:CUUR0000SA0",
"source_series_name": "Consumer Price Index for All Urban Consumers: All Items",
"seasonal_adjustment": "NSA"
},
"has_official_forecast": true,
"requested_start_date": "2026-07-08",
"requested_end_date": "2026-10-06",
"requested_window_has_data": true,
"page_includes_latest_available": true,
"start_date": "2026-07-31",
"end_date": "2026-10-06",
"earliest_available_date": "2026-07-31",
"latest_available_date": "2026-08-31",
"cb_target": {
"description": "Federal Reserve inflation objective (2% goal is defined on PCE, not CPI)",
"source": "Federal Reserve Statement on Longer-Run Goals and Monetary Policy Strategy",
"current": {
"effective_from": "2020-08-27",
"target": 2.0,
"notes": "Flexible Average Inflation Targeting (FAIT) adopted; 2% remains the long-run goal (defined on PCE)"
},
"history": [
{
"effective_from": "2012-01-25",
"target": 2.0,
"notes": "First explicit 2% inflation goal announced by FOMC (defined on the PCE price index)"
...
Reference
Parameters and response fields
GET /v1/announcements/{currency}/{indicator} Get macroeconomic indicator data
USD is publicly accessible within the freemium window, on a 15-minute release delay, up to 100 no-key requests per day. Real-time releases, other currencies, deeper history, or higher-volume use require an Individual API key.
Fetches historical data for a given macroeconomic indicator of a currency.
Authentication & limits:
- USD data is publicly accessible without an API key, but anonymous callers are limited to the most recent 90 days. Requests for an earlier
start_dateare clamped to that 90-day window, and the response then carries afreemium_windowobject naming the cutoff so a shortened history is distinguishable from a short series. - Anonymous USD data is also delayed by 15 minutes. A release is served once it is 15 minutes old; until then it is withheld, and
latest_available_datereports the newest observation the caller can actually read. Every anonymous response carries afreemium_delayobject naming the cutoff, the number of withheld releases and when the next one becomes available. An API key removes the delay. - All other currencies require an Individual or Business API key supplied via
?api_key=<key>or theX-API-Keyheader. - Authenticated callers (any valid API key) receive the full requested history for every supported currency, including USD.
Empty windows:
- A valid series with no observations inside the requested window returns
200withdata: [],requested_window_has_data: false, and ano_dataobject carryingerror_code,latest_available_date,recommended_start_dateandavailable_observation_count. This is a successful query, not an error, and should not be retried; widen the window instead. - Anonymous USD callers see this whenever a quarterly or annual series' latest observation predates the 90-day freemium window;
no_data.freemium_clampedmarks that case. 404on this endpoint means the currency or indicator slug is not published. Use/v1/data_catalogue/{currency}to list valid slugs.
Response fields:
remap: Metadata about the canonical remap rule application (applied,rule_id, segments, and transform mode).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.earliest_available_date/latest_available_date: The full coverage span available in the response window before any pagination is applied.pagination: Page metadata for the returneddata[]slice (limit,offset,returned_count,total_count,has_more,next_offset).data[].announcement_id: Stable identifier for this unique announcement, in the form{currency}_{indicator}_{date}(lowercase, e.g.usd_inflation_2026-01-31). Use this to join predictions from/v1/predictions/{currency}/{indicator}and revision history back to the underlying observation.data[].announcement_datetime: Release timestamp as Unix epoch seconds (UTC).data[].announcement_datetime_local: ISO 8601 release time with offset, rendered in the source agency's local timezone (e.g. USD → America/New_York, AUD → Australia/Sydney).data[].official_planned_release_datetime: Official planned release timestamp from the publisher's release calendar, as Unix epoch seconds (UTC). Present when the release was captured against a pre-announced official release time.data[].official_actual_release_datetime: Official release timestamp on the source row, as Unix epoch seconds (UTC). This is normally the same asannouncement_datetimeunless the source exposes a separate publication timestamp.data[].collected_at_ns/data[].collected_at_iso: Exact time FXMacroData first captured this row from the official source.data[].release_timing:scheduled_atis the official schedule.published_atequalspublished_by, the observed upper publication bound, not an exact publisher timestamp.published_afteris the proven lower bound.picked_up_atis accepted capture;available_atis store commit, not client receipt.source_pickup_latency_min_ms/source_pickup_latency_max_msmeasure publication-to-capture bounds;latency_msandpickup_ms_*end at store commit.publication_delay_msis a schedule-to-observed-bound diagnostic. Missing measurements remain null. The 1000mssource_pickup_slo_msis a classification threshold, not a measured latency or guarantee. An unverified publication clock stays unverified.data[].ingestion_latency_ms/ingestion_latency_reference: Deprecated optional diagnostics retained when stored. They measure collection against the original named schedule or actual-release reference, and are never recomputed from the new timing fields. See /documentation/deprecation-policy#legacy-announcement-latency.data[].publication_time_status: whatannouncement_datetimeis evidence of -confirmed(the publisher's own timestamp),unverified(a real timestamp whose origin the row does not prove; withpublication_time_basis=official_scheduleit is the publisher's scheduled release instant that the value was captured against),assumed_historical(derived from measured lag, pre-launch rows only) orunknown(no time; the row is served on its period date). A schedule instant is never promoted toconfirmed.fields=compact: trims each row todate,val,previous_value,change_from_previous,announcement_datetime,announcement_datetime_localandpublication_time_status, withrevisions[]folded intorevisions_summary. The envelope, pagination anddataset_versionare the same as the full view.source_series_name: The actual underlying source series used for this standardized indicator.value_name: The actual series name used for the returnedval. Forpolicy_rate, this is the canonical policy-series label chosen by the platform (for example, ECB Deposit Facility Rate or Federal Funds Target Range Upper Bound).source_local_name: Official local-language series label when available.is_proxy: True when the standardized indicator is populated using a documented proxy rather than a directly named national headline series.proxy_note: Short explanation of the proxy choice whenis_proxy=true.policy_role: Forpolicy_rate, the role of the canonical rate inside its official rate family (for exampleprimaryortarget_upper).policy_structure: Forpolicy_rate, the policy-regime structure such assingle_primary,target_range,primary_plus_corridor, ornon_rate_regime.comparison_compatible: Forpolicy_rate, whether the returnedvalcan be honestly used in cross-country policy-rate comparisons.policy_family: Optional top-level metadata listing sibling policy-rate indicators in the same official family.data[].predicted_value*(deprecated — use/v1/predictions/{currency}/{indicator}instead)*: Market or professional-forecaster expectation for this indicator reading, in the same units asval. Present only where a prediction source is available.data[].prediction_type*(deprecated — use/v1/predictions/{currency}/{indicator}instead)*: Legacy per-source category. Seeprediction_classon/v1/predictionsfor the consolidated axis:market_consensuscovers both compiled consensus and forecaster surveys, andmarket_predictionis market-implied, not a survey.data[].prediction_source*(deprecated — use/v1/predictions/{currency}/{indicator}instead)*: Stable identifier for the prediction source (e.g.ecb_spffor the ECB Survey of Professional Forecasters). Null whenpredicted_valueis absent.
Parameters
| Name | In | Type | Details |
|---|---|---|---|
| currencyRequired | path | string | Allowed: 62 currencies. |
| indicatorRequired | path | string | Allowed: 1481 indicators. |
| start_date | query | string | Inclusive observation-period start date YYYY-MM-DD (data[].date), not publication date |
| end_date | query | string | Inclusive observation-period end date YYYY-MM-DD (data[].date), not publication date |
| series_mode | query | string | Optional series rendering mode. canonical applies configured remap rules (for continuity across methodology transitions). raw returns the direct indicator series without remapping. Default: raw. |
| limit | query | integer | Maximum number of rows to return in data[]. Rows are ordered most-recent-first, so limit=10 returns the 10 most recent observations within the requested window. Use together with offset to page through long histories. Defaults to 20. Maximum 100. Default: 20. |
| offset | query | integer | Number of rows to skip from the start of data[] (after most-recent-first ordering). Use with limit for pagination. Defaults to 0. Default: 0. |
| page | query | integer | One-based page number for callers that prefer page-based pagination. When supplied, offset is derived as (page - 1) * limit. |
| seasonality | query | string | Optional seasonal adjustment selector. Supported public values are sa and nsa; check supported_options.seasonality in the response/catalogue for values available on this endpoint. |
| frequency | query | string | Optional returned change basis. Supported public values are level, yoy, qoq, and mom; check supported_options.frequency for values available on this endpoint. |
| annualization | query | string | Optional annualization selector. Supported public values are not_annualized and saar; check supported_options.annualization for values available on this endpoint. |
| period_aggregation | query | string | Optional native-period selector: monthly, quarterly, annual, quarterly_average, annual_average, or year_to_date. Selects publisher observations without resampling or changing totals into averages; check supported_options.period_aggregation for values available on this endpoint. |
| revisions | query | string | Optional revision view. Supported public values are latest, first, final, and all; unsupported views return unsupported_series_option with supported values. Default: latest. |
| basis | query | string | Optional real/nominal selector. Supported public values are real and nominal; only endpoints with known basis metadata accept it. |
| base | query | string | Optional index or price base, such as 2024. Values vary by endpoint; supported_options.base lists them. Each base is a separate official series and bases are never joined. |
| date_basis | query | string | Observation-date convention: effective_date or meeting_date. Only endpoints declaring supported_options.date_basis accept it; each convention reads its own stored series without re-dating observations. |
| official_only | query | boolean | When true, return only official-source rows and remove explicit fallback observations. Prohibited private aggregator rows are always removed regardless of this setting. Default: true. |
| fields | query | string | Row field set. Omitted or full returns every documented row field. compact returns only date, val, previous_value, change_from_previous, announcement_datetime, announcement_datetime_local and publication_time_status per row, with the revision ledger folded into revisions_summary (count, first, latest, revised). The envelope, pagination and dataset_version are unchanged. Chart omits the revision ledger and legacy latency fields. |
| as_of | query | string | |
| availability | query | string | Allowed: public, captured. Default: public. |
| dataset_version | query | string | |
| value_mode | query | string | Allowed: normalized, source. Default: normalized. |
| api_key | query | string | Deprecated: legacy query-string API key. Still accepted so existing integrations keep working, but new integrations must send the key in the X-API-Key header (or Authorization: Bearer). A key is required for non-USD, paid-only, or full-history requests. Responses to requests authenticated this way carry a Deprecation header. |
| 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 |
|---|---|---|
| source_attribution | string | |
| source_license | string | |
| source_license_url | string | |
| source_terms_url | string | |
| source_changes | string | |
| source_transformation | string | |
| source_modification_notice | string | |
| source_access_date | string | |
| source_derivative_offer_url | string | |
| license | string | |
| license_url | string | |
| terms | string | |
| currency | string | |
| indicator | string | |
| name | string | |
| unit | string | Unit of data[].val in this response, from the series catalogue: the normalized unit by default, the percent unit of a derived frequency view (%YoY, %QoQ, %MoM), or value_metadata.source_unit when value_mode=source. Omitted when the catalogue declares no unit. |
| value_name | string | |
| source | string | |
| source_url | string | |
| source_series_id | string | |
| source_series_name | string | |
| source_local_name | string | |
| seasonal_adjustment | string | |
| price_basis | string | |
| is_proxy | boolean | |
| proxy_note | string | |
| provenance | object | Publisher and source lineage for the served series. |
| provenance.publisher | string | |
| provenance.publisher_url | string | |
| provenance.source_series_id | string | |
| provenance.source_series_name | string | |
| provenance.source_local_name | string | |
| provenance.seasonal_adjustment | string | |
| provenance.price_basis | string | |
| provenance.storage | string | Data provider label for the served series. Always FXMacroData. |
| provenance.served_by | string | FXMacroData endpoint that serves this series. |
GET /v1/export/{currency} Bulk history export for one currency
No API key required.
Streams the stored announcement history of many indicators for one currency in a single response, as NDJSON (default) or CSV.
Pass indicators as a comma-separated list, or leave it out for every indicator in the currency's catalogue. Each response carries up to limit indicators (default 10, maximum 25) in alphabetical order. When more remain, the X-Next-Cursor response header and the NDJSON summary line give the cursor for the next request.
Without dates the export covers the last five years. Values are the latest stored figure for each reference period, in the catalogue unit. Revision history stays on /v1/announcements/{currency}/{indicator}.
NDJSON: the first line is a header, each observation is a row, and the last line is a summary with status (complete or partial), row_counts and failed_indicators.
CSV: one header row, then observations. If any indicator could not be read, the final line starts with # and names it; the X-Export-Indicators header lists what the response was asked to hold.
announcement_datetime is the publisher's release time in UTC where held; publication_time_status says how it is known.
Authentication: requires an API key on a paid plan, for every currency including USD. A key limited to certain currencies can only export those.
Parameters
| Name | In | Type | Details |
|---|---|---|---|
| currencyRequired | path | string | |
| indicators | query | string | Comma-separated indicator slugs. Omit for all indicators. |
| start_date | query | string | First reference date, YYYY-MM-DD. Defaults to five years before end_date. |
| end_date | query | string | Last reference date, YYYY-MM-DD. Defaults to today. |
| format | query | string | Response format: ndjson or csv. Allowed: ndjson, csv. Default: ndjson. |
| limit | query | integer | Maximum indicators in this response (1 to 25). Default: 10. |
| cursor | query | string | next_cursor from the previous response. |
| api_key | query | string | Deprecated: legacy query-string API key. Still accepted so existing integrations keep working, but new integrations must send the key in the X-API-Key header (or Authorization: Bearer). A key is required for non-USD, paid-only, or full-history requests. Responses to requests authenticated this way carry a Deprecation header. |
GET /v1/event-history/{currency}/{indicator} Past releases with forecast, surprise and FX reaction
No API key required.
Returns each past release of one indicator with the actual value, the previous value, the forecast held for that release, the surprise and the move in the currency's standard pair after the release.
actual is the first published value where an earlier vintage is held (actual_basis: first_published), otherwise the latest stored value (latest_stored). previous is the prior period's value.
official_forecast is a forecast from an official publisher stored against that release. fxmacrodata_forecast is FXMacroData's own model forecast and is always labelled as such. surprise is actual minus official_forecast.value, and is null when no official forecast is held; it is never calculated from the model forecast.
fx_reaction is measured from the publisher's actual release time, over 1, 5 and 20 daily reference rates after the release day, in USD/{currency} (EUR/USD for USD). When the actual release time was not captured, fx_reaction is null and reaction_status is actual_release_time_not_captured. A scheduled time is never used.
Without dates the response covers the last three years. Results are newest first, up to limit (default 24, maximum 100).
Authentication: requires an API key, for every currency.
Parameters
| Name | In | Type | Details |
|---|---|---|---|
| currencyRequired | path | string | |
| indicatorRequired | path | string | Indicator slug |
| start_date | query | string | First reference date, YYYY-MM-DD. Defaults to three years before end_date. |
| end_date | query | string | Last reference date, YYYY-MM-DD. Defaults to today. |
| limit | query | integer | Maximum releases returned, newest first (1 to 100). Default: 24. |
| pairs | query | string | Optional comma-separated currency pairs (at most 6), for example USD/CLP,USD/MXN. Each release then carries fx_reactions keyed by pair, measured the same way as fx_reaction. Only pairs with stored daily rates are accepted (422 otherwise). |
| summary | query | boolean | When true, adds a summary per pair over the returned releases: measured count, median change, rises and falls per window, and a sentence in the requested lang (en, es or pt). Default: false. |
| api_key | query | string | Deprecated: legacy query-string API key. Still accepted so existing integrations keep working, but new integrations must send the key in the X-API-Key header (or Authorization: Bearer). A key is required for non-USD, paid-only, or full-history requests. Responses to requests authenticated this way carry a Deprecation header. |
| 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 |
|---|---|---|
| currency | string | |
| indicator | string | |
| start_date | string | |
| end_date | string | |
| pair | string | |
| count | integer | |
| truncated | boolean | |
| forecast_status | string | |
| data[] | object[] | |
| data[].reference_period | string | |
| data[].actual | number | |
| data[].actual_basis | string | |
| data[].latest_value | number | |
| data[].previous | number | |
| data[].unit | string | |
| data[].actual_release_time | string | |
| data[].publication_time_status | string | |
| data[].official_forecast | object | |
| data[].official_forecast.value | number | |
| data[].official_forecast.source | string | |
| data[].official_forecast.source_label | string | |
| data[].official_forecast.is_fxmacrodata_model | boolean | |
| data[].official_forecast.target_period | string | |
| data[].official_forecast.unit | string | |
| data[].official_forecast.announcement_mapping_verified | boolean | |
| data[].fxmacrodata_forecast | object | |
| data[].fxmacrodata_forecast.value | number | |
| data[].fxmacrodata_forecast.source | string | |
| data[].fxmacrodata_forecast.source_label | string | |
| data[].fxmacrodata_forecast.is_fxmacrodata_model | boolean | |
| data[].fxmacrodata_forecast.target_period | string | |
| data[].fxmacrodata_forecast.unit | string | |
| data[].fxmacrodata_forecast.announcement_mapping_verified | boolean | |
| data[].surprise | number | |
| data[].fx_reaction | object | |
| data[].fx_reaction.pair | string |
Works well with
Endpoints people use alongside Release history
The whole API
All 24 endpoint guides
Rates and markets