Skip to content

API guides/India

FreeFreemium

Indian PIN code to post office API

Resolve a 6-digit Indian PIN code to post offices, district, and state. Official data.gov.in vs the unofficial Postal Pincode API.

Check official docs

2 providers · 5 min · Limits change — verify before you ship

India

What this is for

PIN codes are not a secret, but the mapping to post offices changes. Prefer an official dataset when you can; unofficial HTTP wrappers are convenient and can disappear.

ProviderPricingKeyHTTPSCORS
Postal Pincode API (unofficial)FreeNo keyYesUsually yes
data.gov.in (official catalogues)FreemiumRequiredYesBackend only

Postal Pincode API (unofficial)

Free

GET https://api.postalpincode.in/pincode/{PIN}

Official docs

HTTPS

Yes

API key

No key

CORS

Usually yes

Use

Free tier

Limits. No SLA. Community-run. Cache responses; do not use as a payment-critical dependency.

Commercial. Unofficial. Read the site before commercial use.

Note. This is not India Post’s official product. Confirm the current host and terms on their site.

curl -sS "https://api.postalpincode.in/pincode/110001"

data.gov.in (official catalogues)

Freemium

GET https://api.data.gov.in/resource/{resource_id}?api-key=YOUR_KEY&format=json

Official docs

HTTPS

Yes

API key

Required

CORS

Backend only

Use

See limits

Limits. Free registered key with per-resource quotas. See each dataset’s API tab.

Commercial. Government open data. Follow the dataset licence.

Note. Search data.gov.in for “all India pincode” (or similar) and copy the resource id from that dataset.

curl -sS "https://api.data.gov.in/resource/RESOURCE_ID?api-key=YOUR_KEY&format=json&limit=10"

PureDevKit does not host or proxy these APIs. Pricing, rate limits, CORS, authentication, and JSON shapes can change without notice. Always confirm the current rules on the provider’s official documentation before you ship.