API Documentation

Key information
Description

Pincode search in India is a process of finding the postal code of a specific location or address in India. A pincode is a 6-digit code that is assigned by India Post to each geographical location in the country. It helps in identifying the specific area and sorting the mail for delivery purposes.


PincodeIndia Tools API allows developers to get details of Post Office by searching Postal PIN Code or Post Office Branch Name of India.

Base URL
Authentication
GET - Retrieving records

Parameter Type Required Description
Pincode string No (Allows partial) (Allows ranges) -
District string No (Allows partial) (Allows ranges) -
StateName string No (Allows partial) (Allows ranges) -
Response

The response will be an array of records, each of which will have the fields in the table below. Fields may be empty. Read about field types.


Field Type Description
Pincode string -
CircleName string -
RegionName string -
DivisionName string -
OfficeName string -
OfficeType string -
Delivery string -
District string -
StateName string -
Examples

Sample code for interacting with the API is provided below. JSON output is the default, but you may also choose XML by suffixing the endpoint with .xml


$ curl "https://sheetlabs.com/PINI/pincodeindia"
[ {
"Pincode" : "string",
"CircleName" : "string",
"RegionName" : "string",
"DivisionName" : "string",
"OfficeName" : "string",
"OfficeType" : "string",
"Delivery" : "string",
"District" : "string",
"StateName" : "string"
} ]


fetch("https://sheetlabs.com/PINI/pincodeindia" , {
 method: 'GET',
headers: {
'Content-Type': 'application/json',
                            
 },
 })
.then(response => {
 if (response.status === 200) {
  return response.json();
 } else {
throw new Error('Something went wrong');
}
})
.then(data => console.log(data))
 .catch((error) => {
 console.error(error);
});

Have Any Idea In Your Mind ?