πŸ‡¬πŸ‡§ Cities in United Kingdom β€” API & JSON data

United Kingdom has 26,777 cities in the Geomelon dataset, one of the more densely covered countries in the API. The most populous is London in England, at 8,799,728 people. Query it by name, region, or coordinates, with translations in 46 languages.

Data updated: 2026-07-14

Live demo

Type to search United Kingdom cities…

Top 10 cities by population

CityRegionPopulation
LondonEngland8,799,728
BirminghamEngland1,157,603
Birminghamβ€”1,137,100
SomersetEngland975,782
LeedsEngland822,483
LeedsEngland822,483
Swansea Bay City Regionβ€”685,051
GlasgowScotland635,640
Glasgow CityScotland633,120
SheffieldEngland577,800

Sample API response

GET /cities/search?countryCode=gb&sort=population_desc&limit=3

[
  {
    "id": "78f94343-dd35-477a-a290-3eff9724de17",
    "name": "London",
    "population": 8799728,
    "countryName": "United Kingdom",
    "countryCode": "GB",
    "countryEmoji": "πŸ‡¬πŸ‡§",
    "regionName": "England"
  },
  {
    "id": "0e183251-00ee-4e0d-bc2a-f3f54f3b0f21",
    "name": "Birmingham",
    "population": 1157603,
    "countryName": "United Kingdom",
    "countryCode": "GB",
    "countryEmoji": "πŸ‡¬πŸ‡§",
    "regionName": "England"
  },
  {
    "id": "72c0ce9e-76e4-44a5-b268-f8a15431d5ea",
    "name": "Birmingham",
    "population": 1137100,
    "countryName": "United Kingdom",
    "countryCode": "GB",
    "countryEmoji": "πŸ‡¬πŸ‡§",
    "regionName": null
  }
]

Try it

curl --request GET \
  --url 'https://geomelon.p.rapidapi.com/cities/search?countryCode=gb&sort=population_desc&limit=10' \
  --header 'x-rapidapi-host: geomelon.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_API_KEY'

Multilingual city names

City names in United Kingdom are available in 46 languages.

Free dataset

Prefer a static file? Download 5,000 United Kingdom cities as JSON (697 KB, no API key) from the United Kingdom cities dataset page.

FAQ

How many cities in United Kingdom does the API return?

Geomelon currently has 26,777 cities in United Kingdom across 16 regions. Results are paginated, up to 100 per request.

Is there a free tier?

Yes. RapidAPI's free tier covers a fixed number of requests per month with no credit card required. There is also a free, no-key city-autocomplete endpoint (the demo above) for prefix search.

Can I get United Kingdom city names in other languages?

Yes β€” city names in United Kingdom are available in 46 languages. Pass the languages you want via the preferredLanguages parameter, most-preferred first.

Do I need an API key?

The main search and lookup endpoints require a free RapidAPI key. The prefix-search autocomplete endpoint used in the demo above is public and does not require a key.

Try free on RapidAPI

Related