← DIGIPIN Finder

Address API

PIN code lookup, post office search and DIGIPIN for apps and partner platforms. All answers are JSON.

Base URL
https://api-digipin.myappclub.in

The same calls also work on this site under /api/, e.g. https://digipin.myappclub.in/api/pincode/380001.

Try it

Press Send.

Access and limits

Endpoints

MethodPathKeyWhat it does
GET/pincode/{pin}noDistrict, state, taluk and every post office of a 6-digit PIN
GET/postoffices?q=navrang&state=GujaratnoPost offices whose name starts with q (3+ letters), with their PIN; state is optional
GET/digipin/encode?lat=…&lon=…noDIGIPIN of a point in India
GET/digipin/decode?digipin=…noCentre and bounds of a DIGIPIN cell (~4 m × 4 m)

The earlier address form /index.php?r=pincode/380001 still works.

Examples

PIN code lookup

curl https://api-digipin.myappclub.in/pincode/380001
{"ok":true,"pincode":"380001","district":"Ahmedabad","state":"Gujarat","taluk":"Ahmadabad City","count":14,
 "offices":[{"name":"Ahmedabad","type":"HO","delivery":"Delivery","taluk":"Ahmadabad City", …}, …]}

DIGIPIN of a point

curl "https://api-digipin.myappclub.in/digipin/encode?lat=23.0225&lon=72.5714"

{"ok":true,"digipin":"3KL-K9F-LMT6","lat":23.0225,"lon":72.5714}

JavaScript (from your server, with your key)

const res = await fetch("https://api-digipin.myappclub.in/postoffices?q=navrang&state=Gujarat", {
  headers: { "X-API-Key": process.env.MYAPPCLUB_KEY }
});
const data = await res.json();
if (!data.ok) throw new Error(data.message);
console.log(data.count, data.results);

PHP

$ch = curl_init("https://api-digipin.myappclub.in/pincode/380001");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$data = json_decode(curl_exec($ch), true);
echo $data["district"] . ", " . $data["state"];

Errors

Every error has the same shape: {"ok":false,"error":"code","message":"Readable text"}.

HTTPMeaning
400Bad input in the URL, e.g. bad_pincode, bad_digipin
401The key is wrong, stopped, ended or replaced (bad_key)
403The key was not given this part (section_not_given)
404PIN code not found
500Server problem; try again later

About the data