Weather by Location

FREEMIUM
By mazon
Updated 4 months ago
Data
-/10
Popularity Score
-
Latency
-
Success Rate

Weather by Location API Documentation

Weather by location allows you to get weather information by ip, zipcode, lat lon coordinates. You can find weather information such as weather condition, current temperature, max temperature, min temperature, pressure, distance above sea level, humidity, wind speed & degree.

View API Details
GETWeather by IP Address
GETWeather by Lat/Lon
GETWeather by IP Address
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Optional Parameters
ip_addressSTRING
OPTIONAL
Code Snippet
unirest.get("https://weatherinfo.p.rapidapi.com/api/weather/?ip_address=174.20.20.55")
.header("X-RapidAPI-Host", "weatherinfo.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://weatherinfo.p.rapidapi.com/api/weather/
Request Method: GET
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.get("https://weatherinfo.p.rapidapi.com/api/weather/?ip_address=174.20.20.55")
.header("X-RapidAPI-Host", "weatherinfo.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication