Postal PIN Code API: Search post offices by place
Finds Indian post offices matching a place name, with PIN codes, branch types, delivery statuses, districts and states. Optionally narrows by state or district.
Unofficial. Not affiliated with or endorsed by Postal PIN Code.
Inputs
Values from the run on Oct 23, 2026, shown under Output.
- Place, required
place Post office or locality name, for example Connaught Place.
Mumbai
- Max Results optional
max_results Maximum number of matching post offices, for example 20.
3
Whole number from 1 to 100. Default
20.- State or District optional
state_or_district State or district to match, for example Delhi. Leave blank to search all places.
Maharashtra
Default
.
Input as JSON
{ "place": "Mumbai", "max_results": 3, "state_or_district": "Maharashtra"}Output
{ "post_offices": [ { "state": "Maharashtra", "district": "Mumbai", "pin_code": "400099", "page_link": "https://api.postalpincode.in/postoffice/Airport%20%28Mumbai%29" , "branch_type": "sub office", "delivery_status": "Non-Delivery", "post_office_name": "Airport (Mumbai)" }, { "state": "Maharashtra", "district": "Mumbai", "pin_code": "400004", "page_link": "https://api.postalpincode.in/postoffice/Ambewadi%20%28Mumbai%29" , "branch_type": "sub office", "delivery_status": "Non-Delivery", "post_office_name": "Ambewadi (Mumbai)" }, { "state": "Maharashtra", "district": "Mumbai", "pin_code": "400053", "page_link": "https://api.postalpincode.in/postoffice/Azad%20Nagar%20%28Mumbai%29" , "branch_type": "sub office", "delivery_status": "Delivery", "post_office_name": "Azad Nagar (Mumbai)" } ]}Code
curl https://api.fous.com/v1/runs \ -H "Authorization: Bearer $FOUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method":"postalpincode.in/search_pin_codes","input":{"place":"Mumbai","max_results":3,"state_or_district":"Maharashtra"}}' # Save as fous.py, then run: python3 fous.pyimport json, os, timefrom urllib.error import HTTPErrorfrom urllib.request import Request, urlopenAPI = "https://api.fous.com/v1/runs" KEY = os.environ["FOUS_API_KEY"]HEADERS = { "Authorization": f"Bearer {KEY}", "Content-Type": "application/json" ,}def call(url, body=None): data = json.dumps(body).encode() if body else None request = Request(url, data, HEADERS) try: with urlopen(request, timeout=120) as r: return r.status, json.load(r) except HTTPError as error: message = json.load(error)["error"]["message"] raise RuntimeError(message) from errorstatus, run = call(API, { "method": "postalpincode.in/search_pin_codes" , "input": { "place": "Mumbai", "max_results": 3, "state_or_district": "Maharashtra" }})# 202: still going after 30 s. Ask again until it ends.while status == 202: time.sleep(2) status, run = call(f"{API}/{run['id']}")print(json.dumps(run["data"], indent=2))// Save as fous.mjs, then run: node fous.mjsconst api = "https://api.fous.com/v1/runs" ;const headers = { Authorization: `Bearer ${process.env.FOUS_API_KEY}`, "Content-Type": "application/json" ,};let response = await fetch(api, { method: "POST", headers, body: JSON.stringify({ "method": "postalpincode.in/search_pin_codes" , "input": { "place": "Mumbai", "max_results": 3, "state_or_district": "Maharashtra" } }), signal: AbortSignal.timeout(120_000),});let run = await response.json();// 202: still going after 30 s. Ask again until it ends.while (response.status === 202) { await new Promise((done) => setTimeout(done, 2_000)); response = await fetch(`${api}/${run.id}`, { headers }); run = await response.json();}if (!response.ok) throw new Error(run.error.message);console.log(run.data);# Connect your agent to Fous once, over MCP (Streamable HTTP):# https://api.fous.com/mcp# Set FOUS_API_KEY first: create a key at https://app.fous.com/keys.# Claude Codeclaude mcp add \ --scope user \ --transport http fous https://api.fous.com/mcp \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Codexcodex mcp add fous \ --url https://api.fous.com/mcp \ --bearer-token-env-var FOUS_API_KEY# Cursor, VS Code, Windsurf, Cline and morenpx -y add-mcp https://api.fous.com/mcp -g -n fous \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Then ask your agent:# "Use Fous to run postalpincode.in/search_pin_codes# with {"place":"Mumbai","max_results":3,"state_or_district":"Maharashtra"}"Over HTTP, the answer’s data holds the output. A run still going after 30 seconds answers 202 with its id: ask GET /v1/runs/{id} until it ends.
Schema
Input schema
{ "type": "object", "required": [ "place" ], "properties": { "place": { "type": "string", "minLength": 1, "description": "Post office or locality name, for example Connaught Place." }, "max_results": { "type": "integer", "default": 20, "maximum": 100, "minimum": 1, "description": "Maximum number of matching post offices, for example 20." }, "state_or_district": { "type": "string", "default": "", "description": "State or district to match, for example Delhi. Leave blank to search all places." } }}Output schema
{ "type": "object", "required": [ "post_offices" ], "properties": { "post_offices": { "type": "array", "items": { "type": "object", "required": [ "post_office_name", "pin_code", "page_link" ], "properties": { "state": { "type": "string" }, "district": { "type": "string" }, "pin_code": { "type": "string" }, "page_link": { "type": "string" }, "branch_type": { "type": "string" }, "delivery_status": { "type": "string" }, "post_office_name": { "type": "string" } } }, "description": "Matching post offices in the order returned by the service." } }}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
postalpincode.in/search_pin_codes- Returns
- post office name, PIN code, branch type, delivery status, district, state, page link
Use it from your agent
Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method postalpincode.in/search_pin_codes with the inputs above.
Ask your agent
- Find all post offices named Connaught Place with their PIN codes and delivery status
- Which post office serves Koramangala in Bangalore? Show branch type and district
- List up to 10 post offices matching Andheri in Maharashtra
- Look up PIN codes for post offices called Civil Lines on postalpincode.in
- Show head and sub post offices matching Salt Lake in West Bengal with their districts
See more
All Postal PIN Code methodsLooks up an Indian six-digit PIN code and lists its post offices with branch type, delivery status and postal area.
postalpincode.in/get_pin_codeFinds postal codes, place names and coordinates for a town and state or region in a country covered by Zippopotam.us.
zippopotam.us/search_postal_codesLists UK postcodes nearest to a postcode or named place, with distance, ward, council and coordinates. For places sharing a name, a city or town is preferred.
postcodes.io/list_nearby_postcodesLooks up the places, regions and coordinates for a postal code in a supported country on Zippopotam.us.
zippopotam.us/get_postal_codeFinds named places or kinds of places in a city or area, in search order, using OpenStreetMap Nominatim. Results may be fewer than requested. Data © OpenStreetMap contributors (ODbL).
openstreetmap.org/search_placesLooks up a UK postcode on Postcodes.io, including its location, administrative areas and whether it is still in use. Retired postcodes return location and retirement year only.
postcodes.io/get_postcodeLooks up a public Google Maps place by name and location and returns its profile: address, rating, hours, phone, website and photos.
google.com/get_placeMatches a US street address and returns its city or place, county, state, ZIP code, census tract, congressional and state legislative districts, coordinates and FIPS codes. Districts follow the Census Geocoder's current geography vintage and may differ from sitting representation.
census.gov/get_address_details