# Global GDP and CPI inflation by country

Compare each country's GDP and inflation from the World Bank and the IMF, side by side. Annual figures keep both publishers when they differ, including current-dollar GDP, GDP per person, real growth, and consumer-price inflation. Use the gap columns where those rates differ by more than one point.

Global GDP and CPI inflation by country is an open, machine-readable dataset published on Mostly Right as immutable Parquet versions, with a documented column schema, a JSON query API and a direct download. Its first rows are free to read and it is open to AI agents.

## Facts

- Slug: `global-gdp-and-cpi-inflation-by-country`
- Canonical page: https://mostlyright.md/datasets/global-gdp-and-cpi-inflation-by-country
- Publisher: mostlyrightmd (https://mostlyright.md/publishers/mostlyrightmd)
- Published: 2026-11-25T18:41:09.270Z
- Tables: 2
- Formats: Apache Parquet (download), JSON (query and sample)
- Cost: the first 500 rows of each table are free to everyone; querying and downloading need a free account and count against a monthly free allowance unless the workspace is subscribed
- Metadata API: `GET https://mostlyright.md/api/v2/public/datasets/global-gdp-and-cpi-inflation-by-country`
- Topics: gdp, inflation, cpi, world bank, imf, national accounts

## Table directory

Tables follow the publisher's curated order. Display labels do not change table identifiers.

Start here: country_year — table id: 7b4f1781-addb-459b-8c92-8738ce9d9a81

### Country year

- country_year — table id: 7b4f1781-addb-459b-8c92-8738ce9d9a81; published name: country_year; https://mostlyright.md/datasets/global-gdp-and-cpi-inflation-by-country/tables?table=country-year — One row per economy and year. World Bank and IMF figures stay side by side.
### Country month

- country_month — table id: 497ab66e-e09e-4ab4-9924-ac190d1136c6; published name: country_month; https://mostlyright.md/datasets/global-gdp-and-cpi-inflation-by-country/tables?table=country-month — IMF headline consumer price index, one row per economy and month.

## How to use it

1. Read a table's schema — no account needed.
2. Fetch its published sample rows — no account needed.
   The first 500 rows of every table, in stored order, are free to everyone, with or without an account. Without an account you get that sample and ranked row search on public tables (search_table). An empty search query pages through a table in stored order. There is no filter, sort or download without an account.
3. Log in at https://mostlyright.md/login, connect this dataset to a workspace on its page, and create an `mr_use_` key.
4. Query bounded JSON, or download the complete Parquet snapshot and read it locally.
   A free workspace may read 100,000 rows and run 1,000 queries a UTC month past the sample. The allowance is shared by everyone in the workspace, and a free workspace may have any number of members. Reads count against the workspace whose data or key they use. A subscribed workspace is never counted, for anyone working in it.

Agents can do all of this over MCP at `https://mostlyright.md/api/mcp` — searching, reading schemas and sampling rows work with no credential at all.

## Table: country_year

- Table id: `7b4f1781-addb-459b-8c92-8738ce9d9a81`
- Slug: `country-year`
- Immutable version: `580378fa-168f-5e39-a8fb-e7c80708b053`
- Section: Country year
- Description: One row per economy and year. World Bank and IMF figures stay side by side.
- Schema: `GET https://mostlyright.md/api/v2/public/tables/7b4f1781-addb-459b-8c92-8738ce9d9a81/schema`
- Sample rows, no key: `GET https://mostlyright.md/api/v2/public/tables/7b4f1781-addb-459b-8c92-8738ce9d9a81/preview`
- Bounded JSON query: `POST https://mostlyright.md/api/v2/public/tables/7b4f1781-addb-459b-8c92-8738ce9d9a81/query` with `x-api-key: mr_use_…`
- Full Parquet snapshot: `GET https://mostlyright.md/api/v2/public/tables/7b4f1781-addb-459b-8c92-8738ce9d9a81/current` with `x-api-key: mr_use_…` (application/vnd.apache.parquet)

### Columns (38)

| Column | Type | Description |
| --- | --- | --- |
| `row_id` | string | Economy code and calendar year joined with a hyphen, for example USA-2024. |
| `economy_code` | string | Publisher country code. World Bank and IMF rows join only when this code is identical. |
| `iso3` | string | ISO 3166-1 alpha-3 when the economy code is one. Empty for XKX, CHI, KOS, UVK, WBG, IMY, MFX, ATI and ATL. |
| `country_name` | string | World Bank economy name when that list has one, otherwise the IMF DataMapper label. |
| `year` | integer | Calendar year of the observation. IMF years at or after the WEO projection year are forecasts. |
| `publisher_set` | string | Which publisher supplied a value on this row: both, world_bank or imf. |
| `wb_country_name` | string | Economy name on the World Bank country list. Empty when the code is IMF only. |
| `wb_gdp_current_usd` | decimal | World Bank WDI NY.GDP.MKTP.CD, GDP in current US dollars. |
| `wb_gdp_constant_2015_usd` | decimal | World Bank WDI NY.GDP.MKTP.KD, GDP in constant 2015 US dollars. |
| `wb_gdp_per_capita_current_usd` | decimal | World Bank WDI NY.GDP.PCAP.CD, GDP per capita in current US dollars. |
| `wb_gdp_per_capita_constant_2015_usd` | decimal | World Bank WDI NY.GDP.PCAP.KD, GDP per capita in constant 2015 US dollars. |
| `wb_gdp_growth_pct` | decimal | World Bank WDI NY.GDP.MKTP.KD.ZG, real GDP growth in percent. |
| `wb_cpi_index` | decimal | World Bank WDI FP.CPI.TOTL, consumer price index with 2010 equal to 100. The series metadata names IMF IFS as its upstream. |
| `wb_inflation_pct` | decimal | World Bank WDI FP.CPI.TOTL.ZG, annual consumer-price inflation in percent. |
| `wb_wdi_lastupdated` | date | lastupdated stamp on the World Bank WDI response for NY.GDP.MKTP.CD. It dates the database extract, not one row. |
| `imf_country_name` | string | IMF DataMapper label for this economy code. Empty when the code is World Bank only or the label is null. |
| `imf_gdp_current_usd` | decimal | IMF WEO NGDPD as published in the SDMX file. The observation is already in US dollars. |
| `imf_gdp_current_usd_unit` | string | UNIT code on the IMF NGDPD row. Observed value is USD. |
| `imf_gdp_current_usd_scale` | string | SCALE code on the IMF NGDPD row, stored as published and not applied as a multiplier. |
| `imf_gdp_per_capita_current_usd` | decimal | IMF WEO NGDPDPC, GDP per capita in current US dollars. |
| `imf_gdp_growth_pct` | decimal | IMF WEO NGDP_RPCH, real GDP growth in percent. |
| `imf_inflation_pct` | decimal | IMF WEO PCPIPCH, average consumer-price inflation in percent. |
| `imf_cpi_index` | decimal | IMF WEO PCPI, the consumer price index. The index base is not on the row. |
| `imf_gdp_constant_domestic` | decimal | IMF WEO NGDP_R, GDP at constant prices in domestic currency. It is not constant US dollars. |
| `imf_gdp_constant_domestic_unit` | string | UNIT code on the IMF NGDP_R row. Observed value for the United States is XDC, domestic currency. |
| `imf_structure_id` | string | SDMX structure id on the IMF WEO extract, for example IMF.RES:WEO(9.0.0). |
| `imf_gdp_country_update_date` | string | COUNTRY_UPDATE_DATE on the IMF NGDPD row, kept in the publisher's M/D/YYYY text. |
| `imf_inflation_country_update_date` | string | COUNTRY_UPDATE_DATE on the IMF PCPIPCH row, kept in the publisher's M/D/YYYY text. |
| `imf_cpi_country_update_date` | string | COUNTRY_UPDATE_DATE on the IMF PCPI row, kept in the publisher's M/D/YYYY text. |
| `imf_weo_projection_year` | integer | DataMapper projection-year for NGDPD. A year at or after this value is an IMF forecast when an IMF value is present. |
| `imf_weo_last_modified` | string | DataMapper last-modified text for NGDPD, the October 2026 WEO vintage stamp. |
| `imf_weo_year_is_projection` | boolean | True when this row has an IMF value and the year is at least the DataMapper projection year. World Bank-only rows are empty. |
| `gdp_current_usd_gap` | decimal | World Bank current-dollar GDP minus IMF NGDPD, in US dollars. Empty when either value is missing. The two series are not averaged. |
| `gdp_per_capita_current_usd_gap` | decimal | World Bank current-dollar GDP per capita minus IMF NGDPDPC, in US dollars. Empty when either value is missing. |
| `gdp_growth_gap_pp` | decimal | World Bank real GDP growth minus IMF NGDP_RPCH, in percentage points. Empty when either rate is missing. |
| `inflation_gap_pp` | decimal | World Bank annual inflation minus IMF PCPIPCH, in percentage points. Empty when either rate is missing. Indexes are not compared. |
| `gdp_growth_disagrees` | boolean | True when the absolute real-growth gap is wider than 1 percentage point. Empty when either rate is missing. |
| `inflation_disagrees` | boolean | True when the absolute annual-inflation gap is wider than 1 percentage point. Empty when either rate is missing. |

## Table: country_month

- Table id: `497ab66e-e09e-4ab4-9924-ac190d1136c6`
- Slug: `country-month`
- Immutable version: `b539e2c1-54e4-5b64-b5fb-92b17bf98979`
- Section: Country month
- Description: IMF headline consumer price index, one row per economy and month.
- Schema: `GET https://mostlyright.md/api/v2/public/tables/497ab66e-e09e-4ab4-9924-ac190d1136c6/schema`
- Sample rows, no key: `GET https://mostlyright.md/api/v2/public/tables/497ab66e-e09e-4ab4-9924-ac190d1136c6/preview`
- Bounded JSON query: `POST https://mostlyright.md/api/v2/public/tables/497ab66e-e09e-4ab4-9924-ac190d1136c6/query` with `x-api-key: mr_use_…`
- Full Parquet snapshot: `GET https://mostlyright.md/api/v2/public/tables/497ab66e-e09e-4ab4-9924-ac190d1136c6/current` with `x-api-key: mr_use_…` (application/vnd.apache.parquet)

### Columns (17)

| Column | Type | Description |
| --- | --- | --- |
| `row_id` | string | Economy code and IMF period joined with a hyphen, for example USA-2024-M01. |
| `economy_code` | string | IMF CPI country code. It is not crosswalked to a different World Bank code. |
| `iso3` | string | ISO 3166-1 alpha-3 when the economy code is one. Empty for XKX, CHI, KOS, UVK, WBG, IMY, MFX, ATI and ATL. |
| `country_name` | string | World Bank economy name when that list has one, otherwise the IMF DataMapper label. |
| `month_start` | date | First day of the month named by the IMF period, such as 2001-M01 becoming 2001-01-01. |
| `period_label` | string | IMF TIME_PERIOD as published, for example 2001-M01. |
| `cpi_index` | decimal | IMF CPI headline index, series CPI, all items _T, transformation IX, frequency M. The reference period differs by country. |
| `cpi_reference_period` | string | REFERENCE_PERIOD on the IMF index row. It is that series' own base, not a world base. |
| `cpi_common_reference_period` | string | COMMON_REFERENCE_PERIOD on the IMF index row. |
| `cpi_scale` | string | SCALE code on the IMF index row, stored as published. |
| `cpi_unit` | string | UNIT code on the IMF index row. The probed file left this blank. |
| `cpi_status` | string | STATUS on the IMF index row. Most probed rows were blank. |
| `inflation_yoy_pct` | decimal | IMF headline inflation, transformation YOY_PCH_PA_PT, the percent change from the same month a year earlier. |
| `inflation_yoy_status` | string | STATUS on the IMF year-over-year inflation row. |
| `imf_structure_id` | string | SDMX structure id on the IMF CPI extract, for example IMF.STA:CPI(5.0.0). |
| `wb_country_name` | string | World Bank name for the same code. Empty when the World Bank list has no such economy. |
| `imf_country_name` | string | IMF DataMapper label for this code. |

## Citing this dataset

Cite the dataset by name and canonical URL (https://mostlyright.md/datasets/global-gdp-and-cpi-inflation-by-country), the table, and the immutable `version_id` the rows came from. A query response carries `table.version_id` and `table.content_digest`; a download carries a strong ETag and a `Content-Digest` header.
