GeoDB Cities

フリーミアム
Verified
よって Michael Mogley | 更新済み a month ago | Data
人気

9.9 / 10

レイテンシー

60ms

サービスレベル

100%

Health Check

100%

すべてのディスカッションに戻る

How to get all cities within a country?

Rapid account: Lyckades
Lyckades
5 years ago

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 years ago

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 years ago

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

ディスカッションに参加しましょう-以下にコメントを追加してください:

ログイン/サインアップして新しいコメントを投稿