# India Pincode Lookup API

> India Pincode Lookup is an Indian PIN code API covering all ~19,300 PIN codes and ~157,000 post offices. Look up a PIN code to get its district, state, ISO state code, India Post circle, region, division and post office count, or search by post office, district or state, while paid plans add coordinates, every post office with its type and delivery status, and nearby PIN codes by distance.

**Endpoint:** `GET https://api.apiverve.com/v1/indiapincode`  
**Category:** Geography  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/indiapincode

## Overview

A pincode lookup API built from the All India Pincode Directory published by the Department of Posts, Government of India. One call returns the full picture for a PIN code: district and state with its ISO 3166-2:IN code, the India Post circle, region and division, a coordinate taken as the median of its offices, and every post office under the PIN marked as head, sub or branch office with its delivery status and own coordinates. Reverse lookups find PIN codes by post office name, district or state. The coordinates and the post office list are on paid plans, as is nearby=true, which lists the PIN codes within a radius of up to 50 km, nearest first.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/indiapincode?pincode=110001&office=Connaught%20Place&district=Pune&state=Maharashtra&nearby=true&radius=10&limit=10" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `pincode` | string | No | Six-digit PIN code |
| `office` | string | No | Post office name or part of it. length 0-100 |
| `district` | string | No | District name. Former and everyday city names work (Bangalore, Gurgaon, Bombay, Noida, Delhi), and a name that is the start of several districts returns all of them (Bengaluru covers Bengaluru Urban and Rural). length 0-80 |
| `state` | string | No | State or union territory name. length 0-80 |
| `nearby` | boolean | No | With pincode, include the PIN codes within radius km. default false. Premium field |
| `radius` | number | No | Radius in km for nearby (1-50). default 10. range 1-50 |
| `limit` | integer | No | Maximum PIN codes to return for searches (1-50). default 10. range 1-50 |

## Response fields

- `count` — number · Number of PIN codes returned
- `totalMatches` — number · Number of PIN codes that matched before the limit
  - `results.0.pincode` — string · Six-digit Indian postal index number
  - `results.0.district` — string · District
  - `results.0.state` — string · State or union territory
  - `results.0.stateCode` — string · ISO 3166-2:IN subdivision code, e.g. KA
  - `results.0.circle` — string · India Post circle
  - `results.0.region` — string · India Post region; null where the division reports straight to the circle
  - `results.0.division` — string · India Post division
  - `results.0.latitude` — number · Latitude of the PIN: the median of its post offices' coordinates · (premium)
  - `results.0.longitude` — number · Longitude of the PIN · (premium)
  - `results.0.timezone` — string · IANA time zone (Asia/Kolkata)
  - `results.0.postOfficeCount` — number · Number of post offices under the PIN
  - `results.0.deliveryOfficeCount` — number · Number of those offices that deliver mail
    - `results.0.postOffices.0.name` — string · Post office name · (premium)
    - `results.0.postOffices.0.officeType` — string · head_office, sub_office or branch_office · (premium)
    - `results.0.postOffices.0.delivery` — boolean · The office delivers mail · (premium)
    - `results.0.postOffices.0.latitude` — number · Latitude of the office; null when the directory gives none or an implausible one · (premium)
    - `results.0.postOffices.0.longitude` — number · Longitude of the office · (premium)
    - `results.0.nearby.0.pincode` — string · (premium)
    - `results.0.nearby.0.district` — string · (premium)
    - `results.0.nearby.0.state` — string · (premium)
    - `results.0.nearby.0.distanceKm` — number · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "count": 1,
    "totalMatches": 1,
    "results": [
      {
        "pincode": "560001",
        "district": "Bengaluru Urban",
        "state": "Karnataka",
        "stateCode": "KA",
        "circle": "Karnataka Circle",
        "region": "Bengaluru HQ Region",
        "division": "BANGALORE GPO DIVISION",
        "latitude": 12.98247,
        "longitude": 77.59456,
        "timezone": "Asia/Kolkata",
        "postOfficeCount": 10,
        "deliveryOfficeCount": 1,
        "postOffices": [
          {
            "name": "Bengaluru G.P.O.",
            "officeType": "head_office",
            "delivery": true,
            "latitude": 12.9716,
            "longitude": 77.59456
          },
          {
            "name": "Bengaluru Foreign Post S.O",
            "officeType": "sub_office",
            "delivery": false,
            "latitude": 13.03,
            "longitude": 77.6007
          },
          {
            "name": "CMM Court Complex S.O",
            "officeType": "sub_office",
            "delivery": false,
            "latitude": 12.97949,
            "longitude": 77.59418
          },
          {
            "name": "Dr. Ambedkar Veedhi S.O",
            "officeType": "sub_office",
            "delivery": false,
            "latitude": 12.98114,
            "longitude": 77.59536
          },
          {
            "name": "HighCourt S.O",
            "officeType": "sub_office",
            "delivery": false,
            "latitude": 12.96842,
            "longitude": 77.56919
          },
          {
            "name": "Legislators Home S.O",
            "officeType": "sub_office",
            "delivery": false,
            "latitude": 12.98386,
            "longitude": 77.58961
          },
          {
            "name": "Mahatma Gandhi Road S.O",
            "officeType": "sub_office",
            "delivery": false,
            "latitude": 12.16103,
            "longitude": 78.00022
          },
          {
            "name": "Rajbhavan S.O",
            "officeType": "sub_office",
            "delivery": false,
            "latitude": 12.98247,
            "longitude": 77.5913
          },
          {
            "name": "Vasanthanagar S.O",
            "officeType": "sub_office",
            "delivery": false,
            "latitude": 12.99351,
            "longitude": 77.5921
          },
          {
            "name": "Vidhana Soudha S.O",
            "officeType": "sub_office",
            "delivery": false,
            "latitude": 12.98747,
            "longitude": 77.60475
          }
        ],
        "nearby": [
          {
            "pincode": "560009",
            "district": "Bengaluru Urban",
            "state": "Karnataka",
            "distanceKm": 1.57
          },
          {
            "pincode": "560042",
            "district": "Bengaluru Urban",
            "state": "Karnataka",
            "distanceKm": 1.93
          }
        ]
      }
    ]
  }
}
```

## Use cases

- **Checkout Address Autofill** — Fill district and state as soon as a shopper types a 6-digit PIN code, and reject PIN codes that do not exist.
- **Delivery Serviceability** — Check whether a PIN code has a delivery post office and list nearby PIN codes for courier zone planning.
- **Address Cleaning** — Standardise district and state names and attach ISO state codes to customer records.
- **Store and Agent Locators** — Find the PIN codes around a branch to define its catchment area.

## More

- Full reference: https://docs.apiverve.com/ref/indiapincode
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
