City List

Use this API to get all city based on state

 

HTTP REQUEST

GET /city/city-list

QUERY STRING PARAMETERS

Field Type Description
stateId
required
integer State ID
q string Search by city name
{
    "success": true,
    "data": {
        "response": {
            "acknowledgement": "Success",
            "data": {
                "cityList": [
                    {
                        "cityId": 1,
                        "name": "Bombuflat"
                    },                  
                ],
                "totalRecords": 1
            },
            "error": {
                "code": "",
                "internal_message": "",
                "moreInfo": []
            }
        }
    }
}
Field Type Description
cityId integer City ID
name string City Name
totalRecords integer count of records returned
Code Description
1001 ‘Missing stateId’
1002 ‘Invalid stateId’

For general error details, click here.