Business · Live

DIGIPIN API

India Post’s 10-character digital address, from any GPS point.

From ₹0.30/callPrepaid · billed per successful call

What the DIGIPIN API does

The DIGIPIN API converts between map coordinates and India Post’s DIGIPIN, the 10-character code for a roughly 4 m × 4 m square anywhere in India. Send latitude and longitude to get the DIGIPIN, or a DIGIPIN to get its location; either way you also get the nearest post office and its pincode.

Popular use cases

  • →Capture precise delivery addresses from a phone’s GPS
  • →Field verification and site-visit geotagging
  • →Address standardisation for logistics and last-mile delivery
Request
curl -X POST https://apisathi.in/gw/v1/digipin-v1/ \
  -H "X-API-Key: live_xxx" \
  -H "Content-Type: application/json" \
  -d '{ "latitude": 26.9124, "longitude": 75.7873 }'
Response
{
  "digipin": "33C635JK43",
  "digipin_formatted": "33C-635-JK43",
  "latitude": 26.9124,
  "longitude": 75.7873,
  "nearest_post_office": {
    "name": "P.W.D.Office S.O",
    "pincode": "302006",
    "distance_km": 0.35
  }
}

Response fields returned by the DIGIPIN API

FieldExample
digipin33C635JK43
digipin_formatted33C-635-JK43
latitude26.9124
longitude75.7873
nearest_post_office.nameP.W.D.Office S.O
nearest_post_office.pincode302006
nearest_post_office.distance_km0.35

Every field, error code and the full schema are in the DIGIPIN API reference.

Call the DIGIPIN API from Node.js or Python

Node.js
const res = await fetch('https://apisathi.in/gw/v1/digipin-v1/', {
  method: 'POST',
  headers: { 'X-API-Key': process.env.APISATHI_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({"latitude":26.9124,"longitude":75.7873}),
});
const data = await res.json();
Python
import os, requests

res = requests.post(
    "https://apisathi.in/gw/v1/digipin-v1/",
    headers={"X-API-Key": os.environ["APISATHI_KEY"]},
    json={"latitude":26.9124,"longitude":75.7873},
    timeout=30,
)
data = res.json()

DIGIPIN API pricing

  • → From ₹0.30 per successful call + 18% GST
  • → Prepaid wallet from ₹200; no monthly fee, no minimum volume
  • → Failed or timed-out calls are not charged
  • → Bonus credit on recharges of ₹1,000 and above; GST invoice on every recharge
See live prices for every API →

Start in four steps

  1. Create a free account — about a minute.
  2. Call the DIGIPIN API with your TEST key in the sandbox, free.
  3. Recharge the wallet (UPI, card or netbanking) from ₹200.
  4. Switch to your LIVE key — the same key works for every API.
Create a free account →

Frequently asked questions

What is a DIGIPIN?

India Post’s digital address: a 10-character code for a roughly 4 m × 4 m square anywhere in India, designed to complement the pincode.

How much does the DIGIPIN API cost?

The DIGIPIN API on API Sathi starts at ₹0.30 per successful call plus 18% GST, paid from a prepaid wallet. There is no monthly fee or minimum volume, and recharges of ₹1,000 or more earn bonus credit. Live prices for every API are on the pricing page.

Can I test the DIGIPIN API for free?

Yes. Every account gets a TEST key that calls the DIGIPIN API in the sandbox at no cost and returns realistic sample responses, so you can finish your integration before adding money to the wallet.

Am I charged if a DIGIPIN API call fails?

No. You pay only for successful calls. If the source is unavailable, times out or rejects the request, the amount held for that call is released straight back to your wallet.

How do I get a DIGIPIN API key?

Sign up at apisathi.in — it takes about a minute — and create a key under API Keys. Use the TEST key in the sandbox, then recharge from ₹200 and switch to a LIVE key. The same key works for every API on API Sathi.

Start using the DIGIPIN API today

Sign up, recharge a prepaid wallet and generate a key in minutes. Lowest price guaranteed, no volume commitment.