๐ŸŒ DigiPIN Generate


Decode DigiPIN

DigiPIN API โ€“ A Geospatial Innovation by

The DigiPIN API is a modern geolocation solution launched by that transforms how India addresses places. It encodes latitude and longitude into a compact 10-character code thatโ€™s shareable, accurate, and easy to use โ€” ideal for digital services, deliveries, and public infrastructure.

Developed in collaboration with IIT Hyderabad and ISROโ€™s NRSC, this open-source system forms the geospatial backbone of Digital India. Its API allows anyone to generate or decode a DigiPIN through simple GET requests, supporting logistics, navigation, governance, and more.

What Makes DigiPIN Unique?

Use Cases Across India

๐Ÿ“ฆ E-commerce & Courier Tracking
๐Ÿšจ Emergency Response Coordination
๐Ÿ›๏ธ Smart Governance & Civic Services
๐Ÿ—บ๏ธ GIS Mapping & Land Records
๐Ÿฆ Banking & Insurance KYC
๐Ÿ“ Accurate Address Tagging in Rural Areas

Whether you are mapping homes in villages or optimizing delivery routes in cities, DigiPIN provides a robust solution for digital address standardization. It's part of India's commitment to โ€œAddress as a Service (AaaS)โ€ and the broader Digital Public Infrastructure (DPI) ecosystem.

๐Ÿ”— How to Use the DigiPin API

The DigiPin API offers developers a simple and powerful way to integrate digital addressing into any application, website, or system. Designed around RESTful principles, our API allows you to convert latitude and longitude to a DigiPin and decode a DigiPin back into geographical coordinates using secure POST requests.

Whether you're building a delivery app, smart governance platform, e-commerce service, or location-tracking system, the DigiPin API enables accurate and scalable geolocation across India.

๐Ÿ“ Endpoint 1: Generate DigiPin from Coordinates

Send a POST request with latitude and longitude in the JSON body:

Content-Type: application/json
Method: POST 
URL:  https://digipin.sostabazar.in/api/generate.php
Headers: x-api-key : YOUR_API_KEY
Body:
{
  "latitude": 28.613939,
  "longitude": 77.209023
}

  

Example Response:

{
    "digipin": "39J-438-TJ9F"
}
  

๐Ÿงญ Endpoint 2: Decode DigiPin to Coordinates

Send a POST request with the DigiPin in the JSON body:

Content-Type: application/json
Method: POST 
URL:  https://digipin.sostabazar.in/api/decode.php
Headers: x-api-key : YOUR_API_KEY
Body:
{
    "digipin": "39J-438-TJ9F"
}

Example Response:

{
    "latitude": 28.613935,
    "longitude": 77.209032
}
  

๐Ÿ’ก Tips for Using the API

  • Always validate input values before sending requests.
  • Use HTTPS to ensure secure communication.
  • Rate-limiting may apply to prevent abuse. Contact us for extended access.
  • Never expose your API key in public repositories or frontend code.

๐Ÿš€ Get Started Today

With the DigiPin API, you're ready to unlock the future of digital addresses. Seamlessly integrate location intelligence into your workflows and bring precision to your location-based services. If you need custom integration or support, feel free to reach out to our support team.

โ€œTransforming addresses for Digital India.โ€