Skip to content

Inflation API

CPI Inflation API for FX Research

Use the FXMacroData inflation API when you need CPI release history, values, units, publication timestamps, and currency-specific context for FX dashboards or macro event studies. USD inflation answers without an API key.

Last updated

Currencies served: 62

FXMacroData serves these 62 currencies in the production API. Each row names the central bank behind the policy series and the statistics office that publishes the consumer price index. Every announcement response repeats the publisher in source and links the release itself in source_url.

Code Currency Area Central bank CPI publisher
USD US Dollar United States Federal Reserve BLS
EUR Euro Eurozone European Central Bank ECB / Eurostat
GBP British Pound United Kingdom Bank of England ONS
JPY Japanese Yen Japan Bank of Japan Statistics Bureau
AUD Australian Dollar Australia Reserve Bank of Australia ABS
CAD Canadian Dollar Canada Bank of Canada Statistics Canada
CHF Swiss Franc Switzerland Swiss National Bank Swiss Federal Statistical Office
NZD New Zealand Dollar New Zealand Reserve Bank of New Zealand Stats NZ
AED UAE Dirham United Arab Emirates Central Bank of the UAE UAE.Stat / Federal Competitiveness and Statistics Centre
ALL Lek Albania Bank of Albania Bank of Albania
AMD Armenian Dram Armenia Central Bank of Armenia Central Bank of Armenia
ARS Argentine Peso Argentina Banco Central de la Republica Argentina Instituto Nacional de Estadística y Censos (INDEC)
BDT Taka Bangladesh Bangladesh Bank Bangladesh Bank
BHD Bahraini Dinar Bahrain Central Bank of Bahrain Bahrain Open Data
BOB Bolivian Boliviano Bolivia Banco Central de Bolivia INE
BRL Brazilian Real Brazil Banco Central do Brasil IBGE
CLP Chilean Peso Chile Banco Central de Chile
CNH Offshore Chinese Yuan China (Offshore) People's Bank of China National Bureau of Statistics of China
CNY Chinese Yuan China People's Bank of China National Bureau of Statistics of China
COP Colombian Peso Colombia Banco de la Republica DANE, published by Banco de la Republica
CZK Czech Koruna Czechia Czech National Bank CZSO
DKK Danish Krone Denmark Danmarks Nationalbank Statistics Denmark
DZD Algerian Dinar Algeria Bank of Algeria
EGP Egyptian Pound Egypt Central Bank of Egypt
GEL Georgian Lari Georgia National Bank of Georgia National Statistics Office of Georgia (Geostat)
GHS Ghana Cedi Ghana Bank of Ghana Ghana Statistical Service
HKD Hong Kong Dollar Hong Kong Hong Kong Monetary Authority Census and Statistics Department
HUF Hungarian Forint Hungary National Bank of Hungary Hungarian Central Statistical Office
IDR Indonesian Rupiah Indonesia Bank Indonesia Statistics Indonesia
ILS Israeli New Shekel Israel Bank of Israel Central Bureau of Statistics
INR Indian Rupee India Reserve Bank of India National Statistics Office, MoSPI
ISK Icelandic Krona Iceland Central Bank of Iceland Statistics Iceland
JOD Jordanian Dinar Jordan Central Bank of Jordan Department of Statistics, Jordan
KES Kenyan Shilling Kenya Central Bank of Kenya Central Bank of Kenya (Kenya National Bureau of Statistics data)
KRW South Korean Won South Korea Bank of Korea Statistics Korea
KZT Kazakhstani Tenge Kazakhstan National Bank of Kazakhstan Bureau of National Statistics
MAD Moroccan Dirham Morocco Bank Al-Maghrib Bank Al-Maghrib
MDL Moldovan Leu Moldova National Bank of Moldova National Bureau of Statistics of the Republic of Moldova
MXN Mexican Peso Mexico Banco de México INEGI
MYR Malaysian Ringgit Malaysia Bank Negara Malaysia DOSM
NGN Nigerian Naira Nigeria Central Bank of Nigeria National Bureau of Statistics
NOK Norwegian Krone Norway Norges Bank Statistics Norway
PEN Peruvian Sol Peru Banco Central de Reserva del Perú INEI
PHP Philippine Peso Philippines Bangko Sentral ng Pilipinas Philippine Statistics Authority
PKR Pakistani Rupee Pakistan State Bank of Pakistan Pakistan Bureau of Statistics
PLN Polish Zloty Poland Narodowy Bank Polski GUS
QAR Qatari Riyal Qatar Qatar Central Bank National Planning Council (Qatar), as published by Qatar Central Bank
RON Romanian Leu Romania National Bank of Romania National Institute of Statistics (INS)
RSD Serbian Dinar Serbia National Bank of Serbia Statistical Office of the Republic of Serbia (SORS/RZS)
SAR Saudi Riyal Saudi Arabia Saudi Central Bank General Authority for Statistics
SEK Swedish Krona Sweden Riksbank Statistics Sweden
SGD Singapore Dollar Singapore Monetary Authority of Singapore DOS
THB Thai Baht Thailand Bank of Thailand Trade Policy and Strategy Office, Ministry of Commerce
TRY Turkish Lira Turkey Central Bank of the Republic of Turkey Turkish Statistical Institute (TUIK)
TTD Trinidad and Tobago Dollar Trinidad and Tobago Central Bank of Trinidad and Tobago Central Bank of Trinidad and Tobago
TWD New Taiwan Dollar Taiwan Central Bank of the Republic of China DGBAS
TZS Tanzanian Shilling Tanzania Bank of Tanzania National Bureau of Statistics (Tanzania)
UAH Hryvnia Ukraine National Bank of Ukraine (NBU) National Bank of Ukraine
UYU Uruguayan Peso Uruguay Central Bank of Uruguay INE Uruguay
VND Vietnamese Dong Vietnam State Bank of Vietnam Vietnam National Statistics Office
ZAR South African Rand South Africa South African Reserve Bank Statistics South Africa
ZMW Zambian Kwacha Zambia Bank of Zambia Zambia Statistics Agency

