Browse our database of cities with our API (100K+ cities)
Search through a database of over 100K cities with our API. Get detailed city data for your applications.
Search cities
Search our cities to filter companies in a specific location.
Query parameters
pagenumber (optional)
The page to fetch (default to 1).
searchstring (optional)
An additional search query applied to the city name.
sizenumber (optional)
The number of cities to be returned (between 1 and 20). Default to 10.
Response
citiesarray
The cities that match your conditions.
metaobject
The metas information.
Endpoint
GET
https://api.thecompaniesapi.com/v2/locations/cities