Reference data

Districts for a state

Returns districts for states that require an SRO. States without SRO districts return an empty data array (not a 404).

get/states/{code}/districts

Request

  • Base URL
    https://esahayak.io/api/v1
  • URL
    https://esahayak.io/api/v1/states/{code}/districts
  • Auth
    HTTP bearer

Path parameters

codestring required
Example:PB

Response

District list (empty if this state has no SRO districts).

stateCodestring
countinteger

Example response

{
  "data": [
    {
      "code": "PB-AS",
      "name": "Amritsar"
    }
  ]
}

Changes

No recorded changes to this operation across all 2 revisions of this API.