# India Post PIN Codes API

> India Post PIN Codes returns Indian PIN codes and post office details as a workflow and API.

India Post PIN Codes looks up a six-digit PIN code and returns assigned post offices, branch types, delivery status, and postal areas. Search pin codes finds post offices by place name and returns PIN codes, branch types, and delivery status; optionally narrow by state or district.

- Page: https://fous.com/workflows/india-post-pin-codes
- Handle: `@india-post-pin-codes`
- Category: [Maps](https://fous.com/workflows/category/maps)
- Source website: https://postalpincode.in
- Last verified: Sep 29, 2026
- Fous is not affiliated with India Post PIN Codes.

## Methods

### Get pin code

Operation `get_pin_code`, version 1. 1 credit per call.

Look up an Indian six-digit PIN code and list its post offices, branch types, delivery status, and postal areas.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `pin_code` | string | yes | `"110001"` | Indian six-digit PIN code, for example 110001. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "pin_code"
  ],
  "properties": {
    "pin_code": {
      "type": "string",
      "description": "Indian six-digit PIN code, for example 110001.",
      "examples": [
        "110001",
        "400001",
        "560001"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "pin_code": "110001"
    },
    {
      "pin_code": "400001"
    },
    {
      "pin_code": "560001"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `pin_code` | string | `"110001"` | The looked-up six-digit PIN code. |
| `post_offices` | array |  | Post offices assigned to this PIN code. |
| `post_offices[].state` | string or null | `"Delhi"` | State or union territory. |
| `post_offices[].circle` | string or null | `"Delhi"` | Postal circle. |
| `post_offices[].region` | string or null | `"Delhi"` | Postal region. |
| `post_offices[].country` | string or null | `"India"` | Country. |
| `post_offices[].district` | string or null | `"Central Delhi"` | District served by the post office. |
| `post_offices[].division` | string or null | `"New Delhi Central"` | Postal division. |
| `post_offices[].page_url` | string | `"https://api.postalpincode.in/pincode/110001"` | Public link to this PIN code and its offices. |
| `post_offices[].pin_code` | string | `"110001"` | Six-digit PIN code for this post office. |
| `post_offices[].branch_type` | string or null | `"sub office"` | Head office, sub office, or branch office. |
| `post_offices[].delivery_status` | string or null | `"non-delivery"` | Delivery or non-delivery. |
| `post_offices[].post_office_name` | string or null | `"Baroda House"` | Name of the post office. |

**Example input**

```json
{
  "pin_code": "110001"
}
```

**Example output**

```json
{
  "pin_code": "110001",
  "post_offices": [
    {
      "state": "Delhi",
      "circle": "Delhi",
      "region": "Delhi",
      "country": "India",
      "district": "Central Delhi",
      "division": "New Delhi Central",
      "page_url": "https://api.postalpincode.in/pincode/110001",
      "pin_code": "110001",
      "branch_type": "sub office",
      "delivery_status": "non-delivery",
      "post_office_name": "Baroda House"
    },
    {
      "state": "Delhi",
      "circle": "Delhi",
      "region": "Delhi",
      "country": "India",
      "district": "Central Delhi",
      "division": "New Delhi Central",
      "page_url": "https://api.postalpincode.in/pincode/110001",
      "pin_code": "110001",
      "branch_type": "sub office",
      "delivery_status": "non-delivery",
      "post_office_name": "Bengali Market"
    },
    {
      "state": "Delhi",
      "circle": "Delhi",
      "region": "Delhi",
      "country": "India",
      "district": "Central Delhi",
      "division": "New Delhi Central",
      "page_url": "https://api.postalpincode.in/pincode/110001",
      "pin_code": "110001",
      "branch_type": "sub office",
      "delivery_status": "non-delivery",
      "post_office_name": "Bhagat Singh Market"
    }
  ]
}
```

### Search pin codes

Operation `search_pin_codes`, version 1. 1 credit per call.

Find Indian post offices matching a place name, with their PIN codes, branch types, delivery statuses, districts and states. Optionally narrow by state or district.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `place` | string | yes | `"Connaught Place"` | Post office or locality name, for example Connaught Place. |
| `max_results` | integer | no | `3` | Maximum number of matching post offices, for example 20. |
| `state_or_district` | string | no | `"Maharashtra"` | State or district to match, for example Delhi. Leave blank to search all places. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "place"
  ],
  "properties": {
    "place": {
      "type": "string",
      "minLength": 1,
      "description": "Post office or locality name, for example Connaught Place.",
      "examples": [
        "Connaught Place",
        "Mumbai",
        "xyzabsentqqq"
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 20,
      "maximum": 100,
      "minimum": 1,
      "description": "Maximum number of matching post offices, for example 20.",
      "x-fous-developer": true,
      "examples": [
        3
      ]
    },
    "state_or_district": {
      "type": "string",
      "default": "",
      "description": "State or district to match, for example Delhi. Leave blank to search all places.",
      "examples": [
        "Maharashtra",
        "Delhi"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "place": "Connaught Place"
    },
    {
      "place": "Mumbai",
      "max_results": 3,
      "state_or_district": "Maharashtra"
    },
    {
      "place": "Mumbai",
      "state_or_district": "Delhi"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `post_offices` | array |  | Matching post offices in the order returned by the service. |
| `post_offices[].state` | string | `"Delhi"` |  |
| `post_offices[].district` | string | `"Central Delhi"` |  |
| `post_offices[].pin_code` | string | `"110001"` |  |
| `post_offices[].page_link` | string | `"https://api.postalpincode.in/postoffice/Connaught%20Place"` |  |
| `post_offices[].branch_type` | string | `"sub office"` |  |
| `post_offices[].delivery_status` | string | `"Non-Delivery"` |  |
| `post_offices[].post_office_name` | string | `"Connaught Place"` |  |

**Example input**

```json
{
  "place": "Connaught Place"
}
```

**Example output**

```json
{
  "post_offices": [
    {
      "state": "Delhi",
      "district": "Central Delhi",
      "pin_code": "110001",
      "page_link": "https://api.postalpincode.in/postoffice/Connaught%20Place",
      "branch_type": "sub office",
      "delivery_status": "Non-Delivery",
      "post_office_name": "Connaught Place"
    }
  ]
}
```

## Quick start

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@india-post-pin-codes",
  "visibility": "public",
  "operation": "get_pin_code",
  "version": 1,
  "input": {
    "pin_code": "110001"
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

body = json.loads("{\n  \"api\": \"@india-post-pin-codes\",\n  \"visibility\": \"public\",\n  \"operation\": \"get_pin_code\",\n  \"version\": 1,\n  \"input\": {\n    \"pin_code\": \"110001\"\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=120) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_000),
  body: JSON.stringify({
  "api": "@india-post-pin-codes",
  "visibility": "public",
  "operation": "get_pin_code",
  "version": 1,
  "input": {
    "pin_code": "110001"
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

Or describe the data in plain language: send `{"api":"@india-post-pin-codes","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## Use cases

- Find post offices assigned to a six-digit PIN code
- Check a post office’s delivery status and branch type
- Find PIN codes for a locality
- Narrow post office searches by state or district
- Compare post office locations across districts

## FAQ

### Is Fous affiliated with India Post PIN Codes?

No. Fous is not affiliated with India Post PIN Codes. This workflow reads the public postalpincode.in website and returns its data.

### How much does it cost?

Each run costs 1 credit. With pay-as-you-go, a credit costs 1¢; monthly plans cost less per credit.

### Do I need a India Post PIN Codes account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from postalpincode.in when you run it; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check on Sep 29, 2026.

### Which post offices are assigned to a PIN code?

Get pin code takes a six-digit PIN code and returns its assigned post offices and their details.

### What is the PIN code for a place?

Search pin codes takes a place name and returns matching post offices and their PIN codes.

### Does a post office offer delivery?

Get pin code and Search pin codes return each post office’s delivery status.

## Related

- [Zippopotam.us API](https://fous.com/workflows/zippopotam-us.md): Zippopotam.us returns places, regions and coordinates for postal codes in supported countries, and finds postal codes, places and coordinates by town and region.
- [Postcodes.io API](https://fous.com/workflows/postcodes-io.md): Postcodes.io provides UK postcode, location and administrative information; nearby postcode results include distance and coordinates, while retired postcodes lack administrative details.
- [USPS API](https://fous.com/workflows/usps.md): USPS provides latest available package tracking, standardized U.S. addresses with ZIP+4, recommended cities for five-digit ZIP Codes, and estimated domestic postage and delivery dates.
- [OpenStreetMap API](https://fous.com/workflows/openstreetmap.md): OpenStreetMap returns place coordinates, address details, nearby readable place information, and ordered place search results from contributor-created data; results reflect mapped features and may be incomplete or differ from landmarks.
- [US Census Bureau API](https://fous.com/workflows/us-census-bureau.md): US Census Bureau returns statistics from varying Census years, population estimates through July 1, and address geographies using Census vintages that may differ from representation.
- [Pinterest API](https://fous.com/workflows/pinterest.md): Pinterest helps people discover and save visual ideas, returning public search results from the first page and visible profile boards, with monthly views only when shown.
- [Google Maps API](https://fous.com/workflows/google-maps.md): Google Maps returns nearby places, public place details, up to 100 public reviews, and up to three routes; transit options vary by departure time.
- [ipinfo.io API](https://fous.com/workflows/ipinfo-io.md): IP address location and network information.
- [All Maps workflows](https://fous.com/workflows/category/maps)
