The Ambee Air Quality API provides real-time, hyper-local air quality data for over a million postal codes across 150+ countries, cities, and coordinates. It offers data granularity at a spatial resolution of 500 meters and follows the US EPA standard for Air Quality Index.
Access real-time air quality data for over 150 countries with a specified resolution of 500 meters (0.3 miles).
Get air quality data using geographic coordinates (latitude/longitude).
x-api-key
Content-type
Accept-Language
lat
lng
aqiStandard
locale
https://api.ambeedata.com/v3/aq/latest?lat=12.9889055&lng=77.574044const http = require("https");
const options = {
"method": "GET",
"hostname": "api.ambeedata.com",
"port": null,
"path": "/v3/aq/latest?lat=12.9889055&lng=77.574044",
"headers": {
"x-api-key": "API_KEY",
"Content-type": "application/json"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();Retrieve air quality data using the desired place name.
x-api-key
Content-type
Accept-Language
place
aqiStandard
locale
https://api.ambeedata.com/v3/aq/latest?place=Bengaluruconst http = require("https");
const options = {
"method": "GET",
"hostname": "api.ambeedata.com",
"port": null,
"path": "/v3/aq/latest?place=Bengaluru",
"headers": {
"x-api-key": "API_KEY",
"Content-type": "application/json"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();Access historical air quality data for your selected timeframe across the supported regions.
Access 30+ years of historical AQ data. Download historical data.
Get air quality data using geographic coordinates (latitude/longitude).
x-api-key
Content-type
Accept-Language
lat
lng
from
to
aqiStandard
locale
https://api.ambeedata.com/v3/aq/history?lat=12.9889055&lng=77.574044&from=2026-05-02 07:00:00&to=2026-05-04 07:00:00const http = require("https");
const options = {
"method": "GET",
"hostname": "api.ambeedata.com",
"port": null,
"path": "/v3/aq/history?lat=12.9889055&lng=77.574044&from=2026-05-02 07:00:00&to=2026-05-04 07:00:00",
"headers": {
"x-api-key": "API_KEY",
"Content-type": "application/json"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();Get historical air quality data using the desired place name and time period.
x-api-key
Content-type
Accept-Language
place
from
to
aqiStandard
locale
https://api.ambeedata.com/v3/aq/history?place=Bengaluru&from=2026-05-02 07:00:00&to=2026-05-04 07:00:00const http = require("https");
const options = {
"method": "GET",
"hostname": "api.ambeedata.com",
"port": null,
"path": "/v3/aq/history?place=Bengaluru&from=2026-05-02 07:00:00&to=2026-05-04 07:00:00",
"headers": {
"x-api-key": "API_KEY",
"Content-type": "application/json"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();The air quality forecasts API provides predictions of air quality levels, allowing you to plan and take preventive measures against poor air conditions.
The API delivers forecasts for up to 48 hours in advance, offering data at a level of specific geographic coordinates. This API is ideal for applications that require accurate and timely air quality information, such as environmental monitoring, health advisories, and smart city integrations. With easy-to-use endpoints and robust data coverage, you can seamlessly integrate air quality forecasts into your platform or service.
You can get a forecast of the air up to 4 days in advance. This service is available on demand. Get in touch.
Get air quality forecasts worldwide based on geographic coordinates.
x-api-key
Content-type
Accept-Language
lat
lng
aqiStandard
locale
https://api.ambeedata.com/v3/aq/forecast/48hrs?lat=12.9889055&lng=77.574044const http = require("https");
const options = {
"method": "GET",
"hostname": "api.ambeedata.com",
"port": null,
"path": "/v3/aq/forecast/48hrs?lat=12.9889055&lng=77.574044",
"headers": {
"x-api-key": "API_KEY",
"Content-type": "application/json"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();Retrieve forecast air quality data using the desired place name.
x-api-key
Content-type
Accept-Language
place
aqiStandard
locale
https://api.ambeedata.com/v3/aq/forecast/48hrs?place=Bengaluruconst http = require("https");
const options = {
"method": "GET",
"hostname": "api.ambeedata.com",
"port": null,
"path": "/v3/aq/forecast/48hrs?place=Bengaluru",
"headers": {
"x-api-key": "API_KEY",
"Content-type": "application/json"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();