States

Get List of States

GET ‎https://<domain>/<api prefix>/<version>/get/states/<country_short_code>/

This API endpoint returns all states list based on the country short code specified in the url. Replace in the url to country short code and it must be a valide (country code) string value.

Headers

Name
Type
Description

apikey*

string

apikey

Authorization*

string

Bearer access token

HTTP/1.1 200 OK
Content-Type: application/json

Body:
{
    "status_code": 200,
    "errors": {},
    "data": {
        "countries": [
            {
                "id": <state_id>,
                "code": <state_short_name_code>,
                "name": <state_name>
            }
        ]
    }
}

Sample code

Node

PHP

Last updated

Was this helpful?