Skip to content
r.

countries-states-cities-database

dr5hn/countries-states-cities-database · Public GitHub repository

🌍 Discover our global repository of countries, states, and cities! 🏙️ Get comprehensive data in JSON, SQL, PSQL, SQLSERVER, MONGODB, SQLITE, XML, YAML, and CSV formats. Access ISO2, ISO3 codes, country code, capital, native language, timezones (for countries), and more. #countries #states #cities

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

countries-states-cities-database live demo screenshot
Captured from the live demo · 2026-11-06

About this project

Author-written excerpt from the project README.

A comprehensive, community-maintained dataset of countries, states, counties, cities, and postcodes — published in 12 formats and free under the Open Database License (attribution required).

Requirements and intended audience

A comprehensive, community-maintained dataset of countries, states, counties, cities, and postcodes — published in 12 formats and free under the Open Database License (attribution required).

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-10-30. Source: https://github.com/dr5hn/countries-states-cities-database/blob/master/README.md

Recorded maintenance information

Last recorded source update: 2026-11-03. Saved release: v3.2-export.10 · 2026-10-05. These dates do not guarantee ongoing maintenance.

Technologies
Python
Licence
ODbL-1.0. Review the declared licence and what it covers before modifying, hosting, or distributing this project.
Demo check
A public page loaded on 2026-11-06. This does not test every feature.

Browse related categories