Pin Codes - India

FREE
By navii
Updated 5 months ago
Location
9/10
Popularity Score
1236ms
Latency
93%
Success Rate

Pin Codes - India API Overview

Find a list of post offices using either a postal code/pincode or search string in location name.

Contact API Provider
star-blueRate

STATE IDs

1 Telangana
2 Andhra Pradesh
3 Pondicherry
4 Assam
5 Bihar
6 Chattisgarh
7 Delhi
8 Gujarat
9 Daman & Diu
10 Dadra & Nagar Haveli
11 Haryana
12 Himachal Pradesh
13 Jammu & Kashmir
14 Jharkhand
15 Karnataka
16 Kerala
17 Lakshadweep
18 Madhya Pradesh
19 Maharashtra
20 Goa
21 Manipur
22 Mizoram
23 Nagaland
24 Tripura
25 Arunachal Pradesh
26 Meghalaya
27 Odisha
28 Chandigarh
29 Punjab
30 Rajasthan
31 Tamil Nadu
32 Uttar Pradesh
33 Uttarakhand
34 West Bengal
35 Andaman & Nicobar Islands
36 Sikkim

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://pincode.p.rapidapi.com/")
.header("X-RapidAPI-Host", "pincode.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"searchBy":"pincode","value":110001})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication