# India Post PIN codes

> Validate and enrich Indian addresses: look up which post offices, district and state a PIN code covers, or find a post office's PIN code by its name. Uses India Post's directory through the free postalpincode.in service. No account or API key is required.

App · 2 actions. Web page: https://docs.lodol.com/docs/integrations/india-post-pincode

## Actions

### Find a post office's PIN code

Search India Post's post offices by name and get each one's PIN code, district and state, best matches first. Many places share a name, so pick a state or district to narrow it down.

**Inputs**

- Post office name (`name`, text, required): All or part of the post office's name, for example Connaught Place or Andheri East. Punctuation and case don't matter.
- State (`state`, text): Only post offices in this state or union territory. One of: `Andaman & Nicobar` (Andaman and Nicobar Islands), `Andhra Pradesh`, `Arunachal Pradesh`, `Assam`, `Bihar`, `Chandigarh`, `Chattisgarh` (Chhattisgarh), `Dadra & Nagar Haveli` (Dadra and Nagar Haveli), `Daman & Diu` (Daman and Diu), `Delhi`, and 26 more.
- District (`district`, text): Only post offices in a district whose name contains this, for example Mumbai or South Delhi.
- Maximum results (`limit`, number): How many post offices to return, best matches first (up to 500). From 1 to 500. Default: `50`.

**Outputs**

- `found` (true/false)
- `match_count` (number)
- `name` (text)
- `pin_code` (text)
- `pin_codes` (list)
- `post_offices` (list)

**Example output**

```json
{
  "found": true,
  "match_count": 2,
  "name": "Andheri",
  "pin_code": "400053",
  "pin_codes": [
    "400053",
    "400069"
  ],
  "post_offices": [
    {
      "block": null,
      "branch_type": "Head Post Office",
      "circle": "Maharashtra",
      "country": "India",
      "delivers_mail": false,
      "delivery_status": "Non-Delivery",
      "district": "Mumbai",
      "division": "Mumbai North",
      "name": "Andheri",
      "pin_code": "400053",
      "region": "Mumbai",
      "state": "Maharashtra"
    },
    {
      "block": null,
      "branch_type": "Sub Post Office",
      "circle": "Maharashtra",
      "country": "India",
      "delivers_mail": true,
      "delivery_status": "Delivery",
      "district": "Mumbai",
      "division": "Mumbai North",
      "name": "Andheri East",
      "pin_code": "400069",
      "region": "Mumbai",
      "state": "Maharashtra"
    }
  ]
}
```

### Look up a PIN code

Check an Indian PIN code and get its district, state, postal region and every post office it covers, with which ones deliver mail. A PIN code that doesn't exist isn't an error: 'found' is false and 'problem' says why, so you can use it to validate addresses.

**Inputs**

- PIN code (`pin_code`, text, required): The 6-digit PIN code. Spaces and dashes are fine, as in 110 001.

**Outputs**

- `circle` (text)
- `delivery_post_offices` (list)
- `district` (text)
- `districts` (list)
- `division` (text)
- `found` (true/false)
- `pin_code` (text)
- `post_office_count` (number)
- `post_offices` (list)
- `problem` (text)
- `region` (text)
- `state` (text)

**Example output**

```json
{
  "circle": "Delhi",
  "delivery_post_offices": [
    "New Delhi"
  ],
  "district": "Central Delhi",
  "districts": [
    "Central Delhi",
    "New Delhi"
  ],
  "division": "New Delhi Central",
  "found": true,
  "pin_code": "110001",
  "post_office_count": 3,
  "post_offices": [
    {
      "block": "New Delhi",
      "branch_type": "Sub Post Office",
      "circle": "Delhi",
      "country": "India",
      "delivers_mail": false,
      "delivery_status": "Non-Delivery",
      "district": "Central Delhi",
      "division": "New Delhi Central",
      "name": "Baroda House",
      "pin_code": "110001",
      "region": "Delhi",
      "state": "Delhi"
    },
    {
      "block": "New Delhi",
      "branch_type": "Sub Post Office",
      "circle": "Delhi",
      "country": "India",
      "delivers_mail": false,
      "delivery_status": "Non-Delivery",
      "district": "Central Delhi",
      "division": "New Delhi Central",
      "name": "Connaught Place",
      "pin_code": "110001",
      "region": "Delhi",
      "state": "Delhi"
    },
    {
      "block": "New Delhi",
      "branch_type": "Head Post Office",
      "circle": "Delhi",
      "country": "India",
      "delivers_mail": true,
      "delivery_status": "Delivery",
      "district": "New Delhi",
      "division": "New Delhi GPO",
      "name": "New Delhi",
      "pin_code": "110001",
      "region": "Delhi",
      "state": "Delhi"
    }
  ],
  "problem": null,
  "region": "Delhi",
  "state": "Delhi"
}
```
