Convert raw HTML data into JSON,PHP and MYSQL: Nigeria States and Local Government Updated 2017 ~ Hybrid Mobile Apps Development, React Native, Flutter, JavaScript, Darts, iOS, Android, NodeJS
Coding Savvy FB Twitter Google
» »

Convert raw HTML data into JSON,PHP and MYSQL: Nigeria States and Local Government Updated 2017

I was recently challenged with listing the states and local government of my country but I had nowhere to turn to for the data, The available and most updated list of states and local governments is on wikipedia and it was scattered (Arranged in accordance to local governments). This might also be useful to you in case you are in thesame situation with that of your country, I believe wikipedia structure such data in similar format.
Convert raw HTML data into JSON,PHP and MYSQL: Nigeria States and Local Government

Download Script Live Demo
< Let see how the data look like on wikipedia.
Wiki Display
I was able to copy this table by using Firefox developer tool which can be found by Right clicking on the page and select Inspect Elements from the drop menu then in the box the document tree will display you can put you mouse on the node you want to copy Right click and select Copy outer HTML ,The whole HTML of that node will be copied to your clipboard That is how the raw data was extracted.

Conversion to JSON

The methods used for the JSON to PHP conversion is very simple. All the source codes used for the conversion is available in this file.Download Source Code
The only disadvantage of this first extraction it structure, also it is not alphabetically arranged as we want it to be.

PHP Format


In case you need the data to be used as PHP array the variable containing all the array data is the $ug (source code)variable above, It what you need if you want your data in PHP format You can just add this line to see the content
<?php var_dump($ug); ?>

MySQL format


For the MySQL format of the data we will be using thesame code we used to extract JSON data to create a Query string.

Final Results


SQL

