46,565 United States cities and 56 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/united-states on npm Source on GitHub
npm install @geomelon/united-statesconst united-states = require('@geomelon/united-states')
united-states.cities({ name: '<prefix>' }) // matches primary name or any translation
united-states.cities({ minPopulation: 1000000 })
united-states.regions({ name: '<prefix>' })
united-states.country // country-level fields
united-states.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. Just want a smaller free file with no install step? See the United States free JSON dataset.
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.