Reference · Source: GSTN · Refreshed daily
Indian State Codes: GST, ISO and Customs List and API
The first two digits of a GSTIN are the state code. The same codes appear on customs documents and invoices.
Request
curl "https://api.eximfetch.com/state-code?state_name=punjab" \ -H "Authorization: Bearer $EXIMFETCH_API_KEY"
Response
Real records from the dataset. Every list endpoint returns the same envelope and supports page and limit.
{
"success": true,
"data": [
{
"state_code": "1",
"state_name": "JAMMU & KASHMIR"
},
{
"state_code": "3",
"state_name": "PUNJAB"
}
],
"pagination": {
"currentPage": 1,
"totalPages": 1,
"totalCount": 2,
"limit": 25,
"hasNextPage": false,
"hasPrevPage": false
}
}More requests
Get All State Codes
Returns all state codes with default pagination
GET /state-codeSearch by State Code
Returns all records where state_code contains "12"
GET /state-code?state_code=12Search by State Name
Returns all records where state_name contains "15"
GET /state-code?state_name=15Multiple Filters with Pagination
Returns filtered records with custom pagination
GET /state-code?state_code=9&page=2&limit=5Combined Filters
Returns records matching multiple criteria
GET /state-code?state_code=10&state_name=14