Cost of Living & Price Index API
CostAPI provides clean, developer-friendly access to global cost-of-living data from 5 authoritative government sources. Compare consumer prices, inflation rates, and purchasing power across 190+ countries. What you get: - **CPI time series** — Consumer Price Index for 190+ countries with COICOP category breakdowns (food, housing, transport, health, etc.) - **Purchasing Power Parity** — PPP…
Cost of Living & Price Index API endpoints
| Method | Endpoint | Description |
|---|---|---|
| CPI | ||
| GET |
list_countries_v1_cpi_countries_get /v1/cpi/countries |
List all countries that have Consumer Price Index data available. Use this to discover which countries are in the database, or to find a country's code for use in other… |
| GET |
list_categories_v1_cpi_categories_get /v1/cpi/categories |
List all available CPI category codes and their descriptions. Use this to discover which CPI sub-categories are available for filtering. Common categories: SA0 (All items), SAF… |
| GET |
get_country_history_v1_cpi_countries__country_code__history_get /v1/cpi/countries/{country_code}/history |
Retrieve historical CPI time series for a specific country. Use this to get monthly CPI observations over time for trend analysis or chart building. Provide a country code (e.g.,… |
| GET |
compare_countries_v1_cpi_compare_get /v1/cpi/compare |
Compare Consumer Price Index values across multiple countries side by side. Use this to compare inflation rates between countries. Pass 2-20 comma-separated country codes:… |
| GET |
get_country_v1_cpi_countries__country_code__get /v1/cpi/countries/{country_code} |
Retrieve detailed Consumer Price Index data for a single country. Use this to get the current CPI value, inflation rate, and category breakdown for a specific country. Provide a… |
| PPP | ||
| GET |
list_countries_v1_ppp_countries_get /v1/ppp/countries |
List all countries that have Purchasing Power Parity data available. Use this to discover which countries have PPP data, or to find PPP conversion factors for a specific year.… |
| GET |
compare_countries_v1_ppp_compare_get /v1/ppp/compare |
Compare Purchasing Power Parity across multiple countries side by side. Use this to compare PPP factors between countries. Pass 2-20 comma-separated country codes:… |
| GET |
get_country_v1_ppp_countries__country_code__get /v1/ppp/countries/{country_code} |
Retrieve Purchasing Power Parity data for a single country. Use this to get PPP conversion factors across all available years for a country. Provide a 2-3 letter uppercase… |
| Prices | ||
| GET |
list_metro_areas_v1_prices_us_metro_areas_get /v1/prices/us/metro-areas |
List all US metropolitan areas that have regional price data available. Use this to discover which US metro areas have price data. Returns area codes and names with overall… |
| GET |
get_item_v1_prices_us_items__item_code__get /v1/prices/us/items/{item_code} |
Retrieve price data for a specific consumer item across all US metro areas. Use this to compare the price of a single item (eggs, bread, gasoline, etc.) across US cities. Provide… |
| GET |
get_metro_area_v1_prices_us_metro_areas__area_code__get /v1/prices/us/metro-areas/{area_code} |
Retrieve detailed price data for a specific US metro area. Use this to get a full cost-of-living breakdown for a US metro area. Provide an area code (e.g., METRO35620 for New… |
| Intelligence | ||
| GET |
cheapest_cities_v1_cheapest_cities_get /v1/cheapest-cities |
Find the cheapest countries in a given region, ranked by CPI. Accepts region names ('EU', 'Europe', 'Nordic', 'G7', 'OECD', 'world') and optional category filters ('housing',… |
| GET |
cost_breakdown_v1_cost_breakdown_get /v1/cost-breakdown |
Get a detailed cost-of-living breakdown for a location, compared to a baseline. Shows CPI index values for every available category (food, housing, transport, health, etc.) with… |
| GET |
purchasing_power_v1_purchasing_power_get /v1/purchasing-power |
Calculate the purchasing power of a salary in a different country. Given a salary in one country, calculates the equivalent salary needed in the target country for the same… |
| GET |
compare_cost_of_living_v1_compare_cost_of_living_get /v1/compare-cost-of-living |
Compare cost of living between two countries or cities side by side. Accepts natural language inputs: country names ('Germany', 'Deutschland'), ISO codes ('DE', 'DEU', '276'), or… |
| Other endpoints | ||
| GET |
get_item_v1_prices_us_items__item_code__get /v1/prices/us/items/{item_code} |
Retrieve price data for a specific consumer item across all US metro areas. Use this to compare the price of a single item (eggs, bread, gasoline, etc.) across US cities. Provide… |
| GET |
list_metro_areas_v1_prices_us_metro_areas_get /v1/prices/us/metro-areas |
List all US metropolitan areas that have regional price data available. Use this to discover which US metro areas have price data. Returns area codes and names with overall… |
| GET |
get_metro_area_v1_prices_us_metro_areas__area_code__get /v1/prices/us/metro-areas/{area_code} |
Retrieve detailed price data for a specific US metro area. Use this to get a full cost-of-living breakdown for a US metro area. Provide an area code (e.g., METRO35620 for New… |
| GET |
compare_countries_v1_ppp_compare_get /v1/ppp/compare |
Compare Purchasing Power Parity across multiple countries side by side. Use this to compare PPP factors between countries. Pass 2-20 comma-separated country codes:… |
| GET |
get_country_v1_ppp_countries__country_code__get /v1/ppp/countries/{country_code} |
Retrieve Purchasing Power Parity data for a single country. Use this to get PPP conversion factors across all available years for a country. Provide a 2-3 letter uppercase… |
| GET |
list_countries_v1_ppp_countries_get /v1/ppp/countries |
List all countries that have Purchasing Power Parity data available. Use this to discover which countries have PPP data, or to find PPP conversion factors for a specific year.… |
| GET |
cheapest_cities_v1_cheapest_cities_get /v1/cheapest-cities |
Find the cheapest countries in a given region, ranked by CPI. Accepts region names ('EU', 'Europe', 'Nordic', 'G7', 'OECD', 'world') and optional category filters ('housing',… |
| GET |
get_country_history_v1_cpi_countries__country_code__history_get /v1/cpi/countries/{country_code}/history |
Retrieve historical CPI time series for a specific country. Use this to get monthly CPI observations over time for trend analysis or chart building. Provide a country code (e.g.,… |
| GET |
cost_breakdown_v1_cost_breakdown_get /v1/cost-breakdown |
Get a detailed cost-of-living breakdown for a location, compared to a baseline. Shows CPI index values for every available category (food, housing, transport, health, etc.) with… |
| GET |
get_country_v1_cpi_countries__country_code__get /v1/cpi/countries/{country_code} |
Retrieve detailed Consumer Price Index data for a single country. Use this to get the current CPI value, inflation rate, and category breakdown for a specific country. Provide a… |
| GET |
list_countries_v1_cpi_countries_get /v1/cpi/countries |
List all countries that have Consumer Price Index data available. Use this to discover which countries are in the database, or to find a country's code for use in other… |
| GET |
compare_countries_v1_cpi_compare_get /v1/cpi/compare |
Compare Consumer Price Index values across multiple countries side by side. Use this to compare inflation rates between countries. Pass 2-20 comma-separated country codes:… |
| GET |
purchasing_power_v1_purchasing_power_get /v1/purchasing-power |
Calculate the purchasing power of a salary in a different country. Given a salary in one country, calculates the equivalent salary needed in the target country for the same… |
| GET |
list_categories_v1_cpi_categories_get /v1/cpi/categories |
List all available CPI category codes and their descriptions. Use this to discover which CPI sub-categories are available for filtering. Common categories: SA0 (All items), SAF… |
| GET |
compare_cost_of_living_v1_compare_cost_of_living_get /v1/compare-cost-of-living |
Compare cost of living between two countries or cities side by side. Accepts natural language inputs: country names ('Germany', 'Deutschland'), ISO codes ('DE', 'DEU', '276'), or… |
Cost of Living & Price Index API pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|
| PRO Recommended | $29 / month | 10 / second |
|
| ULTRA | $79 / month | 20 / second |
|
| MEGA | $149 / month | 30 / second |
|