Get global city, region, country, and island data. Filter places by name prefix, country, location, time-zone, and even minimum population (currently over 600,000 towns, cities, counties, and islands). Display results in multiple languages. Sort by name, country code, elevation, and population - or any combination of these. Get distances between places. Get all country regions. Get all places in a given region. Data is periodically refreshed from GeoNames and WikiData. Backed by cloud-based load-balanced infrastructure for resiliency and performance! If you’d like to host the service internally, contact us for details through the dev portal site. Data licensed under Creative Commons, http://creativecommons.org/licenses/by/3.0. For more information check out our website at http://geodb-cities-api.wirefreethought.com
This service provides basic info about cities, counties, regions, and countries throughout the world. It allows you to constrain and sort the data in various ways, retrieving just what’s relevant to your use-case.
Get details on New York City (Q60) and its nearby suburbs. (Just paste the below query verbatim into the RapidAPI POST graphQL endpoint.
{
populatedPlace(id:"Q60") {
name
population
latitude
longitude
nearbyPopulatedPlaces(radius:10, distanceUnit:MI, types:["CITY"], first:10) {
totalCount
edges {
node {
id
name
population
distance
}
}
pageInfo {
startCursor
endCursor
hasNextPage
}
}
}
}