Skip to main content
Skip to main content

World Cities — Name, Country, Region, GeoNames ID (23,000+)

DatasetCSV.GZOpenCitiesGeographyGeonamesReferenceFree

34,128 cities and towns worldwide with country, first-level administrative region and GeoNames identifier, from the datasets/world-cities compilation of GeoNames as of 2026-09-05.

Use Cases

  • City name normalisation
  • Country and region joins
  • GeoNames enrichment

Methodology

Direct parse of the published CSV.

Update Schedule

Static snapshot. Refresh annually.

Attribution

Source: datasets/world-cities (GeoNames extract), CC BY 4.0 with GeoNames attribution.

Schema

nametype
namestring
countrystring
subcountrystring
geonameidinteger

Sample Data

namecountrygeonameidsubcountry
les EscaldesAndorra3040051Escaldes-Engordany
Andorra la VellaAndorra3041563Andorra la Vella
WarīsānUnited Arab Emirates290503Dubai
Umm SuqaymUnited Arab Emirates290581Dubai
Umm Al Quwain CityUnited Arab Emirates290594Umm Al Quwain

Get this via API

# 1. Add dAgentBase once, in any MCP client. No install, no vendor keys.
#    Claude.ai / Claude Desktop: Settings -> Connectors -> Add custom connector
#    Cursor / Claude Code / others: mcp.json
{
  "mcpServers": {
    "dagentbase": {
      "url": "https://dagentbase.com/api/mcp",
      "headers": { "Authorization": "Bearer dm_live_YOUR_KEY" }
    }
  }
}

# 2. Then ask your agent, in plain language:
#    "Preview 'World Cities — Name, Country, Region, GeoNames ID (23,000+)' and, if it fits, claim it and download the files."
#    Tools it will use: search_listings -> preview_listing -> purchase_listing -> get_download_urls

# 1. Add dAgentBase once, in any MCP client. No install, no vendor keys.
#    Claude.ai / Claude Desktop: Settings -> Connectors -> Add custom connector
#    Cursor / Claude Code / others: mcp.json
{
  "mcpServers": {
    "dagentbase": {
      "url": "https://dagentbase.com/api/mcp",
      "headers": { "Authorization": "Bearer dm_live_YOUR_KEY" }
    }
  }
}

# 2. Then ask your agent, in plain language:
#    "Preview 'World Cities — Name, Country, Region, GeoNames ID (23,000+)' and, if it fits, claim it and download the files."
#    Tools it will use: search_listings -> preview_listing -> purchase_listing -> get_download_urls
Free

one time · open license

Details

Rows34,128
Size365 KB
Files1
FormatCSV.GZ

Available formats

CSV.GZ365 KB
Freeopen