-- -- Table structure for table `states` -- CREATE TABLE IF NOT EXISTS `states` ( `state_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, PRIMARY KEY (`state_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=38 ; -- -- Dumping data for table `states` -- INSERT INTO `states` (`state_id`, `name`) VALUES (1, 'Abia State'), (2, 'Adamawa State'), (3, 'Akwa Ibom State'), (4, 'Anambra State'), (5, 'Bauchi State'), (6, 'Bayelsa State'), (7, 'Benue State'), (8, 'Borno State'), (9, 'Cross River State'), (10, 'Delta State'), (11, 'Ebonyi State'), (12, 'Edo State'), (13, 'Ekiti State'), (14, 'Enugu State'), (15, 'FCT'), (16, 'Gombe State'), (17, 'Imo State'), (18, 'Jigawa State'), (19, 'Kaduna State'), (20, 'Kano State'), (21, 'Katsina State'), (22, 'Kebbi State'), (23, 'Kogi State'), (24, 'Kwara State'), (25, 'Lagos State'), (26, 'Nasarawa State'), (27, 'Niger State'), (28, 'Ogun State'), (29, 'Ondo State'), (30, 'Osun State'), (31, 'Oyo State'), (32, 'Plateau State'), (33, 'Rivers State'), (34, 'Sokoto State'), (35, 'Taraba State'), (36, 'Yobe State'), (37, 'Zamfara State'); CREATE TABLE IF NOT EXISTS `locals` ( `local_id` int(11) NOT NULL AUTO_INCREMENT, `state_id` int(11) NOT NULL, `local_name` varchar(100) NOT NULL, PRIMARY KEY (`local_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=756 ; -- -- Dumping data for table `locals` -- INSERT INTO `locals`(`local_id`, `state_id`, `local_name`) VALUES (1,"1","Aba North"), (2,"1","Aba South"), (3,"1","Arochukwu"), (4,"1","Bende"), (5,"1","Ikwuano"), (6,"1","Isiala Ngwa North"), (7,"1","Isiala Ngwa South"), (8,"1","Isuikwuato"), (9,"1","Obi Ngwa"), (10,"1","Ohafia"), (11,"1","Osisioma"), (12,"1","Ugwunagbo"), (13,"1","Ukwa East"), (14,"1","Ukwa West"), (15,"1","Umuahia North"), (16,"1","Umuahia South"), (17,"1","Umu Nneochi"), (18,"2","Demsa"), (19,"2","Fufure"), (20,"2","Ganye"), (21,"2","Gayuk"), (22,"2","Gombi"), (23,"2","Grie"), (24,"2","Hong"), (25,"2","Jada"), (26,"2","Lamurde"), (27,"2","Madagali"), (28,"2","Maiha"), (29,"2","Mayo Belwa"), (30,"2","Michika"), (31,"2","Mubi North"), (32,"2","Mubi South"), (33,"2","Numan"), (34,"2","Shelleng"), (35,"2","Song"), (36,"2","Toungo"), (37,"2","Yola North"), (38,"2","Yola South"), (39,"3","Abak"), (40,"3","Eastern Obolo"), (41,"3","Eket"), (42,"3","Esit Eket"), (43,"3","Essien Udim"), (44,"3","Etim Ekpo"), (45,"3","Etinan"), (46,"3","Ibeno"), (47,"3","Ibesikpo Asutan"), (48,"3","Ibiono-Ibom"), (49,"3","Ika"), (50,"3","Ikono"), (51,"3","Ikot Abasi"), (52,"3","Ikot Ekpene"), (53,"3","Ini"), (54,"3","Itu"), (55,"3","Mbo"), (56,"3","Mkpat-Enin"), (57,"3","Nsit-Atai"), (58,"3","Nsit-Ibom"), (59,"3","Nsit-Ubium"), (60,"3","Obot Akara"), (61,"3","Okobo"), (62,"3","Onna"), (63,"3","Oron"), (64,"3","Oruk Anam"), (65,"3","Udung-Uko"), (66,"3","Ukanafun"), (67,"3","Uruan"), (68,"3","Urue-Offong/Oruko"), (69,"3","Uyo"), (70,"4","Aguata"), (71,"4","Anambra East"), (72,"4","Anambra West"), (73,"4","Anaocha"), (74,"4","Awka North"), (75,"4","Awka South"), (76,"4","Ayamelum"), (77,"4","Dunukofia"), (78,"4","Ekwusigo"), (79,"4","Idemili North"), (80,"4","Idemili South"), (81,"4","Ihiala"), (82,"4","Njikoka"), (83,"4","Nnewi North"), (84,"4","Nnewi South"), (85,"4","Ogbaru"), (86,"4","Onitsha North"), (87,"4","Onitsha South"), (88,"4","Orumba North"), (89,"4","Orumba South"), (90,"4","Oyi"), (91,"5","Alkaleri"), (92,"5","Bauchi"), (93,"5","Bogoro"), (94,"5","Damban"), (95,"5","Darazo"), (96,"5","Dass"), (97,"5","Gamawa"), (98,"5","Ganjuwa"), (99,"5","Giade"), (100,"5","Itas/Gadau"), (101,"5","Jama'are"), (102,"5","Katagum"), (103,"5","Kirfi"), (104,"5","Misau"), (105,"5","Ningi"), (106,"5","Shira"), (107,"5","Tafawa Balewa"), (108,"5","Toro"), (109,"5","Warji"), (110,"5","Zaki"), (111,"6","Brass"), (112,"6","Ekeremor"), (113,"6","Kolokuma/Opokuma"), (114,"6","Nembe"), (115,"6","Ogbia"), (116,"6","Sagbama"), (117,"6","Southern Ijaw"), (118,"6","Yenagoa"), (119,"7","Agatu"), (120,"7","Apa"), (121,"7","Ado"), (122,"7","Buruku"), (123,"7","Gboko"), (124,"7","Guma"), (125,"7","Gwer East"), (126,"7","Gwer West"), (127,"7","Katsina-Ala"), (128,"7","Konshisha"), (129,"7","Kwande"), (130,"7","Logo"), (131,"7","Makurdi"), (132,"7","Obi"), (133,"7","Ogbadibo"), (134,"7","Ohimini"), (135,"7","Oju"), (136,"7","Okpokwu"), (137,"7","Oturkpo"), (138,"7","Tarka"), (139,"7","Ukum"), (140,"7","Ushongo"), (141,"7","Vandeikya"), (142,"8","Abadam"), (143,"8","Askira/Uba"), (144,"8","Bama"), (145,"8","Bayo"), (146,"8","Biu"), (147,"8","Chibok"), (148,"8","Damboa"), (149,"8","Dikwa"), (150,"8","Gubio"), (151,"8","Guzamala"), (152,"8","Gwoza"), (153,"8","Hawul"), (154,"8","Jere"), (155,"8","Kaga"), (156,"8","Kala/Balge"), (157,"8","Konduga"), (158,"8","Kukawa"), (159,"8","Kwaya Kusar"), (160,"8","Mafa"), (161,"8","Magumeri"), (162,"8","Maiduguri"), (163,"8","Marte"), (164,"8","Mobbar"), (165,"8","Monguno"), (166,"8","Ngala"), (167,"8","Nganzai"), (168,"8","Shani"), (169,"9","Abi"), (170,"9","Akamkpa"), (171,"9","Akpabuyo"), (172,"9","Bakassi"), (173,"9","Bekwarra"), (174,"9","Biase"), (175,"9","Boki"), (176,"9","Calabar Municipal"), (177,"9","Calabar South"), (178,"9","Etung"), (179,"9","Ikom"), (180,"9","Obanliku"), (181,"9","Obubra"), (182,"9","Obudu"), (183,"9","Odukpani"), (184,"9","Ogoja"), (185,"9","Yakuur"), (186,"9","Yala"), (187,"10","Aniocha North"), (188,"10","Aniocha South"), (189,"10","Bomadi"), (190,"10","Burutu"), (191,"10","Ethiope East"), (192,"10","Ethiope West"), (193,"10","Ika North East"), (194,"10","Ika South"), (195,"10","Isoko North"), (196,"10","Isoko South"), (197,"10","Ndokwa East"), (198,"10","Ndokwa West"), (199,"10","Okpe"), (200,"10","Oshimili North"), (201,"10","Oshimili South"), (202,"10","Patani"), (203,"10","Sapele"), (204,"10","Udu"), (205,"10","Ughelli North"), (206,"10","Ughelli South"), (207,"10","Ukwuani"), (208,"10","Uvwie"), (209,"10","Warri North"), (210,"10","Warri South"), (211,"10","Warri South West"), (212,"11","Abakaliki"), (213,"11","Afikpo North"), (214,"11","Afikpo South"), (215,"11","Ebonyi"), (216,"11","Ezza North"), (217,"11","Ezza South"), (218,"11","Ikwo"), (219,"11","Ishielu"), (220,"11","Ivo"), (221,"11","Izzi"), (222,"11","Ohaozara"), (223,"11","Ohaukwu"), (224,"11","Onicha"), (225,"12","Akoko-Edo"), (226,"12","Egor"), (227,"12","Esan Central"), (228,"12","Esan North-East"), (229,"12","Esan South-East"), (230,"12","Esan West"), (231,"12","Etsako Central"), (232,"12","Etsako East"), (233,"12","Etsako West"), (234,"12","Igueben"), (235,"12","Ikpoba Okha"), (236,"12","Orhionmwon"), (237,"12","Oredo"), (238,"12","Ovia North-East"), (239,"12","Ovia South-West"), (240,"12","Owan East"), (241,"12","Owan West"), (242,"12","Uhunmwonde"), (243,"13","Ado Ekiti"), (244,"13","Efon"), (245,"13","Ekiti East"), (246,"13","Ekiti South-West"), (247,"13","Ekiti West"), (248,"13","Emure"), (249,"13","Gbonyin"), (250,"13","Ido Osi"), (251,"13","Ijero"), (252,"13","Ikere"), (253,"13","Ikole"), (254,"13","Ilejemeje"), (255,"13","Irepodun/Ifelodun"), (256,"13","Ise/Orun"), (257,"13","Moba"), (258,"13","Oye"), (259,"14","Aninri"), (260,"14","Awgu"), (261,"14","Enugu East"), (262,"14","Enugu North"), (263,"14","Enugu South"), (264,"14","Ezeagu"), (265,"14","Igbo Etiti"), (266,"14","Igbo Eze North"), (267,"14","Igbo Eze South"), (268,"14","Isi Uzo"), (269,"14","Nkanu East"), (270,"14","Nkanu West"), (271,"14","Nsukka"), (272,"14","Oji River"), (273,"14","Udenu"), (274,"14","Udi"), (275,"14","Uzo Uwani"), (276,"15","Abaji"), (277,"15","Bwari"), (278,"15","Gwagwalada"), (279,"15","Kuje"), (280,"15","Kwali"), (281,"15","Municipal Area Council"), (282,"16","Akko"), (283,"16","Balanga"), (284,"16","Billiri"), (285,"16","Dukku"), (286,"16","Funakaye"), (287,"16","Gombe"), (288,"16","Kaltungo"), (289,"16","Kwami"), (290,"16","Nafada"), (291,"16","Shongom"), (292,"16","Yamaltu/Deba"), (293,"17","Aboh Mbaise"), (294,"17","Ahiazu Mbaise"), (295,"17","Ehime Mbano"), (296,"17","Ezinihitte"), (297,"17","Ideato North"), (298,"17","Ideato South"), (299,"17","Ihitte/Uboma"), (300,"17","Ikeduru"), (301,"17","Isiala Mbano"), (302,"17","Isu"), (303,"17","Mbaitoli"), (304,"17","Ngor Okpala"), (305,"17","Njaba"), (306,"17","Nkwerre"), (307,"17","Nwangele"), (308,"17","Obowo"), (309,"17","Oguta"), (310,"17","Ohaji/Egbema"), (311,"17","Okigwe"), (312,"17","Orlu"), (313,"17","Orsu"), (314,"17","Oru East"), (315,"17","Oru West"), (316,"17","Owerri Municipal"), (317,"17","Owerri North"), (318,"17","Owerri West"), (319,"17","Unuimo"), (320,"18","Auyo"), (321,"18","Babura"), (322,"18","Biriniwa"), (323,"18","Birnin Kudu"), (324,"18","Buji"), (325,"18","Dutse"), (326,"18","Gagarawa"), (327,"18","Garki"), (328,"18","Gumel"), (329,"18","Guri"), (330,"18","Gwaram"), (331,"18","Gwiwa"), (332,"18","Hadejia"), (333,"18","Jahun"), (334,"18","Kafin Hausa"), (335,"18","Kazaure"), (336,"18","Kiri Kasama"), (337,"18","Kiyawa"), (338,"18","Kaugama"), (339,"18","Maigatari"), (340,"18","Malam Madori"), (341,"18","Miga"), (342,"18","Ringim"), (343,"18","Roni"), (344,"18","Sule Tankarkar"), (345,"18","Taura"), (346,"18","Yankwashi"), (347,"19","Birnin Gwari"), (348,"19","Chikun"), (349,"19","Giwa"), (350,"19","Igabi"), (351,"19","Ikara"), (352,"19","Jaba"), (353,"19","Jema'a"), (354,"19","Kachia"), (355,"19","Kaduna North"), (356,"19","Kaduna South"), (357,"19","Kagarko"), (358,"19","Kajuru"), (359,"19","Kaura"), (360,"19","Kauru"), (361,"19","Kubau"), (362,"19","Kudan"), (363,"19","Lere"), (364,"19","Makarfi"), (365,"19","Sabon Gari"), (366,"19","Sanga"), (367,"19","Soba"), (368,"19","Zangon Kataf"), (369,"19","Zaria"), (370,"20","Ajingi"), (371,"20","Albasu"), (372,"20","Bagwai"), (373,"20","Bebeji"), (374,"20","Bichi"), (375,"20","Bunkure"), (376,"20","Dala"), (377,"20","Dambatta"), (378,"20","Dawakin Kudu"), (379,"20","Dawakin Tofa"), (380,"20","Doguwa"), (381,"20","Fagge"), (382,"20","Gabasawa"), (383,"20","Garko"), (384,"20","Garun Mallam"), (385,"20","Gaya"), (386,"20","Gezawa"), (387,"20","Gwale"), (388,"20","Gwarzo"), (389,"20","Kabo"), (390,"20","Kano Municipal"), (391,"20","Karaye"), (392,"20","Kibiya"), (393,"20","Kiru"), (394,"20","Kumbotso"), (395,"20","Kunchi"), (396,"20","Kura"), (397,"20","Madobi"), (398,"20","Makoda"), (399,"20","Minjibir"), (400,"20","Nasarawa"), (401,"20","Rano"), (402,"20","Rimin Gado"), (403,"20","Rogo"), (404,"20","Shanono"), (405,"20","Sumaila"), (406,"20","Takai"), (407,"20","Tarauni"), (408,"20","Tofa"), (409,"20","Tsanyawa"), (410,"20","Tudun Wada"), (411,"20","Ungogo"), (412,"20","Warawa"), (413,"20","Wudil"), (414,"21","Bakori"), (415,"21","Batagarawa"), (416,"21","Batsari"), (417,"21","Baure"), (418,"21","Bindawa"), (419,"21","Charanchi"), (420,"21","Dandume"), (421,"21","Danja"), (422,"21","Dan Musa"), (423,"21","Daura"), (424,"21","Dutsi"), (425,"21","Dutsin Ma"), (426,"21","Faskari"), (427,"21","Funtua"), (428,"21","Ingawa"), (429,"21","Jibia"), (430,"21","Kafur"), (431,"21","Kaita"), (432,"21","Kankara"), (433,"21","Kankia"), (434,"21","Katsina"), (435,"21","Kurfi"), (436,"21","Kusada"), (437,"21","Mai'Adua"), (438,"21","Malumfashi"), (439,"21","Mani"), (440,"21","Mashi"), (441,"21","Matazu"), (442,"21","Musawa"), (443,"21","Rimi"), (444,"21","Sabuwa"), (445,"21","Safana"), (446,"21","Sandamu"), (447,"21","Zango"), (448,"22","Aleiro"), (449,"22","Arewa Dandi"), (450,"22","Argungu"), (451,"22","Augie"), (452,"22","Bagudo"), (453,"22","Birnin Kebbi"), (454,"22","Bunza"), (455,"22","Dandi"), (456,"22","Fakai"), (457,"22","Gwandu"), (458,"22","Jega"), (459,"22","Kalgo"), (460,"22","Koko/Besse"), (461,"22","Maiyama"), (462,"22","Ngaski"), (463,"22","Sakaba"), (464,"22","Shanga"), (465,"22","Suru"), (466,"22","Wasagu/Danko"), (467,"22","Yauri"), (468,"22","Zuru"), (469,"23","Adavi"), (470,"23","Ajaokuta"), (471,"23","Ankpa"), (472,"23","Bassa"), (473,"23","Dekina"), (474,"23","Ibaji"), (475,"23","Idah"), (476,"23","Igalamela Odolu"), (477,"23","Ijumu"), (478,"23","Kabba/Bunu"), (479,"23","Kogi"), (480,"23","Lokoja"), (481,"23","Mopa Muro"), (482,"23","Ofu"), (483,"23","Ogori/Magongo"), (484,"23","Okehi"), (485,"23","Okene"), (486,"23","Olamaboro"), (487,"23","Omala"), (488,"23","Yagba East"), (489,"23","Yagba West"), (490,"24","Asa"), (491,"24","Baruten"), (492,"24","Edu"), (493,"24","Ekiti"), (494,"24","Ifelodun"), (495,"24","Ilorin East"), (496,"24","Ilorin South"), (497,"24","Ilorin West"), (498,"24","Irepodun"), (499,"24","Isin"), (500,"24","Kaiama"), (501,"24","Moro"), (502,"24","Offa"), (503,"24","Oke Ero"), (504,"24","Oyun"), (505,"24","Pategi"), (506,"25","Agege"), (507,"25","Ajeromi-Ifelodun"), (508,"25","Alimosho"), (509,"25","Amuwo-Odofin"), (510,"25","Apapa"), (511,"25","Badagry"), (512,"25","Epe"), (513,"25","Eti Osa"), (514,"25","Ibeju-Lekki"), (515,"25","Ifako-Ijaiye"), (516,"25","Ikeja"), (517,"25","Ikorodu"), (518,"25","Kosofe"), (519,"25","Lagos Island"), (520,"25","Lagos Mainland"), (521,"25","Mushin"), (522,"25","Ojo"), (523,"25","Oshodi-Isolo"), (524,"25","Shomolu"), (525,"25","Surulere"), (526,"26","Akwanga"), (527,"26","Awe"), (528,"26","Doma"), (529,"26","Karu"), (530,"26","Keana"), (531,"26","Keffi"), (532,"26","Kokona"), (533,"26","Lafia"), (534,"26","Nasarawa"), (535,"26","Nasarawa Egon"), (536,"26","Obi"), (537,"26","Toto"), (538,"26","Wamba"), (539,"27","Agaie"), (540,"27","Agwara"), (541,"27","Bida"), (542,"27","Borgu"), (543,"27","Bosso"), (544,"27","Chanchaga"), (545,"27","Edati"), (546,"27","Gbako"), (547,"27","Gurara"), (548,"27","Katcha"), (549,"27","Kontagora"), (550,"27","Lapai"), (551,"27","Lavun"), (552,"27","Magama"), (553,"27","Mariga"), (554,"27","Mashegu"), (555,"27","Mokwa"), (556,"27","Moya"), (557,"27","Paikoro"), (558,"27","Rafi"), (559,"27","Rijau"), (560,"27","Shiroro"), (561,"27","Suleja"), (562,"27","Tafa"), (563,"27","Wushishi"), (564,"28","Abeokuta North"), (565,"28","Abeokuta South"), (566,"28","Ado-Odo/Ota"), (567,"28","Egbado North"), (568,"28","Egbado South"), (569,"28","Ewekoro"), (570,"28","Ifo"), (571,"28","Ijebu East"), (572,"28","Ijebu North"), (573,"28","Ijebu North East"), (574,"28","Ijebu Ode"), (575,"28","Ikenne"), (576,"28","Imeko Afon"), (577,"28","Ipokia"), (578,"28","Obafemi Owode"), (579,"28","Odeda"), (580,"28","Odogbolu"), (581,"28","Ogun Waterside"), (582,"28","Remo North"), (583,"28","Shagamu"), (584,"29","Akoko North-East"), (585,"29","Akoko North-West"), (586,"29","Akoko South-West"), (587,"29","Akoko South-East"), (588,"29","Akure North"), (589,"29","Akure South"), (590,"29","Ese Odo"), (591,"29","Idanre"), (592,"29","Ifedore"), (593,"29","Ilaje"), (594,"29","Ile Oluji/Okeigbo"), (595,"29","Irele"), (596,"29","Odigbo"), (597,"29","Okitipupa"), (598,"29","Ondo East"), (599,"29","Ondo West"), (600,"29","Ose"), (601,"29","Owo"), (602,"30","Atakunmosa East"), (603,"30","Atakunmosa West"), (604,"30","Aiyedaade"), (605,"30","Aiyedire"), (606,"30","Boluwaduro"), (607,"30","Boripe"), (608,"30","Ede North"), (609,"30","Ede South"), (610,"30","Ife Central"), (611,"30","Ife East"), (612,"30","Ife North"), (613,"30","Ife South"), (614,"30","Egbedore"), (615,"30","Ejigbo"), (616,"30","Ifedayo"), (617,"30","Ifelodun"), (618,"30","Ila"), (619,"30","Ilesa East"), (620,"30","Ilesa West"), (621,"30","Irepodun"), (622,"30","Irewole"), (623,"30","Isokan"), (624,"30","Iwo"), (625,"30","Obokun"), (626,"30","Odo Otin"), (627,"30","Ola Oluwa"), (628,"30","Olorunda"), (629,"30","Oriade"), (630,"30","Orolu"), (631,"30","Osogbo"), (632,"31","Afijio"), (633,"31","Akinyele"), (634,"31","Atiba"), (635,"31","Atisbo"), (636,"31","Egbeda"), (637,"31","Ibadan North"), (638,"31","Ibadan North-East"), (639,"31","Ibadan North-West"), (640,"31","Ibadan South-East"), (641,"31","Ibadan South-West"), (642,"31","Ibarapa Central"), (643,"31","Ibarapa East"), (644,"31","Ibarapa North"), (645,"31","Ido"), (646,"31","Irepo"), (647,"31","Iseyin"), (648,"31","Itesiwaju"), (649,"31","Iwajowa"), (650,"31","Kajola"), (651,"31","Lagelu"), (652,"31","Ogbomosho North"), (653,"31","Ogbomosho South"), (654,"31","Ogo Oluwa"), (655,"31","Olorunsogo"), (656,"31","Oluyole"), (657,"31","Ona Ara"), (658,"31","Orelope"), (659,"31","Ori Ire"), (660,"31","Oyo"), (661,"31","Oyo East"), (662,"31","Saki East"), (663,"31","Saki West"), (664,"31","Surulere"), (665,"32","Bokkos"), (666,"32","Barkin Ladi"), (667,"32","Bassa"), (668,"32","Jos East"), (669,"32","Jos North"), (670,"32","Jos South"), (671,"32","Kanam"), (672,"32","Kanke"), (673,"32","Langtang South"), (674,"32","Langtang North"), (675,"32","Mangu"), (676,"32","Mikang"), (677,"32","Pankshin"), (678,"32","Qua'an Pan"), (679,"32","Riyom"), (680,"32","Shendam"), (681,"32","Wase"), (682,"33","Abua/Odual"), (683,"33","Ahoada East"), (684,"33","Ahoada West"), (685,"33","Akuku-Toru"), (686,"33","Andoni"), (687,"33","Asari-Toru"), (688,"33","Bonny"), (689,"33","Degema"), (690,"33","Eleme"), (691,"33","Emuoha"), (692,"33","Etche"), (693,"33","Gokana"), (694,"33","Ikwerre"), (695,"33","Khana"), (696,"33","Obio/Akpor"), (697,"33","Ogba/Egbema/Ndoni"), (698,"33","Ogu/Bolo"), (699,"33","Okrika"), (700,"33","Omuma"), (701,"33","Opobo/Nkoro"), (702,"33","Oyigbo"), (703,"33","Port Harcourt"), (704,"33","Tai"), (705,"34","Binji"), (706,"34","Bodinga"), (707,"34","Dange Shuni"), (708,"34","Gada"), (709,"34","Goronyo"), (710,"34","Gudu"), (711,"34","Gwadabawa"), (712,"34","Illela"), (713,"34","Isa"), (714,"34","Kebbe"), (715,"34","Kware"), (716,"34","Rabah"), (717,"34","Sabon Birni"), (718,"34","Shagari"), (719,"34","Silame"), (720,"34","Sokoto North"), (721,"34","Sokoto South"), (722,"34","Tambuwal"), (723,"34","Tangaza"), (724,"34","Tureta"), (725,"34","Wamako"), (726,"34","Wurno"), (727,"34","Yabo"), (728,"35","Ardo Kola"), (729,"35","Bali"), (730,"35","Donga"), (731,"35","Gashaka"), (732,"35","Gassol"), (733,"35","Ibi"), (734,"35","Jalingo"), (735,"35","Karim Lamido"), (736,"35","Kumi"), (737,"35","Lau"), (738,"35","Sardauna"), (739,"35","Takum"), (740,"35","Ussa"), (741,"35","Wukari"), (742,"35","Yorro"), (743,"35","Zing"), (744,"36","Bade"), (745,"36","Bursari"), (746,"36","Damaturu"), (747,"36","Fika"), (748,"36","Fune"), (749,"36","Geidam"), (750,"36","Gujba"), (751,"36","Gulani"), (752,"36","Jakusko"), (753,"36","Karasuwa"), (754,"36","Machina"), (755,"36","Nangere"), (756,"36","Nguru"), (757,"36","Potiskum"), (758,"36","Tarmuwa"), (759,"36","Yunusari"), (760,"36","Yusufari"), (761,"37","Anka"), (762,"37","Bakura"), (763,"37","Birnin Magaji/Kiyaw"), (764,"37","Bukkuyum"), (765,"37","Bungudu"), (766,"37","Gummi"), (767,"37","Gusau"), (768,"37","Kaura Namoda"), (769,"37","Maradun"), (770,"37","Maru"), (771,"37","Shinkafi"), (772,"37","Talata Mafara"), (773,"37","Chafe"), (774,"37","Zurmi");

JSON

[{"states":{"name":"Abia State","id":1,"locals":[{"name":"Aba North","id":1},{"name":"Aba South","id":2},{"name":"Arochukwu","id":3},{"name":"Bende","id":4},{"name":"Ikwuano","id":5},{"name":"Isiala Ngwa North","id":6},{"name":"Isiala Ngwa South","id":7},{"name":"Isuikwuato","id":8},{"name":"Obi Ngwa","id":9},{"name":"Ohafia","id":10},{"name":"Osisioma","id":11},{"name":"Ugwunagbo","id":12},{"name":"Ukwa East","id":13},{"name":"Ukwa West","id":14},{"name":"Umuahia North","id":15},{"name":"Umuahia South","id":16},{"name":"Umu Nneochi","id":17}]}},{"states":{"name":"Adamawa State","id":2,"locals":[{"name":"Demsa","id":18},{"name":"Fufure","id":19},{"name":"Ganye","id":20},{"name":"Gayuk","id":21},{"name":"Gombi","id":22},{"name":"Grie","id":23},{"name":"Hong","id":24},{"name":"Jada","id":25},{"name":"Lamurde","id":26},{"name":"Madagali","id":27},{"name":"Maiha","id":28},{"name":"Mayo Belwa","id":29},{"name":"Michika","id":30},{"name":"Mubi North","id":31},{"name":"Mubi South","id":32},{"name":"Numan","id":33},{"name":"Shelleng","id":34},{"name":"Song","id":35},{"name":"Toungo","id":36},{"name":"Yola North","id":37},{"name":"Yola South","id":38}]}},{"states":{"name":"Akwa Ibom State","id":3,"locals":[{"name":"Abak","id":39},{"name":"Eastern Obolo","id":40},{"name":"Eket","id":41},{"name":"Esit Eket","id":42},{"name":"Essien Udim","id":43},{"name":"Etim Ekpo","id":44},{"name":"Etinan","id":45},{"name":"Ibeno","id":46},{"name":"Ibesikpo Asutan","id":47},{"name":"Ibiono-Ibom","id":48},{"name":"Ika","id":49},{"name":"Ikono","id":50},{"name":"Ikot Abasi","id":51},{"name":"Ikot Ekpene","id":52},{"name":"Ini","id":53},{"name":"Itu","id":54},{"name":"Mbo","id":55},{"name":"Mkpat-Enin","id":56},{"name":"Nsit-Atai","id":57},{"name":"Nsit-Ibom","id":58},{"name":"Nsit-Ubium","id":59},{"name":"Obot Akara","id":60},{"name":"Okobo","id":61},{"name":"Onna","id":62},{"name":"Oron","id":63},{"name":"Oruk Anam","id":64},{"name":"Udung-Uko","id":65},{"name":"Ukanafun","id":66},{"name":"Uruan","id":67},{"name":"Urue-Offong\/Oruko","id":68},{"name":"Uyo","id":69}]}},{"states":{"name":"Anambra State","id":4,"locals":[{"name":"Aguata","id":70},{"name":"Anambra East","id":71},{"name":"Anambra West","id":72},{"name":"Anaocha","id":73},{"name":"Awka North","id":74},{"name":"Awka South","id":75},{"name":"Ayamelum","id":76},{"name":"Dunukofia","id":77},{"name":"Ekwusigo","id":78},{"name":"Idemili North","id":79},{"name":"Idemili South","id":80},{"name":"Ihiala","id":81},{"name":"Njikoka","id":82},{"name":"Nnewi North","id":83},{"name":"Nnewi South","id":84},{"name":"Ogbaru","id":85},{"name":"Onitsha North","id":86},{"name":"Onitsha South","id":87},{"name":"Orumba North","id":88},{"name":"Orumba South","id":89},{"name":"Oyi","id":90}]}},{"states":{"name":"Bauchi State","id":5,"locals":[{"name":"Alkaleri","id":91},{"name":"Bauchi","id":92},{"name":"Bogoro","id":93},{"name":"Damban","id":94},{"name":"Darazo","id":95},{"name":"Dass","id":96},{"name":"Gamawa","id":97},{"name":"Ganjuwa","id":98},{"name":"Giade","id":99},{"name":"Itas\/Gadau","id":100},{"name":"Jama'are","id":101},{"name":"Katagum","id":102},{"name":"Kirfi","id":103},{"name":"Misau","id":104},{"name":"Ningi","id":105},{"name":"Shira","id":106},{"name":"Tafawa Balewa","id":107},{"name":"Toro","id":108},{"name":"Warji","id":109},{"name":"Zaki","id":110}]}},{"states":{"name":"Bayelsa State","id":6,"locals":[{"name":"Brass","id":111},{"name":"Ekeremor","id":112},{"name":"Kolokuma\/Opokuma","id":113},{"name":"Nembe","id":114},{"name":"Ogbia","id":115},{"name":"Sagbama","id":116},{"name":"Southern Ijaw","id":117},{"name":"Yenagoa","id":118}]}},{"states":{"name":"Benue State","id":7,"locals":[{"name":"Agatu","id":119},{"name":"Apa","id":120},{"name":"Ado","id":121},{"name":"Buruku","id":122},{"name":"Gboko","id":123},{"name":"Guma","id":124},{"name":"Gwer East","id":125},{"name":"Gwer West","id":126},{"name":"Katsina-Ala","id":127},{"name":"Konshisha","id":128},{"name":"Kwande","id":129},{"name":"Logo","id":130},{"name":"Makurdi","id":131},{"name":"Obi","id":132},{"name":"Ogbadibo","id":133},{"name":"Ohimini","id":134},{"name":"Oju","id":135},{"name":"Okpokwu","id":136},{"name":"Oturkpo","id":137},{"name":"Tarka","id":138},{"name":"Ukum","id":139},{"name":"Ushongo","id":140},{"name":"Vandeikya","id":141}]}},{"states":{"name":"Borno State","id":8,"locals":[{"name":"Abadam","id":142},{"name":"Askira\/Uba","id":143},{"name":"Bama","id":144},{"name":"Bayo","id":145},{"name":"Biu","id":146},{"name":"Chibok","id":147},{"name":"Damboa","id":148},{"name":"Dikwa","id":149},{"name":"Gubio","id":150},{"name":"Guzamala","id":151},{"name":"Gwoza","id":152},{"name":"Hawul","id":153},{"name":"Jere","id":154},{"name":"Kaga","id":155},{"name":"Kala\/Balge","id":156},{"name":"Konduga","id":157},{"name":"Kukawa","id":158},{"name":"Kwaya Kusar","id":159},{"name":"Mafa","id":160},{"name":"Magumeri","id":161},{"name":"Maiduguri","id":162},{"name":"Marte","id":163},{"name":"Mobbar","id":164},{"name":"Monguno","id":165},{"name":"Ngala","id":166},{"name":"Nganzai","id":167},{"name":"Shani","id":168}]}},{"states":{"name":"Cross River State","id":9,"locals":[{"name":"Abi","id":169},{"name":"Akamkpa","id":170},{"name":"Akpabuyo","id":171},{"name":"Bakassi","id":172},{"name":"Bekwarra","id":173},{"name":"Biase","id":174},{"name":"Boki","id":175},{"name":"Calabar Municipal","id":176},{"name":"Calabar South","id":177},{"name":"Etung","id":178},{"name":"Ikom","id":179},{"name":"Obanliku","id":180},{"name":"Obubra","id":181},{"name":"Obudu","id":182},{"name":"Odukpani","id":183},{"name":"Ogoja","id":184},{"name":"Yakuur","id":185},{"name":"Yala","id":186}]}},{"states":{"name":"Delta State","id":10,"locals":[{"name":"Aniocha North","id":187},{"name":"Aniocha South","id":188},{"name":"Bomadi","id":189},{"name":"Burutu","id":190},{"name":"Ethiope East","id":191},{"name":"Ethiope West","id":192},{"name":"Ika North East","id":193},{"name":"Ika South","id":194},{"name":"Isoko North","id":195},{"name":"Isoko South","id":196},{"name":"Ndokwa East","id":197},{"name":"Ndokwa West","id":198},{"name":"Okpe","id":199},{"name":"Oshimili North","id":200},{"name":"Oshimili South","id":201},{"name":"Patani","id":202},{"name":"Sapele","id":203},{"name":"Udu","id":204},{"name":"Ughelli North","id":205},{"name":"Ughelli South","id":206},{"name":"Ukwuani","id":207},{"name":"Uvwie","id":208},{"name":"Warri North","id":209},{"name":"Warri South","id":210},{"name":"Warri South West","id":211}]}},{"states":{"name":"Ebonyi State","id":11,"locals":[{"name":"Abakaliki","id":212},{"name":"Afikpo North","id":213},{"name":"Afikpo South","id":214},{"name":"Ebonyi","id":215},{"name":"Ezza North","id":216},{"name":"Ezza South","id":217},{"name":"Ikwo","id":218},{"name":"Ishielu","id":219},{"name":"Ivo","id":220},{"name":"Izzi","id":221},{"name":"Ohaozara","id":222},{"name":"Ohaukwu","id":223},{"name":"Onicha","id":224}]}},{"states":{"name":"Edo State","id":12,"locals":[{"name":"Akoko-Edo","id":225},{"name":"Egor","id":226},{"name":"Esan Central","id":227},{"name":"Esan North-East","id":228},{"name":"Esan South-East","id":229},{"name":"Esan West","id":230},{"name":"Etsako Central","id":231},{"name":"Etsako East","id":232},{"name":"Etsako West","id":233},{"name":"Igueben","id":234},{"name":"Ikpoba Okha","id":235},{"name":"Orhionmwon","id":236},{"name":"Oredo","id":237},{"name":"Ovia North-East","id":238},{"name":"Ovia South-West","id":239},{"name":"Owan East","id":240},{"name":"Owan West","id":241},{"name":"Uhunmwonde","id":242}]}},{"states":{"name":"Ekiti State","id":13,"locals":[{"name":"Ado Ekiti","id":243},{"name":"Efon","id":244},{"name":"Ekiti East","id":245},{"name":"Ekiti South-West","id":246},{"name":"Ekiti West","id":247},{"name":"Emure","id":248},{"name":"Gbonyin","id":249},{"name":"Ido Osi","id":250},{"name":"Ijero","id":251},{"name":"Ikere","id":252},{"name":"Ikole","id":253},{"name":"Ilejemeje","id":254},{"name":"Irepodun\/Ifelodun","id":255},{"name":"Ise\/Orun","id":256},{"name":"Moba","id":257},{"name":"Oye","id":258}]}},{"states":{"name":"Enugu State","id":14,"locals":[{"name":"Aninri","id":259},{"name":"Awgu","id":260},{"name":"Enugu East","id":261},{"name":"Enugu North","id":262},{"name":"Enugu South","id":263},{"name":"Ezeagu","id":264},{"name":"Igbo Etiti","id":265},{"name":"Igbo Eze North","id":266},{"name":"Igbo Eze South","id":267},{"name":"Isi Uzo","id":268},{"name":"Nkanu East","id":269},{"name":"Nkanu West","id":270},{"name":"Nsukka","id":271},{"name":"Oji River","id":272},{"name":"Udenu","id":273},{"name":"Udi","id":274},{"name":"Uzo Uwani","id":275}]}},{"states":{"name":"FCT","id":15,"locals":[{"name":"Abaji","id":276},{"name":"Bwari","id":277},{"name":"Gwagwalada","id":278},{"name":"Kuje","id":279},{"name":"Kwali","id":280},{"name":"Municipal Area Council","id":281}]}},{"states":{"name":"Gombe State","id":16,"locals":[{"name":"Akko","id":282},{"name":"Balanga","id":283},{"name":"Billiri","id":284},{"name":"Dukku","id":285},{"name":"Funakaye","id":286},{"name":"Gombe","id":287},{"name":"Kaltungo","id":288},{"name":"Kwami","id":289},{"name":"Nafada","id":290},{"name":"Shongom","id":291},{"name":"Yamaltu\/Deba","id":292}]}},{"states":{"name":"Imo State","id":17,"locals":[{"name":"Aboh Mbaise","id":293},{"name":"Ahiazu Mbaise","id":294},{"name":"Ehime Mbano","id":295},{"name":"Ezinihitte","id":296},{"name":"Ideato North","id":297},{"name":"Ideato South","id":298},{"name":"Ihitte\/Uboma","id":299},{"name":"Ikeduru","id":300},{"name":"Isiala Mbano","id":301},{"name":"Isu","id":302},{"name":"Mbaitoli","id":303},{"name":"Ngor Okpala","id":304},{"name":"Njaba","id":305},{"name":"Nkwerre","id":306},{"name":"Nwangele","id":307},{"name":"Obowo","id":308},{"name":"Oguta","id":309},{"name":"Ohaji\/Egbema","id":310},{"name":"Okigwe","id":311},{"name":"Orlu","id":312},{"name":"Orsu","id":313},{"name":"Oru East","id":314},{"name":"Oru West","id":315},{"name":"Owerri Municipal","id":316},{"name":"Owerri North","id":317},{"name":"Owerri West","id":318},{"name":"Unuimo","id":319}]}},{"states":{"name":"Jigawa State","id":18,"locals":[{"name":"Auyo","id":320},{"name":"Babura","id":321},{"name":"Biriniwa","id":322},{"name":"Birnin Kudu","id":323},{"name":"Buji","id":324},{"name":"Dutse","id":325},{"name":"Gagarawa","id":326},{"name":"Garki","id":327},{"name":"Gumel","id":328},{"name":"Guri","id":329},{"name":"Gwaram","id":330},{"name":"Gwiwa","id":331},{"name":"Hadejia","id":332},{"name":"Jahun","id":333},{"name":"Kafin Hausa","id":334},{"name":"Kazaure","id":335},{"name":"Kiri Kasama","id":336},{"name":"Kiyawa","id":337},{"name":"Kaugama","id":338},{"name":"Maigatari","id":339},{"name":"Malam Madori","id":340},{"name":"Miga","id":341},{"name":"Ringim","id":342},{"name":"Roni","id":343},{"name":"Sule Tankarkar","id":344},{"name":"Taura","id":345},{"name":"Yankwashi","id":346}]}},{"states":{"name":"Kaduna State","id":19,"locals":[{"name":"Birnin Gwari","id":347},{"name":"Chikun","id":348},{"name":"Giwa","id":349},{"name":"Igabi","id":350},{"name":"Ikara","id":351},{"name":"Jaba","id":352},{"name":"Jema'a","id":353},{"name":"Kachia","id":354},{"name":"Kaduna North","id":355},{"name":"Kaduna South","id":356},{"name":"Kagarko","id":357},{"name":"Kajuru","id":358},{"name":"Kaura","id":359},{"name":"Kauru","id":360},{"name":"Kubau","id":361},{"name":"Kudan","id":362},{"name":"Lere","id":363},{"name":"Makarfi","id":364},{"name":"Sabon Gari","id":365},{"name":"Sanga","id":366},{"name":"Soba","id":367},{"name":"Zangon Kataf","id":368},{"name":"Zaria","id":369}]}},{"states":{"name":"Kano State","id":20,"locals":[{"name":"Ajingi","id":370},{"name":"Albasu","id":371},{"name":"Bagwai","id":372},{"name":"Bebeji","id":373},{"name":"Bichi","id":374},{"name":"Bunkure","id":375},{"name":"Dala","id":376},{"name":"Dambatta","id":377},{"name":"Dawakin Kudu","id":378},{"name":"Dawakin Tofa","id":379},{"name":"Doguwa","id":380},{"name":"Fagge","id":381},{"name":"Gabasawa","id":382},{"name":"Garko","id":383},{"name":"Garun Mallam","id":384},{"name":"Gaya","id":385},{"name":"Gezawa","id":386},{"name":"Gwale","id":387},{"name":"Gwarzo","id":388},{"name":"Kabo","id":389},{"name":"Kano Municipal","id":390},{"name":"Karaye","id":391},{"name":"Kibiya","id":392},{"name":"Kiru","id":393},{"name":"Kumbotso","id":394},{"name":"Kunchi","id":395},{"name":"Kura","id":396},{"name":"Madobi","id":397},{"name":"Makoda","id":398},{"name":"Minjibir","id":399},{"name":"Nasarawa","id":400},{"name":"Rano","id":401},{"name":"Rimin Gado","id":402},{"name":"Rogo","id":403},{"name":"Shanono","id":404},{"name":"Sumaila","id":405},{"name":"Takai","id":406},{"name":"Tarauni","id":407},{"name":"Tofa","id":408},{"name":"Tsanyawa","id":409},{"name":"Tudun Wada","id":410},{"name":"Ungogo","id":411},{"name":"Warawa","id":412},{"name":"Wudil","id":413}]}},{"states":{"name":"Katsina State","id":21,"locals":[{"name":"Bakori","id":414},{"name":"Batagarawa","id":415},{"name":"Batsari","id":416},{"name":"Baure","id":417},{"name":"Bindawa","id":418},{"name":"Charanchi","id":419},{"name":"Dandume","id":420},{"name":"Danja","id":421},{"name":"Dan Musa","id":422},{"name":"Daura","id":423},{"name":"Dutsi","id":424},{"name":"Dutsin Ma","id":425},{"name":"Faskari","id":426},{"name":"Funtua","id":427},{"name":"Ingawa","id":428},{"name":"Jibia","id":429},{"name":"Kafur","id":430},{"name":"Kaita","id":431},{"name":"Kankara","id":432},{"name":"Kankia","id":433},{"name":"Katsina","id":434},{"name":"Kurfi","id":435},{"name":"Kusada","id":436},{"name":"Mai'Adua","id":437},{"name":"Malumfashi","id":438},{"name":"Mani","id":439},{"name":"Mashi","id":440},{"name":"Matazu","id":441},{"name":"Musawa","id":442},{"name":"Rimi","id":443},{"name":"Sabuwa","id":444},{"name":"Safana","id":445},{"name":"Sandamu","id":446},{"name":"Zango","id":447}]}},{"states":{"name":"Kebbi State","id":22,"locals":[{"name":"Aleiro","id":448},{"name":"Arewa Dandi","id":449},{"name":"Argungu","id":450},{"name":"Augie","id":451},{"name":"Bagudo","id":452},{"name":"Birnin Kebbi","id":453},{"name":"Bunza","id":454},{"name":"Dandi","id":455},{"name":"Fakai","id":456},{"name":"Gwandu","id":457},{"name":"Jega","id":458},{"name":"Kalgo","id":459},{"name":"Koko\/Besse","id":460},{"name":"Maiyama","id":461},{"name":"Ngaski","id":462},{"name":"Sakaba","id":463},{"name":"Shanga","id":464},{"name":"Suru","id":465},{"name":"Wasagu\/Danko","id":466},{"name":"Yauri","id":467},{"name":"Zuru","id":468}]}},{"states":{"name":"Kogi State","id":23,"locals":[{"name":"Adavi","id":469},{"name":"Ajaokuta","id":470},{"name":"Ankpa","id":471},{"name":"Bassa","id":472},{"name":"Dekina","id":473},{"name":"Ibaji","id":474},{"name":"Idah","id":475},{"name":"Igalamela Odolu","id":476},{"name":"Ijumu","id":477},{"name":"Kabba\/Bunu","id":478},{"name":"Kogi","id":479},{"name":"Lokoja","id":480},{"name":"Mopa Muro","id":481},{"name":"Ofu","id":482},{"name":"Ogori\/Magongo","id":483},{"name":"Okehi","id":484},{"name":"Okene","id":485},{"name":"Olamaboro","id":486},{"name":"Omala","id":487},{"name":"Yagba East","id":488},{"name":"Yagba West","id":489}]}},{"states":{"name":"Kwara State","id":24,"locals":[{"name":"Asa","id":490},{"name":"Baruten","id":491},{"name":"Edu","id":492},{"name":"Ekiti","id":493},{"name":"Ifelodun","id":494},{"name":"Ilorin East","id":495},{"name":"Ilorin South","id":496},{"name":"Ilorin West","id":497},{"name":"Irepodun","id":498},{"name":"Isin","id":499},{"name":"Kaiama","id":500},{"name":"Moro","id":501},{"name":"Offa","id":502},{"name":"Oke Ero","id":503},{"name":"Oyun","id":504},{"name":"Pategi","id":505}]}},{"states":{"name":"Lagos State","id":25,"locals":[{"name":"Agege","id":506},{"name":"Ajeromi-Ifelodun","id":507},{"name":"Alimosho","id":508},{"name":"Amuwo-Odofin","id":509},{"name":"Apapa","id":510},{"name":"Badagry","id":511},{"name":"Epe","id":512},{"name":"Eti Osa","id":513},{"name":"Ibeju-Lekki","id":514},{"name":"Ifako-Ijaiye","id":515},{"name":"Ikeja","id":516},{"name":"Ikorodu","id":517},{"name":"Kosofe","id":518},{"name":"Lagos Island","id":519},{"name":"Lagos Mainland","id":520},{"name":"Mushin","id":521},{"name":"Ojo","id":522},{"name":"Oshodi-Isolo","id":523},{"name":"Shomolu","id":524},{"name":"Surulere","id":525}]}},{"states":{"name":"Nasarawa State","id":26,"locals":[{"name":"Akwanga","id":526},{"name":"Awe","id":527},{"name":"Doma","id":528},{"name":"Karu","id":529},{"name":"Keana","id":530},{"name":"Keffi","id":531},{"name":"Kokona","id":532},{"name":"Lafia","id":533},{"name":"Nasarawa","id":534},{"name":"Nasarawa Egon","id":535},{"name":"Obi","id":536},{"name":"Toto","id":537},{"name":"Wamba","id":538}]}},{"states":{"name":"Niger State","id":27,"locals":[{"name":"Agaie","id":539},{"name":"Agwara","id":540},{"name":"Bida","id":541},{"name":"Borgu","id":542},{"name":"Bosso","id":543},{"name":"Chanchaga","id":544},{"name":"Edati","id":545},{"name":"Gbako","id":546},{"name":"Gurara","id":547},{"name":"Katcha","id":548},{"name":"Kontagora","id":549},{"name":"Lapai","id":550},{"name":"Lavun","id":551},{"name":"Magama","id":552},{"name":"Mariga","id":553},{"name":"Mashegu","id":554},{"name":"Mokwa","id":555},{"name":"Moya","id":556},{"name":"Paikoro","id":557},{"name":"Rafi","id":558},{"name":"Rijau","id":559},{"name":"Shiroro","id":560},{"name":"Suleja","id":561},{"name":"Tafa","id":562},{"name":"Wushishi","id":563}]}},{"states":{"name":"Ogun State","id":28,"locals":[{"name":"Abeokuta North","id":564},{"name":"Abeokuta South","id":565},{"name":"Ado-Odo\/Ota","id":566},{"name":"Egbado North","id":567},{"name":"Egbado South","id":568},{"name":"Ewekoro","id":569},{"name":"Ifo","id":570},{"name":"Ijebu East","id":571},{"name":"Ijebu North","id":572},{"name":"Ijebu North East","id":573},{"name":"Ijebu Ode","id":574},{"name":"Ikenne","id":575},{"name":"Imeko Afon","id":576},{"name":"Ipokia","id":577},{"name":"Obafemi Owode","id":578},{"name":"Odeda","id":579},{"name":"Odogbolu","id":580},{"name":"Ogun Waterside","id":581},{"name":"Remo North","id":582},{"name":"Shagamu","id":583}]}},{"states":{"name":"Ondo State","id":29,"locals":[{"name":"Akoko North-East","id":584},{"name":"Akoko North-West","id":585},{"name":"Akoko South-West","id":586},{"name":"Akoko South-East","id":587},{"name":"Akure North","id":588},{"name":"Akure South","id":589},{"name":"Ese Odo","id":590},{"name":"Idanre","id":591},{"name":"Ifedore","id":592},{"name":"Ilaje","id":593},{"name":"Ile Oluji\/Okeigbo","id":594},{"name":"Irele","id":595},{"name":"Odigbo","id":596},{"name":"Okitipupa","id":597},{"name":"Ondo East","id":598},{"name":"Ondo West","id":599},{"name":"Ose","id":600},{"name":"Owo","id":601}]}},{"states":{"name":"Osun State","id":30,"locals":[{"name":"Atakunmosa East","id":602},{"name":"Atakunmosa West","id":603},{"name":"Aiyedaade","id":604},{"name":"Aiyedire","id":605},{"name":"Boluwaduro","id":606},{"name":"Boripe","id":607},{"name":"Ede North","id":608},{"name":"Ede South","id":609},{"name":"Ife Central","id":610},{"name":"Ife East","id":611},{"name":"Ife North","id":612},{"name":"Ife South","id":613},{"name":"Egbedore","id":614},{"name":"Ejigbo","id":615},{"name":"Ifedayo","id":616},{"name":"Ifelodun","id":617},{"name":"Ila","id":618},{"name":"Ilesa East","id":619},{"name":"Ilesa West","id":620},{"name":"Irepodun","id":621},{"name":"Irewole","id":622},{"name":"Isokan","id":623},{"name":"Iwo","id":624},{"name":"Obokun","id":625},{"name":"Odo Otin","id":626},{"name":"Ola Oluwa","id":627},{"name":"Olorunda","id":628},{"name":"Oriade","id":629},{"name":"Orolu","id":630},{"name":"Osogbo","id":631}]}},{"states":{"name":"Oyo State","id":31,"locals":[{"name":"Afijio","id":632},{"name":"Akinyele","id":633},{"name":"Atiba","id":634},{"name":"Atisbo","id":635},{"name":"Egbeda","id":636},{"name":"Ibadan North","id":637},{"name":"Ibadan North-East","id":638},{"name":"Ibadan North-West","id":639},{"name":"Ibadan South-East","id":640},{"name":"Ibadan South-West","id":641},{"name":"Ibarapa Central","id":642},{"name":"Ibarapa East","id":643},{"name":"Ibarapa North","id":644},{"name":"Ido","id":645},{"name":"Irepo","id":646},{"name":"Iseyin","id":647},{"name":"Itesiwaju","id":648},{"name":"Iwajowa","id":649},{"name":"Kajola","id":650},{"name":"Lagelu","id":651},{"name":"Ogbomosho North","id":652},{"name":"Ogbomosho South","id":653},{"name":"Ogo Oluwa","id":654},{"name":"Olorunsogo","id":655},{"name":"Oluyole","id":656},{"name":"Ona Ara","id":657},{"name":"Orelope","id":658},{"name":"Ori Ire","id":659},{"name":"Oyo","id":660},{"name":"Oyo East","id":661},{"name":"Saki East","id":662},{"name":"Saki West","id":663},{"name":"Surulere","id":664}]}},{"states":{"name":"Plateau State","id":32,"locals":[{"name":"Bokkos","id":665},{"name":"Barkin Ladi","id":666},{"name":"Bassa","id":667},{"name":"Jos East","id":668},{"name":"Jos North","id":669},{"name":"Jos South","id":670},{"name":"Kanam","id":671},{"name":"Kanke","id":672},{"name":"Langtang South","id":673},{"name":"Langtang North","id":674},{"name":"Mangu","id":675},{"name":"Mikang","id":676},{"name":"Pankshin","id":677},{"name":"Qua'an Pan","id":678},{"name":"Riyom","id":679},{"name":"Shendam","id":680},{"name":"Wase","id":681}]}},{"states":{"name":"Rivers State","id":33,"locals":[{"name":"Abua\/Odual","id":682},{"name":"Ahoada East","id":683},{"name":"Ahoada West","id":684},{"name":"Akuku-Toru","id":685},{"name":"Andoni","id":686},{"name":"Asari-Toru","id":687},{"name":"Bonny","id":688},{"name":"Degema","id":689},{"name":"Eleme","id":690},{"name":"Emuoha","id":691},{"name":"Etche","id":692},{"name":"Gokana","id":693},{"name":"Ikwerre","id":694},{"name":"Khana","id":695},{"name":"Obio\/Akpor","id":696},{"name":"Ogba\/Egbema\/Ndoni","id":697},{"name":"Ogu\/Bolo","id":698},{"name":"Okrika","id":699},{"name":"Omuma","id":700},{"name":"Opobo\/Nkoro","id":701},{"name":"Oyigbo","id":702},{"name":"Port Harcourt","id":703},{"name":"Tai","id":704}]}},{"states":{"name":"Sokoto State","id":34,"locals":[{"name":"Binji","id":705},{"name":"Bodinga","id":706},{"name":"Dange Shuni","id":707},{"name":"Gada","id":708},{"name":"Goronyo","id":709},{"name":"Gudu","id":710},{"name":"Gwadabawa","id":711},{"name":"Illela","id":712},{"name":"Isa","id":713},{"name":"Kebbe","id":714},{"name":"Kware","id":715},{"name":"Rabah","id":716},{"name":"Sabon Birni","id":717},{"name":"Shagari","id":718},{"name":"Silame","id":719},{"name":"Sokoto North","id":720},{"name":"Sokoto South","id":721},{"name":"Tambuwal","id":722},{"name":"Tangaza","id":723},{"name":"Tureta","id":724},{"name":"Wamako","id":725},{"name":"Wurno","id":726},{"name":"Yabo","id":727}]}},{"states":{"name":"Taraba State","id":35,"locals":[{"name":"Ardo Kola","id":728},{"name":"Bali","id":729},{"name":"Donga","id":730},{"name":"Gashaka","id":731},{"name":"Gassol","id":732},{"name":"Ibi","id":733},{"name":"Jalingo","id":734},{"name":"Karim Lamido","id":735},{"name":"Kumi","id":736},{"name":"Lau","id":737},{"name":"Sardauna","id":738},{"name":"Takum","id":739},{"name":"Ussa","id":740},{"name":"Wukari","id":741},{"name":"Yorro","id":742},{"name":"Zing","id":743}]}},{"states":{"name":"Yobe State","id":36,"locals":[{"name":"Bade","id":744},{"name":"Bursari","id":745},{"name":"Damaturu","id":746},{"name":"Fika","id":747},{"name":"Fune","id":748},{"name":"Geidam","id":749},{"name":"Gujba","id":750},{"name":"Gulani","id":751},{"name":"Jakusko","id":752},{"name":"Karasuwa","id":753},{"name":"Machina","id":754},{"name":"Nangere","id":755},{"name":"Nguru","id":756},{"name":"Potiskum","id":757},{"name":"Tarmuwa","id":758},{"name":"Yunusari","id":759},{"name":"Yusufari","id":760}]}},{"states":{"name":"Zamfara State","id":37,"locals":[{"name":"Anka","id":761},{"name":"Bakura","id":762},{"name":"Birnin Magaji\/Kiyaw","id":763},{"name":"Bukkuyum","id":764},{"name":"Bungudu","id":765},{"name":"Gummi","id":766},{"name":"Gusau","id":767},{"name":"Kaura Namoda","id":768},{"name":"Maradun","id":769},{"name":"Maru","id":770},{"name":"Shinkafi","id":771},{"name":"Talata Mafara","id":772},{"name":"Chafe","id":773},{"name":"Zurmi","id":774}]}}]
God Bless Nigeria.
Was this article helpful?
Thanks! Your feedback helps us improve tutorials.

You May Also Like...

23 comments:

  1. Thanks a lot...You just saved my ass...

    ReplyDelete
  2. God bless Nigeria and God bless you too.

    ReplyDelete
  3. This is so cool. Nice one. hoping someone would build a web service and extend this

    ReplyDelete
  4. I have already purchase the domain name:

    http://ngquery.com/

    The Aim is to enable developers to send request to the server and get their reply ASAP
    Anyone willing to volunteer to build the site or contribute to it should please reply.

    ReplyDelete
    Replies
    1. What about making it a web service? Love to contribute to it.

      Delete
  5. Thanks for this piece. You just saved a soul.

    ReplyDelete
  6. Where do I add this code to mk it works as php page

    ReplyDelete
    Replies
    1. @Ishaka, download the script The demo code is included, Extract it to you web server root folder and visit the page through your browser.

      Delete
  7. more useful is saving myself tons and tons of typing all the local govts in Nigeria

    ReplyDelete
  8. thanks a bunch this is crazy useful

    ReplyDelete
  9. nice work bro, you saved my time of manual insertion into database

    ReplyDelete
  10. Hi dear. Thanks for this post.

    I discovered that the LGAs are not complete. I look forward to hearing from you. Best Regards

    ReplyDelete
    Replies
    1. I later got the complete list. Let me know hw I can send it to U so U just get it uploaded. Cheers!

      Delete
    2. Thank for that notification, The source is open for contribution. Please may I know which is missing so that it can be added.

      Delete
  11. I appreciate this code alot. I have been thinking about it, God bless you.

    ReplyDelete