STD Codes - India

FREE
By navii
Updated 5 months ago
Communication
5.3/10
Popularity Score
446ms
Latency
58%
Success Rate

STD Codes - India API Documentation

Find an STD Code of any City or State of India OR find the location of any STD Code.

View API Details
POSTSEARCH
POSTSEARCH

STD Code or Place Name

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
POSTJSON_STRING
REQUIRED
Code Snippet
unirest.post("https://std.p.rapidapi.com/")
.header("X-RapidAPI-Host", "std.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"search":"Pun"})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://std.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://std.p.rapidapi.com/")
.header("X-RapidAPI-Host", "std.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"search":"Pun"})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication