RapidAPI logo

Simple Weather

FREE
By mxrck
Updated 4 months ago
Tools
8/10
Popularity Score
364ms
Latency
100%
Success Rate

Simple Weather API Documentation

Simple tool for get current weather

View API Details
GETWeather Forecast
GETWeather Forecast
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
unitSTRING
REQUIRED
locationSTRING
REQUIREDCurrent city code, you can find info here: http://serprogramador.es/api-para-obtener-el-clima/
Optional Parameters
langSTRING
OPTIONALLanguaje for description
Code Snippet
unirest.get("https://mxrck-ser-programadores-apis.p.rapidapi.com/weather/forecast/MXCE0008/c.json?lang=es")
.header("X-RapidAPI-Host", "mxrck-ser-programadores-apis.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://mxrck-ser-programadores-apis.p.rapidapi.com/weather/forecast/{location}/{unit}.json
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://mxrck-ser-programadores-apis.p.rapidapi.com/weather/forecast/MXCE0008/c.json?lang=es")
.header("X-RapidAPI-Host", "mxrck-ser-programadores-apis.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