CNH is served as a read alias of CNY and shares China's publishers. An FX pair is served where both legs appear in this list; a pair with an unsupported leg returns 404.

Measured coverage by release family

Counts below are measured from the stored history, not from the catalogue: a market appears against a family only where that family has observations on record. "Markets" counts the production API currencies in the table above.

Release family Markets Earliest observation Series in this family
Inflation 36 of 62 1914-01-31 (112.8 years) CPI, Core CPI, CPI MoM, PPI, PPI MoM, PCE

Inflation covers 36 of the 62 production currencies (USD, EUR, GBP, JPY, AUD, CAD, CHF, NZD, ALL, ARS, BDT, BRL, CLP, CNH, CNY, COP, CZK, DKK, HUF, ILS, INR, KRW, MXN, NOK, PHP, PKR, PLN, SAR, SEK, THB, TRY, UAH, UYU, VND, ZAR, ZMW), with history from 1914-01-31. CPI, core inflation, trimmed means, PPI, PCE, and inflation-expectation releases where published.

Announcements response fields

The response envelope carries the series identity and its provenance; every element of the data array carries the released value and the timing metadata around it.

GET https://api.fxmacrodata.com/v1/announcements/{currency}/{indicator}

Response envelope

source_attribution, source_license, source_license_url, source_terms_url, source_changes, source_transformation, source_modification_notice, source_access_date, source_derivative_offer_url, license, license_url, terms, currency, indicator, name, unit, value_name, source, source_url, source_series_id, source_series_name, source_local_name, seasonal_adjustment, price_basis, is_proxy, proxy_note, provenance, policy_role, policy_structure, comparison_compatible, policy_family, has_official_forecast, requested_start_date, requested_end_date, requested_window_has_data, page_includes_latest_available, start_date, end_date, earliest_available_date, latest_available_date, cb_target, remap, filters, selected_series_id, selected_series, supported_options, data_quality, replay, dataset_version, value_mode, value_metadata, pagination, freemium_window, freemium_delay, no_data, data

Fields on every row of data[]

