πŸ‡°πŸ‡ͺ Cities in Kenya β€” API & JSON data

2,065 cities. 48 regions. 11 languages. That's the current coverage for Kenya in the Geomelon API, led by Nairobi at 5,545,000 people.

Data updated: 2026-07-14

Live demo

Type to search Kenya cities…

Top 10 cities by population

CityRegionPopulation
NairobiNairobi County5,545,000
MombasaMombasa County1,208,333
Murang'aMuranga County1,056,640
KisumuKisumu County397,957
NakuruNakuru County307,990
EldoretUasin Gishu County289,380
NyaliMombasa County185,900
Kangemi Wardβ€”176,689
Jujaβ€”156,041
Mlolongoβ€”136,351

Sample API response

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

[
  {
    "id": "0f84b6b4-d0d5-48e7-9db6-77bb94993c34",
    "name": "Nairobi",
    "population": 5545000,
    "countryName": "Kenya",
    "countryCode": "KE",
    "countryEmoji": "πŸ‡°πŸ‡ͺ",
    "regionName": "Nairobi County"
  },
  {
    "id": "36b230ed-7642-4680-acff-5bce71d0c8f0",
    "name": "Mombasa",
    "population": 1208333,
    "countryName": "Kenya",
    "countryCode": "KE",
    "countryEmoji": "πŸ‡°πŸ‡ͺ",
    "regionName": "Mombasa County"
  },
  {
    "id": "fcaa1e4e-3856-4c37-ad73-1081764d5a0c",
    "name": "Murang'a",
    "population": 1056640,
    "countryName": "Kenya",
    "countryCode": "KE",
    "countryEmoji": "πŸ‡°πŸ‡ͺ",
    "regionName": "Muranga County"
  }
]

Try it

curl --request GET \
  --url 'https://geomelon.p.rapidapi.com/cities/search?countryCode=ke&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 Kenya are available in 11 languages.

Free dataset

Prefer a static file? Download 60 Kenya cities as JSON (9 KB, no API key) from the Kenya cities dataset page.

FAQ

How many cities in Kenya does the API return?

Geomelon currently has 2,065 cities in Kenya across 48 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 Kenya city names in other languages?

Yes β€” city names in Kenya are available in 11 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