RapidAPI logo

AerisWeather

FREE
By AerisWeather
Updated a month ago
Weather
-/10
Popularity Score
-
Latency
-
Success Rate

AerisWeather API Documentation

An advanced weather API to power all of your business needs, from the basic to the most complex weather influenced solutions.

View API Details
GETAir Quality
GETAlerts
GETCurrent Conditions
GETDaily Summaries
GETForecasts
GETPlaces
GETAir Quality

Air Quality Index which provides pollutant data around the world.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
locationSTRING
REQUIREDProvide a place to query. Examples include: [city,state], [lat,long], [city, country], [US / CA postal code], etc.
client_idSTRING
REQUIREDEnter your Client ID from the AerisWeather members area.
client_secretSTRING
REQUIREDEnter your Client Secret from the AerisWeather members area.
Optional Parameters
filterSTRING
OPTIONALFilter by a specific pollutant. Example: pm10, pm2p5, o3.
Code Snippet
unirest.get("https://aerisweather-aerisweather-v1.p.rapidapi.com/airquality/{location}")
.header("X-RapidAPI-Host", "aerisweather-aerisweather-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://aerisweather-aerisweather-v1.p.rapidapi.com/airquality/{location}
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://aerisweather-aerisweather-v1.p.rapidapi.com/airquality/{location}")
.header("X-RapidAPI-Host", "aerisweather-aerisweather-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