Numbeo API: Compare cost of living between two cities
Compares living costs in two Numbeo cities: six price and purchasing-power differences, plus the monthly take-home salary needed in the destination for a similar standard of living (rent assumed in both cities).
Unofficial. Not affiliated with or endorsed by Numbeo.
Inputs
Values from the run on Oct 23, 2026, shown under Output.
- To City, required
to_city Destination city, such as Berlin or Berlin, Germany.
London
- Currency optional
currency Currency for the salary calculation, such as GBP, EUR, or British pound. Defaults to the starting city's currency.
euros
- From City, required
from_city Starting city, such as London or London, United Kingdom.
Berlin
- Monthly Salary optional
monthly_salary Monthly take-home pay in the starting city, such as 5000.
3500
Number 0.01 or more. Default
5000.
Input as JSON
{ "to_city": "London", "currency": "euros", "from_city": "Berlin", "monthly_salary": 3500}Output
{ "to_city": "London", "from_city": "Berlin", "rent_percent": 95.8, "comparison_link": "https://www.numbeo.com/cost-of-living/compare_cities.jsp?country1=Germany&city1=Berlin&country2=United+Kingdom&city2=London&amount=3500&displayCurrency=EUR" , "groceries_percent": 9.2, "consumer_prices_percent": 23.8, "required_monthly_salary": { "amount": 5063.5, "currency": "EUR" }, "restaurant_prices_percent": 31.7, "local_purchasing_power_percent": 2.6, "consumer_prices_including_rent_percent": 44.7}Code
curl https://api.fous.com/v1/runs \ -H "Authorization: Bearer $FOUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method":"numbeo.com/compare_cost_of_living","input":{"to_city":"London","currency":"euros","from_city":"Berlin","monthly_salary":3500}}' # Save as fous.py, then run: python3 fous.pyimport json, os, timefrom urllib.error import HTTPErrorfrom urllib.request import Request, urlopenAPI = "https://api.fous.com/v1/runs" KEY = os.environ["FOUS_API_KEY"]HEADERS = { "Authorization": f"Bearer {KEY}", "Content-Type": "application/json" ,}def call(url, body=None): data = json.dumps(body).encode() if body else None request = Request(url, data, HEADERS) try: with urlopen(request, timeout=120) as r: return r.status, json.load(r) except HTTPError as error: message = json.load(error)["error"]["message"] raise RuntimeError(message) from errorstatus, run = call(API, { "method": "numbeo.com/compare_cost_of_living" , "input": { "to_city": "London", "currency": "euros", "from_city": "Berlin", "monthly_salary": 3500 }})# 202: still going after 30 s. Ask again until it ends.while status == 202: time.sleep(2) status, run = call(f"{API}/{run['id']}")print(json.dumps(run["data"], indent=2))// Save as fous.mjs, then run: node fous.mjsconst api = "https://api.fous.com/v1/runs" ;const headers = { Authorization: `Bearer ${process.env.FOUS_API_KEY}`, "Content-Type": "application/json" ,};let response = await fetch(api, { method: "POST", headers, body: JSON.stringify({ "method": "numbeo.com/compare_cost_of_living" , "input": { "to_city": "London", "currency": "euros", "from_city": "Berlin", "monthly_salary": 3500 } }), signal: AbortSignal.timeout(120_000),});let run = await response.json();// 202: still going after 30 s. Ask again until it ends.while (response.status === 202) { await new Promise((done) => setTimeout(done, 2_000)); response = await fetch(`${api}/${run.id}`, { headers }); run = await response.json();}if (!response.ok) throw new Error(run.error.message);console.log(run.data);# Connect your agent to Fous once, over MCP (Streamable HTTP):# https://api.fous.com/mcp# Set FOUS_API_KEY first: create a key at https://app.fous.com/keys.# Claude Codeclaude mcp add \ --scope user \ --transport http fous https://api.fous.com/mcp \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Codexcodex mcp add fous \ --url https://api.fous.com/mcp \ --bearer-token-env-var FOUS_API_KEY# Cursor, VS Code, Windsurf, Cline and morenpx -y add-mcp https://api.fous.com/mcp -g -n fous \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Then ask your agent:# "Use Fous to run numbeo.com/compare_cost_of_living# with {"to_city":"London","currency":"euros","from_city":"Berlin","monthly_salary":3500}"Over HTTP, the answer’s data holds the output. A run still going after 30 seconds answers 202 with its id: ask GET /v1/runs/{id} until it ends.
Schema
Input schema
{ "type": "object", "required": [ "from_city", "to_city" ], "properties": { "to_city": { "type": "string", "description": "Destination city, such as Berlin or Berlin, Germany." }, "currency": { "type": "string", "description": "Currency for the salary calculation, such as GBP, EUR, or British pound. Defaults to the starting city's currency." }, "from_city": { "type": "string", "description": "Starting city, such as London or London, United Kingdom." }, "monthly_salary": { "type": "number", "default": 5000, "minimum": 0.01, "description": "Monthly take-home pay in the starting city, such as 5000." } }}Output schema
{ "type": "object", "required": [ "from_city", "to_city", "consumer_prices_percent", "consumer_prices_including_rent_percent", "rent_percent", "restaurant_prices_percent", "groceries_percent", "local_purchasing_power_percent", "required_monthly_salary", "comparison_link" ], "properties": { "to_city": { "type": "string" }, "from_city": { "type": "string" }, "rent_percent": { "type": "number" }, "comparison_link": { "type": "string" }, "groceries_percent": { "type": "number" }, "consumer_prices_percent": { "type": "number" }, "required_monthly_salary": { "type": "object", "required": [ "amount", "currency" ], "properties": { "amount": { "type": "number" }, "currency": { "type": "string" } } }, "restaurant_prices_percent": { "type": "number" }, "local_purchasing_power_percent": { "type": "number" }, "consumer_prices_including_rent_percent": { "type": "number" } }}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
numbeo.com/compare_cost_of_living- Returns
- six percent differences, required monthly salary, comparison link
Use it from your agent
Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method numbeo.com/compare_cost_of_living with the inputs above.
Ask your agent
- How much would I need to earn monthly in Lisbon to keep the same standard of living as in Madrid with 4200 euros take-home?
- Compare living costs between Toronto and Vancouver, I currently take home 6000 CAD a month
- What salary in Berlin, Germany matches my 3500 GBP monthly pay from London?
- Is Tokyo more expensive than Osaka for someone earning 450000 yen a month? Show price differences and comparison link.
- On numbeo.com, check how far my 5000 USD take-home from Austin would stretch in Denver in terms of purchasing power
See more
All Numbeo methodsGets a city's current Numbeo cost of living indices, monthly estimates without rent, and typical prices. Add a country or state to tell apart cities with the same name.
numbeo.com/get_cost_of_livingConverts a meeting time in one city to local times in other cities, with time zones and 09:00-17:00 working-hours status. Supports dates from 1970 to 2030; ambiguous clock-change times use the first occurrence.
timeanddate.com/convert_time_between_citiesCompares what recipients get from Wise and other providers for a transfer amount and currency pair, with fees, rates and delivery times.
wise.com/compare_transfer_costsGets typical pay for a job title from PayScale research pages. You can narrow it to a country and a city.
payscale.com/get_salaryGets Zumper's current median monthly rents for studio through three-bedroom homes in a city, with monthly and yearly percentage changes. National rank is included only when the same-month U.S. national report ranks the city.
zumper.com/get_average_rentsConverts an amount between two currencies using the current Google Finance quote. Rates may be delayed.
google.com/convert_currencyConverts an amount between two currencies using XE's displayed mid-market rate. It also returns the rate time and an XE converter link. Rates are informational, not transfer quotes.
xe.com/convert_currencyFinds available hostels, hotels and guesthouses on Hostelworld in a city for given dates, with per-night dorm and private room prices, ratings, facilities and booking links.
hostelworld.com/search_hostels