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.
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.
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.
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"
}
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
}
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.