The India Pincode API allows developers to access pincode data.
Please visit rapidapi.com for buying extra quota.
RequestThe API works over HTTP, and requests are made with GET.
Endpointhttps://gpc.p.rapidapi.com/api-pincode
To get the pincode for "Delhi" for example, this is the Request URL. Make sure to escape the query for best results.
https://gpc.p.rapidapi.com/api-pincode?q=delhi
Response
The API returns the values in JSON format.
{"query":"Delhi","pincode":"110001"}
If the address is not found (or cannot be retrieved for some reason), an error message is returned.
{"query":"Searched Address","pincode":"","error":"Not found"}
Some examples
http://gpc.p.rapidapi.com/api-pincode?q=haus+khas+delhi
{"query":"hauz khas delhi","pincode":"110016"}
http://gpc.p.rapidapi.com/api-pincode?q=nariman+point+mumbai
{"query":"nariman point mumbai","pincode":"400021"}
http://gpc.p.rapidapi.com/api-pincode?q=vastrapur+ahmedabad
{"query":"vastrapur ahmedabad","pincode":"380015"}
http://gpc.p.rapidapi.com/api-pincode?q=whitefield+bangalore
{"query":"whitefield bangalore", "pincode":"560066"}
The API is pretty flexible with order or mis-spellings. The API and the search results use the same algorithm, so please try out various addresses using getpincode search to see what the API will output.
Rate LimitsYou are given a quota of 100 requests per day. These limits can be relaxed for non-profit or open source projects.
Please visit rapidapi.com for buying extra quota.
Terms of useYou are free to use the API for commercial or non-commercial purposes. Read the full licensing terms.