5,415 Nigeria cities and 42 regions, every city with a known population, names translated into 50+ languages, as an installable npm package. Versioned, offline-usable, no API key required.
@geomelon/nigeria on npm Source on GitHub
npm install @geomelon/nigeriaconst nigeria = require('@geomelon/nigeria')
nigeria.cities({ name: '<prefix>' }) // matches primary name or any translation
nigeria.cities({ minPopulation: 1000000 })
nigeria.regions({ name: '<prefix>' })
nigeria.country // country-level fields
nigeria.meta // generatedAt, recordCount, license, sourceLooking for the whole live API instead of a static package — search, autocomplete, coordinate queries, all countries at once? Try Geomelon on RapidAPI.
Dedicated to the public domain under CC0 1.0, matching the license of the underlying Wikidata source. Free for any use, including commercial, with no attribution required.