source_attribution, source_license, source_license_url, source_terms_url, source_changes, source_transformation, source_modification_notice, source_access_date, source_derivative_offer_url, license, license_url, terms, source_dataset_metadata_sha256, source_variant_metadata_sha256, source, source_revision_code, source_revision_status, source_vintage, source_vintage_kind, source_series_name, source_vintage_date, source_data_updated_at, source_modality, source_validity_start, source_validity_end, source_resolution_id, source_resolution_date, source_interval_overlaps_next_certificate, source_interval_overlaps_previous_certificate, source_interval_gap_days, source_measurement_basis, source_reference_period_start, source_classification_note, source_quality_note, source_small_sample_warning, source_sample_warning, source_working_age_nonresponse_excluded, source_definition_footnote, source_footnotes, source_observation_flag, source_observation_status, source_period_label, source_scheduled_revision_date, source_last_updated_date, source_vintage_status, source_price_basis, source_valuation, observation_frequency, source_category, source_category_ar, source_category_code, source_category_code_provenance, source_cell, source_frequency, source_history_vintage, source_index_base, source_measure, source_series_id_kind, source_sha256, source_title, source_title_en, source_unit, source_value_format, source_workbook_modified_at, source_workbook_sha256, source_geography, source_geography_code, source_population, source_native_value, source_native_unit, source_original_unit, source_column_format, source_value_representation, source_document_publication_date, source_reuse_notice, source_page, source_relative_importance, source_native_record, source_validity_status, source_correction, announcement_id, date, val, source_url, source_url_scope, previous_value, previous_date, previous_announcement_datetime, change, change_from_previous, pct_change_from_previous, original_val, original_unit, unit, value_unit, val_mom, observation_id, announcement_datetime, announcement_datetime_local, release_time_assumed, release_time_upper_bound, publication_time_status, publication_time_precision, publication_time_basis, vintage_status, is_first_release, observed_at_ns, observed_at_ns_string, collected_at_ns_string, publication_at_ns, publication_at_ns_string, announcement_source_url, source_artifact_sha256, capture_time_basis, geography, period_basis, methodology_id, source_period_label_conflict, source_methodology_status, selected_vintage_known_at_ns, replay_vintage_verified, official_planned_release_datetime, official_planned_release_datetime_local, official_actual_release_datetime, official_actual_release_datetime_local, collected_at_ns, collected_at_iso, ingestion_latency_ms, ingestion_latency_reference, release_timing, pct_change, pct_change_yoy, pct_change_qoq, pct_change_mom, pct_change_12m, revisions, revisions_summary, outside_requested_window, requested_start_date, requested_end_date, returned_reason, staleness_days, canonical_indicator, raw_indicator, remap_applied, remap_rule_id, remap_segment_id

release_time_assumed

Present and true when announcement_datetime was derived from the publication lag measured on this series' confirmed releases, because no official release calendar reaches the period. Omitted on rows whose publication time was captured from the release.

Field names are read from the published OpenAPI schema at api.fxmacrodata.com/openapi.json, so this list stays in step with the API contract. Optional fields are omitted from a row rather than returned as null.

What the release timestamps mean

  • announcement_datetime is Unix epoch seconds in UTC. Every row also carries announcement_datetime_local in the publisher's own timezone, and calendar rows add announcement_datetime_utc as an ISO-8601 string.
  • Where an official release calendar covers the period, the timestamp is the publication time captured from that release.
  • Where no official calendar reaches the period, which is common for history going back decades, the timestamp is derived from the median publication lag measured on that same series' confirmed releases and snapped to a valid announcement day. Those rows carry release_time_assumed: true and are counted in assumed_release_time_count.
  • data_quality.point_in_time_safe describes the window you requested, not the product: a single derived row anywhere in that window clears it for the whole response, so long histories commonly return false. Gate a point-in-time workflow on the per-row release_time_assumed flag and on assumed_release_time_count against row_count.
point_in_time_safe

Whether the returned values have verified availability and vintage evidence; estimated release times do not qualify.

has_assumed_release_times

True when at least one row in the quality scope carries a publication timestamp derived from the publication lag measured on that series' own confirmed releases, because no official release calendar reaches the period.

assumed_release_time_count

Number of rows in the quality scope whose publication timestamp was derived rather than captured. Compare against row_count to size the derived portion of the requested window.

release_time_assumed

