v1

latestOpenAPI 3.1.02026-07-24360204.4 KB

State Codes

Use this API to get a list of state codes that you can use in our APIs.

get/v1/constants/states

Query parameters

start_afterstring

The state code after which you want to get details.<br> Use this with the results_per_page for pagination.<br><br>Example: AP

start_beforestring

The state code before which you want to get details.<br> Use this with the results_per_page for pagination.<br><br>Example: AP

results_per_pagestring

The number of results you want to get per API call.<br>Use this with the start_before or start_after parameters for pagination.<ul><li>Default value 10.<li>Maximum value 100.</ul></li>Example: 15

Response

200

objectstring
has_moreboolean

Example response

{
  "object": "list",
  "data": [
    {
      "ID": "AP",
      "Name": "Andhra Pradesh"
    }
  ]
}