API Documentation

Complete guide to integrating with our Pincode API

Authentication

All API requests require authentication using an API key. Include your API key in the request header:

X-API-Key: YOUR_API_KEY

Get Pincode Details

Retrieve pincode information by pincode value.

Endpoint

GET /api/pincode/{pincode}/

Example Request

curl -X GET "https://apicenter.in/api/pincode/110001/" \
  -H "X-API-Key: YOUR_API_KEY"

Example Response

Status Code: 200
[
  {
    "pincode": 110001,
    "country": "INDIA",
    "state": "DELHI",
    "city": "CENTRAL DELHI",
    "district": "CENTRAL DELHI",
    "region": "DELHI",
    "offices": [
      {
        "office_name": "Connaught Place H.O",
        "division": "New Delhi Central Division",
        "office_type": "HO",
        "delivery_status": "Delivery",
        "circle": "Delhi Circle"
      }
    ]
  }
]

Rate Limits

Rate limits are enforced per API key based on your subscription plan:

When limits are exceeded, you'll receive a 429 Too Many Requests response.

Error Responses

401 Unauthorized

{
  "error": "Invalid API key"
}

404 Not Found

{
  "error": "Pincode 999999 not found."
}

429 Too Many Requests

{
  "error": "Daily limit exceeded",
  "message": "FREE plan daily limit exceeded: 10"
}