Numbeo City Cost and Quality of Life Scraper
Pricing
from $0.49 / 1,000 results
Numbeo City Cost and Quality of Life Scraper
Look up cost of living, quality of life, crime, health care, pollution, traffic and property-price data for any city on Numbeo, compare two cities side by side, or pull the annual city rankings.
Pricing
from $0.49 / 1,000 results
Rating
0.0
(0)
Developer
Nimbryxo-studio
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
4 hours ago
Last modified
Categories
Features
Share
Numbeo City Prices, Indices and Rankings Scraper
Numbeo publishes crowd-sourced prices and liveability indices for thousands of cities and countries. This actor turns those pages into structured JSON: itemized prices with low/high ranges, quality-of-life and safety indices, commute details, property metrics, two-city comparisons, country profiles, food/restaurant/gas/grocery prices, and historical or current rankings. It reads public pages without cookies, logins or API keys.
What it does
- Scrapes every core Numbeo section: cost of living, quality of life, crime, health care, pollution, traffic, and property prices.
- Adds country profiles (national-average prices plus the ranked city table) and four market-price pages: food, restaurant menus, gasoline/vehicles, and groceries.
- Resolves city names through Numbeo's own city-search endpoint, so
New York,New York, NY,São Pauloand pasted city URLs all reach the right page. - Supports two-city comparisons with the site's own summary sentences and the equivalent-amount calculation.
- Returns all ranking families for cities, countries, regions, or the current rolling edition, with editions back to 2009.
- Converts prices to any of Numbeo's supported currencies and switches between metric and US units.
- Includes contributor counts, data-point counts and last-update dates when the page publishes them.
- Omits empty fields at every depth; no nulls, blank strings or placeholder values.
Input
| Field | Type | Default | Description |
|---|---|---|---|
mode | string | costOfLiving | Page family: costOfLiving, costOfLivingComparison, qualityOfLife, crime, healthCare, pollution, traffic, propertyInvestment, topCities, country, foodPrices, restaurantPrices, gasPrices, groceryPrices or byUrl. |
city | string | – | City name or Numbeo city URL for city and market modes (the form pre-fills New York). |
cities | array | [] | Additional cities to scrape in the same run. |
country | string | "" | Country name for country, foodPrices, restaurantPrices, gasPrices and groceryPrices modes. |
countries | array | [] | Additional countries for the same modes. |
countrySections | array | ["costOfLiving"] | Sections to scrape in country mode: cost of living, quality of life, crime, health care, pollution, traffic, property. |
country1 | string | – | Country hint for city 1 in comparison mode (the form pre-fills United States). |
city1 | string | – | City 1 in comparison mode. |
country2 | string | – | Country hint for city 2 in comparison mode (the form pre-fills Germany). |
city2 | string | – | City 2 in comparison mode. |
rankingType | string | costOfLiving | Ranking family: cost of living, quality of life, crime, health care, pollution, traffic or property. |
rankingScope | string | cities | cities, countries, region or current. |
rankingPeriod | string | "" | Historical edition such as 2024, 2024-mid or 2009; empty means the latest edition. |
region | string | world | Region for rankingScope=region: world, africa, northern-america, south-america, asia, europe or oceania. |
urls | array | [] | Direct Numbeo URLs; each is routed to the matching parser in byUrl mode. |
displayCurrency | string | "" | ISO currency code for every price; empty keeps local currencies. |
measurementSystem | string | metric | metric or US units. |
maxItems | integer | 5 | Maximum records to emit (1–1000). Raise it for full ranking tables. |
useProxy | boolean | false | Route requests through Apify Proxy. |
autoEscalateOnBlock | boolean | true | Retry through Apify Proxy after a direct rate-limit or challenge. |
proxyConfiguration | object | {"useApifyProxy": true, "apifyProxyGroups": []} | Proxy settings used when useProxy is on or escalation triggers. |
Examples:
{"mode": "costOfLiving", "city": "Berlin", "displayCurrency": "EUR", "maxItems": 1}
{"mode": "costOfLivingComparison", "city1": "New York, NY", "country1": "United States", "city2": "Berlin", "country2": "Germany"}
{"mode": "topCities", "rankingType": "propertyInvestment", "rankingScope": "countries", "rankingPeriod": "2024", "maxItems": 100}
{"mode": "country", "country": "Germany", "countrySections": ["costOfLiving", "qualityOfLife", "crime"], "displayCurrency": "EUR"}
{"mode": "byUrl", "urls": ["https://www.numbeo.com/cost-of-living/in/Tokyo", "https://www.numbeo.com/quality-of-life/rankings.jsp?title=2024"]}
Output
Every record carries recordType, siteName, scrapedAt and sourceUrl. City and country records add pageTitle, title, country, city/cityLabel, cityId when resolved, currency, displayCurrency, measurementSystem, contributors, dataPoints, lastUpdate and nearbyCities when the page provides them.
- Cost of living:
prices(item,category,price,currency,priceCurrency,rangeLow,rangeHigh),summary(family-of-four and single-person monthly costs in local and display currency, comparison city and percent),categoryTotals. - Quality of life:
qualityOfLifeIndex,qualityOfLifeIndexRating,indices,indexDetails,components(label, value, rating label),contributorsMin,contributorsMax. - Crime, health care, pollution:
indices,indexDetails,sections(each withtitleandrowsof label/value/rating),whoPollutionDataandwhoPollutionDetailsfor pollution. - Traffic:
indices,indexDetails,transportModes(mode share),averageCommute,commuteByMode,co2EmissionsKgPerYear,treesToOffsetCo2. - Property:
indices,indexDetails,rents(rent and buy-price rows with category),countryStatistics(GDP per capita, GDP growth, population growth). - Comparison:
comparisonrows with primary and alternate-currency prices per city plusdifferencePercent;comparisonSummary; specific difference fields;standardOfLivingequivalent amounts;city1Label,city2Label. - Rankings:
rank,cityorcountry, the index fields for that ranking type,rankingType,rankingScope,rankingPeriod,regionwhen applicable. - Country profiles: the same price/index/section fields with
countrySection, pluscityRankingsfor that country. - Market pages:
pricesfor food, gas and grocery pages;menuItems(with category) andcityRankingsfor restaurant pages. - Errors:
recordType: "error",errorKind,message, and the attemptedurl/city/country.
Notes and limits
- Numbeo rate-limits bursts from one IP (HTTP 429). The actor paces requests and retries with backoff;
autoEscalateOnBlockcan continue through Apify Proxy. - Rankings are complete server-rendered tables, typically 300–600 cities or 90–150 countries. There is no pagination;
maxItemsis the only cap. - Numbeo's city-search endpoint returns a short suggestion list. The actor picks the best exact match and accepts a country hint for ambiguous names.
- The premium “Prices by City” and “Prices by Country” tables require a paid Numbeo plan and are not scraped.
- Single-city pages show current data only; historical coverage is available through rankings.
- Data is crowd-sourced and changes as contributors update it. Each run reflects the pages at fetch time.
FAQ
Is this an official Numbeo API? No. It is an independent reader of Numbeo's public pages, not affiliated with Numbeo.
Do I need a proxy or cookies? No cookies or login are used. Numbeo is usually reachable directly; proxy escalation is optional and automatic.
Why are some ranges missing? Numbeo shows a low/high range only when enough contributions exist for that item. The field is omitted when the page does not show it.
How do I get every ranking row?
Set maxItems above the table size (for example 1000). The daily test uses 1 to stay cheap.
Can I scrape more than two cities in a comparison?
Numbeo's comparison page is two cities only. Use cities with a city mode to compare many places from the resulting records.