Weather Forecast Basic

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

Weather Forecast Basic API Documentation

get a 3 day weatherforecast worldwide from weatheronline ltd. search cities from all over the world and get forecast for max/min temperature, precipitation and weather conditions

View API Details
GETGet forecastdata by key
GETGet forecastdata by lat/lon
GETGet UV-Index by key
GETget Sun-Hours by key
search for city key
GETList of all Countries
GETList of cities in one Country
GETSearch location by Name or zip code
GETGet forecastdata by key

Get forecastdata by key

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
keySTRING
REQUIRED
Optional Parameters
LANGSTRING
OPTIONALlanguage [en,nl,fr,es,pt,it,gr,tr,cz,de,pl,ru,cn]
Code Snippet
unirest.get("https://weatheronline-weather-forecast-basic-v1.p.rapidapi.com/api/getforecastdata?KEY={key}")
.header("X-RapidAPI-Host", "weatheronline-weather-forecast-basic-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://weatheronline-weather-forecast-basic-v1.p.rapidapi.com/api/getforecastdata?KEY={key}
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://weatheronline-weather-forecast-basic-v1.p.rapidapi.com/api/getforecastdata?KEY={key}")
.header("X-RapidAPI-Host", "weatheronline-weather-forecast-basic-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