1.0.0 • Published 4 years ago
airquality.js v1.0.0
Air Quality Checker
Gets the real time air quality in Air Pollution Index (AQI).
All interactions with the API requires a token. Get your token here! Example Code:
const Checker = require("airquality.js");
const checker = new Checker("TOKEN HERE");
checker.search("Beijing")
.then(data => {
//your code goes here
});
Example return of search:
{
aqi: 20,
status: "Good",
cityname: "Beijing (北京)"
}
Join the Overcold Discord server to report bugs, give suggestions and stuff. Powered by aqicn.org/waqi.info.