Cities

Get list of cities available in a given country.

/cities

GET https://api.terminal.africa/v1/cities

This endpoint allows you to retrieve a list of valid cities available in a specific country.

Query Parameters

NameTypeDescription

country_code*

String

ISO 2 country code

state_code

String

Unique state code

{
    "status": true,
    "message": "Cities in Albania - KU",
    "data": [
        {
            "name": "Bajram Curri",
            "countryCode": "AL",
            "stateCode": "KU",
            "latitude": "42.35734000",
            "longitude": "20.07679000"
        },
        {
            "name": "Krumë",
            "countryCode": "AL",
            "stateCode": "KU",
            "latitude": "42.19694000",
            "longitude": "20.41333000"
        },
        {
            "name": "Kukës",
            "countryCode": "AL",
            "stateCode": "KU",
            "latitude": "42.07694000",
            "longitude": "20.42194000"
        },
        {
            "name": "Rrethi i Hasit",
            "countryCode": "AL",
            "stateCode": "KU",
            "latitude": "42.16667000",
            "longitude": "20.33333000"
        },
        {
            "name": "Rrethi i Kukësit",
            "countryCode": "AL",
            "stateCode": "KU",
            "latitude": "42.00000000",
            "longitude": "20.33333000"
        }
    ]
}

Last updated