Numbeo City Cost and Quality of Life Scraper avatar

Numbeo City Cost and Quality of Life Scraper

Pricing

from $0.49 / 1,000 results

Go to Apify Store
Numbeo City Cost and Quality of Life Scraper

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

Nimbryxo-studio

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 hours ago

Last modified

Features

Limited permissions

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 Paulo and 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

FieldTypeDefaultDescription
modestringcostOfLivingPage family: costOfLiving, costOfLivingComparison, qualityOfLife, crime, healthCare, pollution, traffic, propertyInvestment, topCities, country, foodPrices, restaurantPrices, gasPrices, groceryPrices or byUrl.
citystring–City name or Numbeo city URL for city and market modes (the form pre-fills New York).
citiesarray[]Additional cities to scrape in the same run.
countrystring""Country name for country, foodPrices, restaurantPrices, gasPrices and groceryPrices modes.
countriesarray[]Additional countries for the same modes.
countrySectionsarray["costOfLiving"]Sections to scrape in country mode: cost of living, quality of life, crime, health care, pollution, traffic, property.
country1string–Country hint for city 1 in comparison mode (the form pre-fills United States).
city1string–City 1 in comparison mode.
country2string–Country hint for city 2 in comparison mode (the form pre-fills Germany).
city2string–City 2 in comparison mode.
rankingTypestringcostOfLivingRanking family: cost of living, quality of life, crime, health care, pollution, traffic or property.
rankingScopestringcitiescities, countries, region or current.
rankingPeriodstring""Historical edition such as 2024, 2024-mid or 2009; empty means the latest edition.
regionstringworldRegion for rankingScope=region: world, africa, northern-america, south-america, asia, europe or oceania.
urlsarray[]Direct Numbeo URLs; each is routed to the matching parser in byUrl mode.
displayCurrencystring""ISO currency code for every price; empty keeps local currencies.
measurementSystemstringmetricmetric or US units.
maxItemsinteger5Maximum records to emit (1–1000). Raise it for full ranking tables.
useProxybooleanfalseRoute requests through Apify Proxy.
autoEscalateOnBlockbooleantrueRetry through Apify Proxy after a direct rate-limit or challenge.
proxyConfigurationobject{"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 with title and rows of label/value/rating), whoPollutionData and whoPollutionDetails for 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: comparison rows with primary and alternate-currency prices per city plus differencePercent; comparisonSummary; specific difference fields; standardOfLiving equivalent amounts; city1Label, city2Label.
  • Rankings: rank, city or country, the index fields for that ranking type, rankingType, rankingScope, rankingPeriod, region when applicable.
  • Country profiles: the same price/index/section fields with countrySection, plus cityRankings for that country.
  • Market pages: prices for food, gas and grocery pages; menuItems (with category) and cityRankings for restaurant pages.
  • Errors: recordType: "error", errorKind, message, and the attempted url/city/country.

Notes and limits

  • Numbeo rate-limits bursts from one IP (HTTP 429). The actor paces requests and retries with backoff; autoEscalateOnBlock can continue through Apify Proxy.
  • Rankings are complete server-rendered tables, typically 300–600 cities or 90–150 countries. There is no pagination; maxItems is 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.