get list of cities in a region

API Docs by APIMATIC

Get List of Cities in a Region

Use this method to get a list of cities with DIDs available for purchase. Use this method if country has province or states: has_provinces_or_states:true.

This endpoint requires authentication.

GET /buy/countries/{country_id}/regions/{region_id}/cities
  • EXPLORER
  • PARAMETERS
Endpoint Arguments*
Parameters*

The ID of the country.

The ID of a state or province.

Return only locations with the number type specified.

Return only locations with SMS enabled DIDs.

Response Type

Errors

HTTP Status CodeError DescriptionException Class
403
Request failed. The feature is disabled for the account.
curl -X GET -G \
  --url 'https://api.wavix.com/v1/buy/countries/218/regions/30/cities' \
  -H 'Accept: application/json' \
  -d 'appid=appid' \
  -d 'type_filter=geo'