Present and true when announcement_datetime was derived from the publication lag measured on this series' confirmed releases, because no official release calendar reaches the period. Omitted on rows whose publication time was captured from the release.

Where consensus and forecast values come from

  • Forecasts live on /v1/predictions, not on the announcements endpoint, so an expected value is never mixed into a released one.
  • prediction_class names how the number was produced: compiled_consensus, forecaster_survey, expectations_survey, market_implied, model_nowcast, central_bank_projection, institutional_projection, or fxmacrodata. Two of those eight are a consensus of professional forecasters and the other six are not, so filtering on prediction_class is how you ask for the one you want.
  • prediction_source names the publication behind the number, for example philly_fed_spf, cleveland_fed_nowcast, fomc_sep, atlanta_fed_gdpnow, ny_fed_sme, ecb_spf, imf_weo or rbnz_mps, and prediction_source_label carries its display name.
  • Availability is set by the publisher, not by your plan. Many releases have no compiled consensus from any official source, and where none exists no subscription adds one.
  • A filtered request that matches nothing still returns HTTP 200. The availability block lists which classes have a publishing source for that currency and indicator at all, and why the class you asked for came back empty.

The full contract, including the availability reasons and the provenance block, is on the forecasts and consensus reference.

Pricing and access

Plan Price What it covers
Free, no API key $0 USD endpoints answer without an API key, up to 100 requests per day, returning the most recent 90 days on a 15-minute release delay. Health checks, catalogue discovery, release calendars, market-session status and risk sentiment need no key at all.
Individual $50 / month All 62 production currencies and full history, with a 14-day trial. Licensed for your own work.
Business $250 / month The same data, licensed to a company or team, for up to 10 people with member API keys, company invoices and a 14-day trial.
Enterprise Custom agreement For banks, funds and institutions that need negotiated terms, procurement or security review, service levels, or more than ten users. Arranged directly with our team.
Commercial Redistribution add-on $10 / audience block / month Added to a paid plan when other people see the data through you. One block covers up to 100 measured users; one block minimum.

Paid plans differ by permitted use, not by which currencies or indicators they unlock. The plans are Individual, Business and Enterprise. There is no Startup plan.

See plan details and start a trial

Use Cases

  • Compare inflation trends across currencies.
  • Build CPI release event studies for FX pairs.
  • Link inflation data to policy-rate, GDP, labor, and FX spot context.

Why FXMacroData

  • source_series_id names the publisher's own series identifier, for example BLS:CUUR0000SA0 for US headline CPI.
  • seasonal_adjustment and unit are stated on the response, so a series is never compared across incompatible bases by accident.
  • cb_target carries the central bank's inflation objective and the date it took effect, where the bank publishes one.

Frequently Asked Questions

Which inflation series are available?

Headline CPI, core CPI, month-on-month CPI, PPI, PCE and, where a market publishes them, trimmed-mean measures and inflation expectations. The coverage table on this page lists how many production currencies carry each.

Where does the CPI data come from?

The national statistics office that publishes it, named on every row in source with the release linked in source_url. The market table on this page lists the CPI publisher for each currency.

Is the CPI series year-on-year or month-on-month?

The response states it. unit and selected_series describe the series you received, and supported_options lists the frequencies, seasonality and period aggregations you can request instead.

When was a CPI print published?

announcement_datetime is Unix epoch seconds in UTC, with announcement_datetime_local in the publisher's timezone. For US CPI this is the 08:30 America/New_York release time.

Can I use inflation history in a backtest?

Yes, if you gate on the per-row release_time_assumed flag. Long CPI histories reach back before any official release calendar, so those older rows carry derived publication times and are counted in assumed_release_time_count.

Are CPI consensus forecasts included?

Where a publisher produces them, on /v1/predictions. Filter with prediction_class=compiled_consensus. Many releases have no compiled consensus from any official source, and no subscription adds one.

What does inflation data cost?

USD inflation is free without an API key within the most recent 90 days at up to 100 requests per day, 15 minutes after each release is published. Individual is $50 per month for solo engineers and one-person projects, including commercial development, with a 14-day trial, Business is $250 per month for incorporated businesses with two or more people, and Enterprise is arranged by custom agreement.

Last updated

Share page X LinkedIn Email