Cities Lookup API

GET

Match any city name to its verified population and country details.

Cities Lookup searches over 150,000 global cities to find country codes, population counts, and city size classifications by name. Paid plans add GeoJSON coordinates and custom match limits.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/citieslookup?city=San%20Francisco
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "search": "San Francisco",
    "foundCities": [
      {
        "name": "San Francisco",
        "altName": "",
        "country": "US",
        "countryName": "United States",
        "featureCode": "PPLA2",
        "population": 874961,
        "populationCategory": "major",
        "loc": {
          "type": "Point",
          "coordinates": [
            -122.4194,
            37.7749
          ]
        }
      }
    ]
  }
}

About the Cities Lookup API

Pass any city name to query a monthly updated catalog of over 150,000 settlements. The response lists matching places with their country name, two-letter ISO code, census population count, and population category. Free requests return one matching record, while paid plans include custom result limits and longitude-latitude coordinates.

What people use it for

Checkout Address Validation
When customers enter a city name during checkout, match official country codes and alternative names to standardize shipping records.
Retail Expansion Sizing
Retail analysts evaluate new store candidates by querying population figures and city size categories across international regions.
Fleet Dispatch Routing
For regional delivery scheduling, dispatchers convert destination city names into exact longitude and latitude coordinates on paid tiers.
Travel Destination Filtering
To help users discover vacation spots, travel search engines group destinations by population tier and resolve local alias spellings.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Cities Lookup

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Cities Lookup API.

Read the docs →
Which cities and geographic details does the database cover?
The database covers more than 150,000 cities worldwide. Each record includes the official name, alternative aliases if available, two-letter ISO country code, full country name, Geonames feature classification, population count, and population category.
What would 25,000 city lookups a month cost me?
A volume of 25,000 lookups requires 50,000 credits, which is fully covered by the Starter plan at 200,000 credits for $29.99 per month. That works out to about $0.0003 per lookup or $0.30 per 1,000 calls. The Free plan includes 100 lookups every month.
Can I get geographic coordinates and custom result limits on the Free plan?
No, exact latitude and longitude coordinates and the limit parameter require a paid plan. Free plan responses return basic city details without coordinate pairs. Upgrading to any paid tier, starting with Starter, unlocks full GeoJSON coordinates and custom search limits.
How large is the city database and how often is it updated?
Cities Lookup tracks over 150,000 cities globally and updates monthly. Population counts are derived from recent census figures, and city types follow standardized Geonames feature codes.
What happens when multiple cities share the same name?
The API returns an array of matching cities under the foundCities property rather than a single result. Each match includes its country name, ISO country code, and population size, allowing your application to disambiguate or display a selection list.
Can I use city lookup data inside a commercial application?
Yes, commercial use is permitted on any paid plan. You can use the city data to power location pickers, business intelligence dashboards, or market research in your own product. You may not resell or redistribute the raw dataset.

Ready to build with Cities Lookup? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs