Skip to main content

City List API

This method returns the cities for a specific country code.

πŸ“ Endpoint​

GET {BaseURL}/common/common/city-list?countryCode=TR
PropertyValue
URI{BaseURL}/common/common/city-list?countryCode={countryCode}
MethodGET
Content-Typeapplication/json

πŸ” Authorization​

Basic Auth is required. Use the API credentials provided by MescoMg.

πŸ“‹ Query Parameters​

ParameterTypeDescription
countryCodeStringCountry code to list cities

No request body is required. If the country code is not recognized, the API can return a generic ResultType / ResultMessage response instead of CityList.

πŸ“₯ Example Response​

{
"Status": {
"Code": 200,
"Description": "Success"
},
"CityList": [
{
"Code": 36,
"Name": "Cam Ranh"
},
{
"Code": 37,
"Name": "Can Tho"
},
{
"Code": 40,
"Name": "cat ba"
}
]
}