Global Weather History

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

Global Weather History API Documentation

Get accurate historical weather from over 104,000 locations around the world. Daily weather measurements from 1763! Weather information includes: minimum & maximum daily temperature, snow fall, precipitation, evaporation and more!

View API Details
GETWeather
GETWeather

Get historic weather for a location.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
dateSTRING
REQUIREDDate, in YYYY-MM-DD format
latitudeSTRING
REQUIREDLatitude of position
longitudeSTRING
REQUIREDLongitude of position
Optional Parameters
includeSTRING
OPTIONALOnly gets specific measurements. Supported values: TMAX (max temperature, C), TMIN (minimum temperature, C) PRCP (precipitation, tenth of mm), SNOW (snowfall, mm), SNWD (snow depth, mm). For multiple parameters, separate with comma (TMIN,TMAX). Default: all.
max_distSTRING
OPTIONALMax allowed distance of measurement station from supplied location. Default: 100,000 m.
Code Snippet
unirest.get("https://iddogino-global-weather-history-v1.p.rapidapi.com/weather?date=2018-01-11&latitude=33.9463626&longitude=-118.4010845")
.header("X-RapidAPI-Host", "iddogino-global-weather-history-v1.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://iddogino-global-weather-history-v1.p.rapidapi.com/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://iddogino-global-weather-history-v1.p.rapidapi.com/weather?date=2018-01-11&latitude=33.9463626&longitude=-118.4010845")
.header("X-RapidAPI-Host", "iddogino-global-weather-history-v1.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