The Pincode API provides a set of endpoints to retrieve information about pincodes, states, districts, and tehsils in India. This API is useful for applications that require location-based data.
Base URL
https://pincodes.nskmultiservices.in/api
Retrieve details about a specific pincode. Standalone API endpoint to retrieve pincode details of a specific pincode number.
Request :
GET /pincode/441901
Authorization: Bearer YOUR_API_KEY
Response (in JSON Format):
{
"status": "success",
"data": [
{
"postalCircle": "Maharashtra Circle",
"postalCode": 441901,
"postalRegion": "Nagpur Region",
"postalDivision": "Nagpur Moffusil Division",
"postOfficeName": "Dawki",
"branchType": "BO",
"deliveryStatus": "Delivery",
"districtName": "GONDIA",
"stateName": "MAHARASHTRA"
},
{
"postalCircle": "Maharashtra Circle",
"postalCode": 441901,
"postalRegion": "Nagpur Region",
"postalDivision": "Nagpur Moffusil Division",
"postOfficeName": "Kadikasa",
"branchType": "BO",
"deliveryStatus": "Delivery",
"districtName": "GONDIA",
"stateName": "MAHARASHTRA"
},
{
"postalCircle": "Maharashtra Circle",
"postalCode": 441901,
"postalRegion": "Nagpur Region",
"postalDivision": "Nagpur Moffusil Division",
"postOfficeName": "Kokodi",
"branchType": "BO",
"deliveryStatus": "Delivery",
"districtName": "GONDIA",
"stateName": "MAHARASHTRA"
},
{
"postalCircle": "Maharashtra Circle",
"postalCode": 441901,
"postalRegion": "Nagpur Region",
"postalDivision": "Nagpur Moffusil Division",
"postOfficeName": "Murdoli",
"branchType": "BO",
"deliveryStatus": "Delivery",
"districtName": "GONDIA",
"stateName": "MAHARASHTRA"
},
{
"postalCircle": "Maharashtra Circle",
"postalCode": 441901,
"postalRegion": "Nagpur Region",
"postalDivision": "Nagpur Moffusil Division",
"postOfficeName": "Shirpurbagh Colony",
"branchType": "BO",
"deliveryStatus": "Delivery",
"districtName": "GONDIA",
"stateName": "MAHARASHTRA"
},
{
"postalCircle": "Maharashtra Circle",
"postalCode": 441901,
"postalRegion": "Nagpur Region",
"postalDivision": "Nagpur Moffusil Division",
"postOfficeName": "Alewada",
"branchType": "BO",
"deliveryStatus": "Delivery",
"districtName": "GONDIA",
"stateName": "MAHARASHTRA"
},
{
"postalCircle": "Maharashtra Circle",
"postalCode": 441901,
"postalRegion": "Nagpur Region",
"postalDivision": "Nagpur Moffusil Division",
"postOfficeName": "Chichgarh",
"branchType": "BO",
"deliveryStatus": "Delivery",
"districtName": "GONDIA",
"stateName": "MAHARASHTRA"
},
{
"postalCircle": "Maharashtra Circle",
"postalCode": 441901,
"postalRegion": "Nagpur Region",
"postalDivision": "Nagpur Moffusil Division",
"postOfficeName": "Futana",
"branchType": "BO",
"deliveryStatus": "Delivery",
"districtName": "GONDIA",
"stateName": "MAHARASHTRA"
},
{
"postalCircle": "Maharashtra Circle",
"postalCode": 441901,
"postalRegion": "Nagpur Region",
"postalDivision": "Nagpur Moffusil Division",
"postOfficeName": "Borgaon",
"branchType": "BO",
"deliveryStatus": "Delivery",
"districtName": "GONDIA",
"stateName": "MAHARASHTRA"
},
{
"postalCircle": "Maharashtra Circle",
"postalCode": 441901,
"postalRegion": "Nagpur Region",
"postalDivision": "Nagpur Moffusil Division",
"postOfficeName": "Nilaj",
"branchType": "BO",
"deliveryStatus": "Delivery",
"districtName": "GONDIA",
"stateName": "MAHARASHTRA"
},
{
"postalCircle": "Maharashtra Circle",
"postalCode": 441901,
"postalRegion": "Nagpur Region",
"postalDivision": "Nagpur Moffusil Division",
"postOfficeName": "Deori(Gondia)",
"branchType": "PO",
"deliveryStatus": "Delivery",
"districtName": "GONDIA",
"stateName": "MAHARASHTRA"
}
]
}
Error Codes:
Retrieve a list of states matching the provided state name.
Request Example:
GET /pincodes/state/pradesh
Authorization: Bearer YOUR_API_KEY
Response (in JSON Format):
[
{
"id": 1,
"name": "Andhra Pradesh"
},
{
"id": 2,
"name": "Arunachal Pradesh"
},
{
"id": 13,
"name": "Himachal Pradesh"
},
{
"id": 19,
"name": "Madhya Pradesh"
},
{
"id": 34,
"name": "Uttar Pradesh"
}
]
Error Codes:
Retrieve a list of districts within a specified state (state id, that retrived in the endpoint "/pincodes/district/{state_id}/{district_name}").
Request Example (As per our database record, "1" is the state id of "Andhra Pradesh" state):
GET /pincodes/district/1/ben
Authorization: Bearer YOUR_API_KEY
Response Example:
[
"Bengaluru Rural",
"Bengaluru Urban"
]
Retrieve a list of tehsils matching the provided state, district, and tehsil names.
Request Example:
GET /pincodes/tehsil/maharashtra/gondia/gaon
Authorization: Bearer YOUR_API_KEY
Response Example:
[
"Amgaon",
"Arjuni Morgaon",
"Goregaon(Gondia)",
"Navegaon Bandh"
]
Retrieve post office details with a specific post office name.
Why here we requires state_name, district_name and tehsil_name along with post_office_name?
There are many post offices with same name, to avoid conflict between two post office name we requires state_name, district_name and tehsil_name alongwith post_office_name to retrieve accurate data.
After getting State name, District and Tehsil name (using autocomplete functionality), you can easily get Post office details by post office name.
Request Example:
GET /pincodes/details/maharashtra/gondia/Dongargaon
Authorization: Bearer YOUR_API_KEY
Response Example:
{
"status": "success",
"data": {
"postalCircle": "Maharashtra Circle",
"postalCode": 441614,
"postalRegion": "Nagpur Region",
"postalDivision": "Nagpur Moffusil Division",
"postOfficeName": "Dongargaon",
"branchType": "BO",
"deliveryStatus": "Delivery",
"districtName": "GONDIA",
"stateName": "MAHARASHTRA",
"location": {
"latitude": "21.3678710",
"longitude": "79.9933980"
}
}
}
The API uses standard HTTP status codes to indicate the success or failure of a request. Common error codes include:
For support, please contact our team at [email protected] or visit our support page.
Github (Javascript) -> https://github.com/Nandeshwar750/india-pincode-api-demo
Live (With PHP backend) -> https://mostlyusedtools.com/tool/post-office-search-by-name
The Pincode API provides endpoints to retrieve information about pincodes, states, districts, and tehsils in India, useful for location-based data applications.
The base URL is https://pincodes.nskmultiservices.in/api
Use an API key included in the request header as Authorization: Bearer YOUR_API_KEY
Register on our platform to receive an API key.
Premium users can make 120 requests per minute, while regular users are limited to 60 requests per minute.
You will receive an HTTP 429 error indicating "Too many requests."
Use the endpoint /pincode/{pincode_number} with the method GET.
The response includes postal circle, postal code, postal region, postal division, post office name, branch type, delivery status, district name, and state name.
Use the endpoint /pincodes/details/{state_name}/{district_name}/{post_office_name} with the method GET.
Example request: GET /pincodes/details/maharashtra/gondia/Dongargaon with Authorization: Bearer YOUR_API_KEY.
The response includes postal circle, postal code, postal region, postal division, post office name, branch type, delivery status, district name, state name, and location coordinates.