inpin API
A JSON API over the same directory the site uses. One request returns the post offices, district, state and coordinates for a PIN code, in about 20 ms from Cloudflare's edge.
Base URL
https://inpin-api.bizinessinfo.workers.devAuthentication
Every request needs a key, sent as an X-API-Key header or a ?key=
parameter. Keys are issued by email — there is no sign-up form yet.
Endpoints
| Endpoint | Returns |
|---|---|
GET /v1/pin/{code} | Area, district, state, circle, division, coordinates and every post office under that PIN |
GET /v1/search?q= | Up to 10 matching PIN codes by area, office or PIN prefix |
POST /v1/validate | Which of up to 500 PIN codes exist, and the area for each |
GET /v1/health | Service status. No key required. |
Examples
curl -H "X-API-Key: YOUR_KEY" https://inpin-api.bizinessinfo.workers.dev/v1/pin/110001
curl -H "X-API-Key: YOUR_KEY" "https://inpin-api.bizinessinfo.workers.dev/v1/search?q=andheri"
curl -X POST -H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" -d '{"pins":["110001","999999"]}' https://inpin-api.bizinessinfo.workers.dev/v1/validateResponse
{
"pin": "110001",
"area": "New Delhi GPO",
"district": "New Delhi",
"state": "Delhi",
"post_office": "New Delhi GPO",
"office_type": "HO",
"delivery": true,
"circle": "Delhi",
"division": "New Delhi Central",
"offices_count": 23,
"latitude": 28.60612,
"longitude": 77.22093,
"offices": [{ "name": "Sansad Marg HO", "type": "HO", "delivery": false,
"division": "New Delhi Central" }]
}Plans
| Plan | Requests | Price |
|---|---|---|
| Trial | 100 / day | Free, 14 days |
| Starter | 10,000 / day | ₹499 / month |
| Business | 100,000 / day | ₹1,999 / month |
Billing is by UPI for now, monthly, cancellable any time. A key is issued within a few hours of payment.
Terms that matter
- Cache responses on your side for at least 24 hours. The directory changes monthly, not hourly.
- Do not resell the raw data as a dataset. Build a product on top of it and you are welcome.
- Attribute the source: Department of Posts, All India Pincode Directory, via inpin.
- Coordinates are approximate — good for mapping, not for routing a vehicle.
Get a key
Email corrections@inpin.in with what you are building and the plan you want. A trial key is free.
Last reviewed 2026-12-03.