# 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/tools/india-post-pin-codes
- Handle: `@india-post-pin-codes`
- Category: [Maps](https://fous.com/tools/category/maps)
- Source website: https://postalpincode.in
- Last verified: Sep 29, 2026

## Methods

### Get pin code

Operation `get_pin_code`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

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 completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

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

Replace `YOUR_API_KEY` with a Fous API key. To create one, open Developers at the bottom of Fous Studio, turn on Developer mode, then go to API keys (https://app.fous.com/keys). Change the values in `input` to run the same tool on new data.

```bash
curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 180 \
  -H "Authorization: Bearer YOUR_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.
import json
import urllib.error
import urllib.request

api_key = "YOUR_API_KEY"

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=180) 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.
const apiKey = "YOUR_API_KEY";

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(180_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);
```

## Use from an AI assistant

Connect this tool to Claude Code, Claude Desktop, Cursor, VS Code, Codex and any MCP client as its own MCP server. Each method is a typed tool whose arguments are the method’s input.

- Server URL: `https://api.fous.com/mcp/tools/india-post-pin-codes`
- Authorization: `Authorization: Bearer <Fous API key>`

**Tools**

- `get_pin_code`: Get pin code. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `search_pin_codes`: Search pin codes. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `fous_get_run`: the result of a run that was still going, by its `request_id`. Free.

Claude Code:

```bash
claude mcp add --scope user --transport http fous-india-post-pin-codes https://api.fous.com/mcp/tools/india-post-pin-codes --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"
```

To give the assistant every tool, connect `https://api.fous.com/mcp`: it finds one with `fous_search_tools` and runs it with `fous_run_tool`. Setup for other clients: https://fous.com/llms-full.txt.

## 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

### Can I run it with my own inputs?

Yes. Change the inputs in Studio and press Run, or send new inputs from your code, or ask a connected AI assistant.

### Can I call this India Post PIN Codes tool as an API?

Yes. Send a POST request to /v1/query with your Fous API key and the inputs, and get JSON back.

### How much does it cost?

Each completed run costs 1 credit. Failed runs without a completed receipt are free; completed work can remain charged if delivery is interrupted. 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. Some results are reused for up to 24 hours, and results that use your account or key are never reused. It was last verified 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/tools/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/tools/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/tools/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/tools/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/tools/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/tools/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/tools/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/tools/ipinfo-io.md): IP address location and network information.
- [All Maps tools](https://fous.com/tools/category/maps)
