Skip to content

Instantly share code, notes, and snippets.

@kharioki
Forked from pensely/counties.json
Last active September 5, 2024 18:41
Show Gist options
  • Save kharioki/1b22745a65d6ec5f195870d17244b299 to your computer and use it in GitHub Desktop.
Save kharioki/1b22745a65d6ec5f195870d17244b299 to your computer and use it in GitHub Desktop.
Kenya county names, codes and capitals in JSON
[{
"name": "Mombasa",
"code": 1,
"capital": "Mombasa City"
}, {
"name": "Kwale",
"code": 2,
"capital": "Kwale"
}, {
"name": "Kilifi",
"code": 3,
"capital": "Kilifi"
}, {
"name": "Tana River",
"code": 4,
"capital": "Hola"
}, {
"name": "Lamu",
"code": 5,
"capital": "Lamu"
}, {
"name": "Taita-Taveta",
"code": 6,
"capital": "Voi"
}, {
"name": "Garissa",
"code": 7,
"capital": "Garissa"
}, {
"name": "Wajir",
"code": 8,
"capital": "Wajir"
}, {
"name": "Mandera",
"code": 9,
"capital": "Mandera"
}, {
"name": "Marsabit",
"code": 10,
"capital": "Marsabit"
}, {
"name": "Isiolo",
"code": 11,
"capital": "Isiolo"
}, {
"name": "Meru",
"code": 12,
"capital": "Meru"
}, {
"name": "Tharaka-Nithi",
"code": 13,
"capital": "Chuka"
}, {
"name": "Embu",
"code": 14,
"capital": "Embu"
}, {
"name": "Kitui",
"code": 15,
"capital": "Kitui"
}, {
"name": "Machakos",
"code": 16,
"capital": "Machakos"
}, {
"name": "Makueni",
"code": 17,
"capital": "Wote"
}, {
"name": "Nyandarua",
"code": 18,
"capital": "Ol Kalou"
}, {
"name": "Nyeri",
"code": 19,
"capital": "Nyeri"
}, {
"name": "Kirinyaga",
"code": 20,
"capital": "Kerugoya/Kutus"
}, {
"name": "Murang'a",
"code": 21,
"capital": "Murang'a"
}, {
"name": "Kiambu",
"code": 22,
"capital": "Kiambu"
}, {
"name": "Turkana",
"code": 23,
"capital": "Lodwar"
}, {
"name": "West Pokot",
"code": 24,
"capital": "Kapenguria"
}, {
"name": "Samburu",
"code": 25,
"capital": "Maralal"
}, {
"name": "Trans-Nzoia",
"code": 26,
"capital": "Kitale"
}, {
"name": "Uasin Gishu",
"code": 27,
"capital": "Eldoret"
}, {
"name": "Elgeyo-Marakwet",
"code": 28,
"capital": "Iten"
}, {
"name": "Nandi",
"code": 29,
"capital": "Kapsabet"
}, {
"name": "Baringo",
"code": 30,
"capital": "Kabarnet"
}, {
"name": "Laikipia",
"code": 31,
"capital": "Rumuruti"
}, {
"name": "Nakuru",
"code": 32,
"capital": "Nakuru"
}, {
"name": "Narok",
"code": 33,
"capital": "Narok"
}, {
"name": "Kajiado",
"code": 34
}, {
"name": "Kericho",
"code": 35,
"capital": "Kericho"
}, {
"name": "Bomet",
"code": 36,
"capital": "Bomet"
}, {
"name": "Kakamega",
"code": 37,
"capital": "Kakamega"
}, {
"name": "Vihiga",
"code": 38,
"capital": "Vihiga"
}, {
"name": "Bungoma",
"code": 39,
"capital": "Bungoma"
}, {
"name": "Busia",
"code": 40,
"capital": "Busia"
}, {
"name": "Siaya",
"code": 41,
"capital": "Siaya"
}, {
"name": "Kisumu",
"code": 42,
"capital": "Kisumu"
}, {
"name": "Homa Bay",
"code": 43,
"capital": "Homa Bay"
}, {
"name": "Migori",
"code": 44,
"capital": "Migori"
}, {
"name": "Kisii",
"code": 45,
"capital": "Kisii"
}, {
"name": "Nyamira",
"code": 46,
"capital": "Nyamira"
}, {
"name": "Nairobi",
"code": 47,
"capital": "Nairobi City"
}]
@jgithaiga
Copy link

Kudos for this! It saved me some time today (y).

@weezqyd
Copy link

weezqyd commented Sep 17, 2018

Thanks for sharing this..

@ndukuwamalwa
Copy link

Thanks for sharing this rather tedious to do work. Thanks so much

@mtsammy40
Copy link

Misspell on Capital of Mombasa('Monbasa'), Otherwise, Kudos... you saved me loads of time!!

@easadhi
Copy link

easadhi commented Oct 22, 2019

Thanks for this. Not sure why it is not working in Power BI. Any idea?

@tn-mutunga
Copy link

Thank you for this data. I wanna work with the specific co-ordinates too of the counties. Anyone with this data?

@Shivere
Copy link

Shivere commented Sep 15, 2020

Thank you for this data. I wanna work with the specific co-ordinates too of the counties. Anyone with this data?

https://africaopendata.org/dataset/kenya-counties-json

@muriminjue
Copy link

Thank you for this.

@bosirejustine
Copy link

Hello, I'm looking for valid JSON files for Kenya in three levels:

  1. Counties
  2. Constituencies
  3. Wards
    Everything I search throws an error of INVALID JSON FILE. Any help please?

@easadhi
Copy link

easadhi commented Jun 5, 2022 via email

@shyrynaz
Copy link

shyrynaz commented May 1, 2023

Thank you for this

@oluisrael11
Copy link

@easadhi can you please elaborate more on this?

Should be easier to generate if you have the shape files. Use the mapshaper site

@munenendereba
Copy link

Thank you for the list.
Please update the capital for Kajiado. Thanks

@muathime
Copy link

muathime commented Sep 5, 2024

thanks a bunch this saved me a minute! 🇰🇪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment