How would I get all or most cities that exist within a country with only the countries country code or country name.
And to get the ID of some country, use the find-countries endpoint. See http://geodb-cities-api.wirefreethought.com/docs/api/find-countries
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
Join in the discussion - add comment below:
And to get the ID of some country, use the find-countries endpoint. See http://geodb-cities-api.wirefreethought.com/docs/api/find-countries
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