RapidAPI logo

SurviveWeather

FREEMIUM
By survivalmachines
Updated 4 months ago
2.2/10
Popularity Score
3752ms
Latency
100%
Success Rate

SurviveWeather API Documentation

All rounded weather API.

View API Details
GETconditions
GEThourlyforecast
GETdailyforecast
GETastronomy
GETgeoip
GETplace
GETconditions_basic
GETpostalcode
GETconditions

Returns current conditions for requested location.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
latNUMBER
REQUIREDLatitude
lonNUMBER
REQUIREDLongitude
Optional Parameters
unitsSTRING
OPTIONALMeasurement units system.
langSTRING
OPTIONALLanguage
Code Snippet
unirest.get("https://surviveweather.p.rapidapi.com/v1/conditions")
.header("X-RapidAPI-Host", "surviveweather.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://surviveweather.p.rapidapi.com/v1/conditions
Request Method: GET
Response Headers
Response Body
Log inSign up

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://surviveweather.p.rapidapi.com/v1/conditions")
.header("X-RapidAPI-Host", "surviveweather.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