placedb

Countries

🇨🇳 People's Republic of China 32 administrative divisions

32 first-level administrative divisions — states, provinces, regions or counties, depending on the country — and 24,557 cities and towns, each with latitude and longitude. Public domain, free to download, no API key.

The country

ISO 3166-1
CN · CHN · 156
Capital
Beijing
Continent
Asia
Currency
CNY — renminbi
Calling code
+86
Internet domain
.cn
Divisions
32
Cities and towns
24,557

Divisions

The 32 divisions of People's Republic of China

32 of them carry an ISO 3166-2 code. Counts are cities and towns inside each division.

Division ISO 3166-2 Cities and towns Population
Sichuan CN-SC 2,403 81,100,000
Hebei CN-HE 1,423 74,610,235
Hunan CN-HN 1,322 65,683,722
Henan CN-HA 1,284 94,130,000
Guangdong CN-GD 1,214 126,012,510
Shandong CN-SD 1,196 95,793,065
Anhui CN-AH 1,077 60,300,000
Shaanxi CN-SN 1,066 37,327,378
Guizhou CN-GZ 996 38,562,148
Gansu CN-GS 950 25,575,254
Jiangxi CN-JX 928 44,567,475
Guangxi CN-GX 862 50,126,804
Jiangsu CN-JS 846 84,748,016
Hubei CN-HB 823 57,752,557
Fujian CN-FJ 753 41,540,086
Liaoning CN-LN 712 43,746,323
Yunnan CN-YN 710 47,420,000
Zhejiang CN-ZJ 699 54,426,891
Tibet Autonomous Region CN-XZ 690 3,180,000
Heilongjiang CN-HL 680 38,312,224
Shanxi CN-SX 672 36,500,000
Chongqing CN-CQ 649 32,054,159
Inner Mongolia CN-NM 555 24,706,321
Xinjiang CN-XJ 492 21,813,334
Jilin CN-JL 465 27,462,297
Beijing CN-BJ 253 21,893,095
Tianjin CN-TJ 202 13,866,009
Hainan CN-HI 188 9,171,300
Qinghai CN-QH 154 5,930,000
Shanghai CN-SH 128 24,870,895
Ningxia CN-NX 113 6,301,350
Taiwan CN-TW 0 23,140,000

A further 52 places could not be matched to a division and are listed separately in the API as "unassigned": true.

Get it

Both files, in one request each

# every division of People's Republic of China
curl -s https://api.placedb.org/v1/regions/CN.json

# the cities and towns of one division (id from the file above)
curl -s https://api.placedb.org/v1/cities/CN/<id>.json

No key, no account, no rate limit. The endpoints · try it live.