ScraperData

Locations

Locations

Google's own names for about 115,000 countries, regions, cities and districts, to pass as a search's location.
GEThttps://api.scraperdata.com/v1/locations

Free

It needs no API key and costs no credits. It allows 120 lookups a minute from one address.

You can send location in any words and we match it for you (see Location matching). Look a place up here when you want to pick the exact one yourself, then pass its canonical_name as location.

Request parameters

FieldTypeDescription
qstringrequiredThe place, in any words.Example: sachin
countrystringoptionalKeep one country, as a two-letter code.Example: in
limitintegeroptionalHow many places to return, from 1 to 50.Default: 10

Response

A list of places: the exact name first, then names that start with your text, broader and bigger places first.

FieldTypeDescription
canonical_namestringGoogle's full name for the place, to pass as location.
namestringThe place's own name.
country_codestringThe country, as a two-letter code like gl.
target_typestringCountry, State, City, District and so on.

Place names come from Google's geotargets list; city populations for ranking from GeoNames (CC BY 4.0).