Pin Codes - India

FREE
By navii
Updated 4 months ago
Location
8.9/10
Popularity Score
736ms
Latency
87%
Success Rate

Pin Codes - India API Documentation

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

View API Details
POSTPIN
POSTADDRESS
POSTPIN

Search by pin code.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Content-TypeSTRING
OPTIONAL
Required Parameters
POST PINJSON_STRING
REQUIRED
Code Snippet
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);
});
Sample Response
General
Request URL: https://pincode.p.rapidapi.com/
Request Method: POST
Response Headers
Response Body

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