GeoDB Cities

免费增值
Verified
通过 Michael Mogley | 已更新 לפני חודש | Data
人气

9.9 / 10

延迟

56ms

服务等级

100%

Health Check

100%

返回所有讨论

How to get all cities within a country?

Rapid account: Lyckades
Lyckades
לפני 5 שנים

How would I get all or most cities that exist within a country with only the countries country code or country name.

Rapid account: Wirefreethought
wirefreethought Commented לפני 5 שנים

And to get the ID of some country, use the find-countries endpoint. See http://geodb-cities-api.wirefreethought.com/docs/api/find-countries

Rapid account: Wirefreethought
wirefreethought Commented לפני 5 שנים

You can get all cities for a country by leveraging the countryIds param. For example, to get all cities in the United States:

GET /v1/geo/cities?countryIds=US

See https://wirefreethought.github.io/geodb-cities-api-docs/#operation–v1-geo-cities-get

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论