The Numbeo Data API gives you programmatic access to current consumer prices, rent levels and cost of living indices for thousands of cities and countries worldwide. Responses are returned as machine-readable JSON, so you can integrate global pricing data directly into your own applications.
All endpoints require an api_key parameter. Replace YOUR_API_KEY below with your own key. For the complete list of endpoints and parameters, see the full API documentation.
Fetch current prices for a single city. You can query by name, by city code, or by coordinates:
curl "https://www.numbeo.com/api/city_prices?api_key=YOUR_API_KEY&query=London,%20United%20Kingdom" curl "https://www.numbeo.com/api/city_prices?api_key=YOUR_API_KEY&city=London&country=United%20Kingdom" curl "https://www.numbeo.com/api/city_prices?api_key=YOUR_API_KEY&query=51.509865,-0.118092"
Sample response (truncated):
{
"name": "London, United Kingdom",
"currency": "GBP",
"city_id": 6512,
"prices": [
{
"item_id": 1,
"item_name": "Meal, Inexpensive Restaurant, Restaurants",
"average_price": 15,
"lowest_price": 10,
"highest_price": 30,
"data_points": 82
}
]
}
Fetch the latest country-level prices. The country can be a name or an ISO 3166 code:
curl "https://www.numbeo.com/api/country_prices?api_key=YOUR_API_KEY&country=Germany"
{
"name": "Germany",
"contributors": 45,
"monthLastUpdate": 4,
"prices": [
{
"item_id": 1,
"item_name": "Meal, Inexpensive Restaurant, Restaurants",
"average_price": 12.5,
"lowest_price": 9,
"highest_price": 20,
"data_points": 40
}
]
}
If you need the summary indices rather than individual item prices, use the indices endpoints:
curl "https://www.numbeo.com/api/indices?api_key=YOUR_API_KEY&query=London,%20United%20Kingdom" curl "https://www.numbeo.com/api/country_indices?api_key=YOUR_API_KEY&country=Germany"
See plans and pricing on the Numbeo Data API page, or read the complete API documentation for every available endpoint and parameter.
Which cities and countries are covered?
The Numbeo Cost of Living API covers thousands of cities and every country with enough crowdsourced data, and supports lookup by city name, ISO country code or latitude and longitude coordinates.
What data format does the API return?
All endpoints return JSON. Each cost of living data response includes item-level prices, the number of data points, and metadata such as the currency and when the data was last updated.
Is the Cost of Living API free?
Numbeo offers paid API plans with monthly request quotas. See the Numbeo Data API page for current plans and pricing.
How often is the cost of living data updated?
Prices are updated continuously from crowdsourced contributions; each response reports the month and year it was last updated.