Skip to content

Pincode Details

Retrieve location details (district, division, region, state) for an Indian postal pincode.

Endpoint

GET /vas-api/v1/pincode-details

Authentication

Requires OAuth2 Bearer token. Get your credentials →

Request

Query parameters

ParameterTypeRequiredDescriptionExample
pincodestringYes6-digit Indian pincode400059

Example request

bash
curl -X GET "https://api.api4business.com/vas-api/v1/pincode-details?pincode=400059" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
python
import requests

response = requests.get(
  "https://api.api4business.com/vas-api/v1/pincode-details",
  params={"pincode": "400059"},
  headers={"Authorization": "Bearer YOUR_ACCESS_TOKEN"}
)
print(response.json())
javascript
const response = await fetch(
  "https://api.api4business.com/vas-api/v1/pincode-details?pincode=400059",
  { headers: { "Authorization": "Bearer YOUR_ACCESS_TOKEN" } }
);
console.log(await response.json());
java
HttpRequest request = HttpRequest.newBuilder()
  .uri(URI.create("https://api.api4business.com/vas-api/v1/pincode-details?pincode=400059"))
  .header("Authorization", "Bearer YOUR_ACCESS_TOKEN")
  .GET()
  .build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());

Response

Success (200)

The body is an array of location records for the pincode.

FieldTypeDescription
body[].pinCodestringThe queried pincode
body[].pinDistrictstringDistrict name
body[].pinDivisionstringPostal division
body[].pinRegionstringPostal region
body[].stateCodestring2-letter state code (e.g., MH, KA, DL)
body[].countryCodestringCountry code (IN)

Example response

json
{
  "ok": true,
  "responseCode": 200,
  "message": "Transmission OK",
  "body": [
    {
      "countryCode": "IN",
      "pinCode": "400059",
      "pinDistrict": "Mumbai",
      "pinDivision": "Mumbai West",
      "pinRegion": "Mumbai",
      "stateCode": "MH"
    }
  ]
}

Response headers

HeaderDescription
x-request-idUnique request identifier — log this for debugging and support

Error responses

StatusError CodeMessageResolution
400400Invalid RequestVerify the pincode query parameter is present and 6 digits
401401Invalid CredentialsRefresh your access token
429429Quota ViolationRate limit exceeded — retry with backoff
500500Internal Server ErrorRetry after delay
503503Service Not AvailableUpstream unavailable — retry

State codes

The stateCode field uses standard 2-letter abbreviations: MH (Maharashtra), KA (Karnataka), DL (Delhi), TN (Tamil Nadu), UP (Uttar Pradesh), GJ (Gujarat), RJ (Rajasthan), WB (West Bengal), AP (Andhra Pradesh), TG (Telangana).

Multiple results

Some pincodes may return multiple records if they span multiple postal divisions. Always process the response body as an array.

Released under the API4Business Terms of Service