A lightning-fast, self-hosted API for retrieving Indian post office and PIN code details. Fully compatible as a drop-in replacement for the public postalpincode.in API.
Type a 6-digit PIN code or a post office name to search the directory in real-time.
/api/pincode/:pincode
Retrieves details of all post offices associated with the specified 6-digit PIN code.
A valid 6-digit Indian Postal Index Number (PIN). Example: 360004
Your personal active API key. Alternatively pass via the header x-api-key.
curl -X GET "http://localhost:3000/api/pincode/360004?apikey=YOUR_API_KEY"
[
{
"Message": "Run a request from the sandbox to see output...",
"Status": "Idle",
"PostOffice": null
}
]