Menu

Documentation

Cities by Country

Country Data API provides detailed information about +200 different countries

HTTP GET

https://api.countrydataapi.com/v1/cities/country

Returns all cities of a country.

Each 5 cities returned will consume 1 token.

Query Params

ParameterTypeDescription
apikeyrequired, tokenAuthentication key for the account
countryrequired, id or stringID or name of the country
limitTokenoptional, number1000 (default). Maximum number of tokens you want to spend on this request
langoptional, langen (default). Expected language of the response

Example Response


    [
        {
          id:"d54ba796-1136-4776-9776-537fd5a857c9",
          lang: "en",
          city_name: "Bala Morghab"
        }
      ]