๐Ÿ‡ต๐Ÿ‡ฐ Pakistan cities โ€” free JSON dataset

203 cities in Pakistan, ranked by population, as a single downloadable JSON file. No API key, no rate limit, no sign-up โ€” just a static file you can fetch, cache, or commit straight into your own project.

Data updated: 2026-07-14

Download JSON (29 KB)

Preview

The first few records, largest by population, as they appear in the file:

CityRegionPopulation
KarachiSindh14,910,352
Lahoreโ€”11,126,285
Faisalabadโ€”3,203,846
Rawalpindiโ€”2,098,231
Gujranwalaโ€”2,027,001

Field schema

FieldTypeDescription
idstring (UUID)Geomelon city ID
namestringCity name
populationnumberPopulation
latitudenumberLatitude
longitudenumberLongitude
regionstring | nullRegion/state name

What it's for

A flat, population-ranked file like this is a good fit for offline builds, seed data for a database, a country/city dropdown that doesn't need live search, or a quick lookup table in a script or notebook. It's a static snapshot, not a live feed โ€” there's no search index, no translations, and no guarantee it reflects changes made to Pakistan's administrative boundaries after 2026-07-14.

Need more?

For prefix search, autocomplete, multilingual names, or coordinate-based queries โ€” anything that needs to stay current or searchable โ€” use the API instead of the static file:

curl --request GET \
  --url 'https://geomelon.p.rapidapi.com/cities/search?countryCode=pk&sort=population_desc&limit=10' \
  --header 'x-rapidapi-host: geomelon.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_API_KEY'

Try the API free on RapidAPI

License

This dataset is licensed under CC BY 4.0. You're free to use it for any purpose, including commercially, as long as you credit Geomelon with a link back to this page.

All datasets ยท Cities in Pakistan (API docs & demo)