Air Quality API logo

Air Quality API

Air Quality API

TL;DR

  • Get real-time AQI and pollutant data for any location via API.
  • 5,000 free queries per month.

Here's a sample response:

{
  "air_quality_index": 85,
  "PM2.5": {
    "concentration": 4.72,
    "aqi": 15
  },
  "PM10": {
    "concentration": 5.9,
    "aqi": 5
  },
  "ozone": {
    "concentration": 70.32,
    "aqi": 85
  },
  "nitrogen_dioxide": {
    "concentration": 12.09,
    "aqi": 15
  },
  "sulfur_dioxide": {
    "concentration": 6.92,
    "aqi": 10
  },
  "carbon_monoxide": {
    "concentration": 222.07,
    "aqi": 2
  }
}

What is this?

The Air Quality API delivers real-time air quality data for any location on Earth.

Send a city name or GPS coordinates. Get back the overall AQI and individual pollutant concentrations in clean JSON.

Perfect for health apps, outdoor activity planners, smart home systems, or any app that needs environmental data.

Why use it?

1. Generous Free Plan

5,000 queries per month. Free. No credit card required.

That's 5,000 air quality lookups every month at no cost. Build and test your application without upfront investment.

2. Affordable Pricing

When you need more, our paid plans cost far less than competitors:

  • $25 gets you 100K queries/month
  • $75 gets you 1M queries/month
  • $150 gets you 10M queries/month

3. 99.99% Uptime SLA

Air quality monitoring must be reliable.

We maintain a 99.99% uptime SLA.

How to use it?

Simple REST API. Two endpoints—one for city names, one for coordinates.

  1. Sign up on Omkar Cloud by visiting this link.
    Sign Up

  2. Visit the API Key Page.

  3. Copy your API key.
    Copy the API Key

  4. Make a request with it:

By City Name

cURL:

curl -X GET "https://air-quality-api.omkar.cloud/air-quality/city?city=New%20York" \
  -H "API-Key: YOUR_API_KEY"

Python:

import requests

city = "New York"
api_key = "YOUR_API_KEY"

response = requests.get(
    "https://air-quality-api.omkar.cloud/air-quality/city",
    params={"city": city},
    headers={"API-Key": api_key}
)
print(response.json())

JavaScript (Node.js axios):

import axios from "axios";

const city = "New York";
const apiKey = "YOUR_API_KEY";

const response = await axios.get("https://air-quality-api.omkar.cloud/air-quality/city", {
    params: { city },
    headers: { "API-Key": apiKey }
});
console.log(response.data);

By Coordinates

cURL:

curl -X GET "https://air-quality-api.omkar.cloud/air-quality/coords?lat=37.7749&lon=-122.4194" \
  -H "API-Key: YOUR_API_KEY"

Python:

import requests

lat = 37.7749
lon = -122.4194
api_key = "YOUR_API_KEY"

response = requests.get(
    "https://air-quality-api.omkar.cloud/air-quality/coords",
    params={"lat": lat, "lon": lon},
    headers={"API-Key": api_key}
)
print(response.json())

JavaScript (Node.js axios):

import axios from "axios";

const lat = 37.7749;
const lon = -122.4194;
const apiKey = "YOUR_API_KEY";

const response = await axios.get("https://air-quality-api.omkar.cloud/air-quality/coords", {
    params: { lat, lon },
    headers: { "API-Key": apiKey }
});
console.log(response.data);
  1. Get structured JSON back and use it:
{
  "air_quality_index": 85,
  "PM2.5": {
    "concentration": 4.72,
    "aqi": 15
  },
  "PM10": {
    "concentration": 5.9,
    "aqi": 5
  },
  "ozone": {
    "concentration": 70.32,
    "aqi": 85
  },
  "nitrogen_dioxide": {
    "concentration": 12.09,
    "aqi": 15
  },
  "sulfur_dioxide": {
    "concentration": 6.92,
    "aqi": 10
  },
  "carbon_monoxide": {
    "concentration": 222.07,
    "aqi": 2
  }
}

That's it. Location to air quality data in milliseconds.

❓ What pollutants are tracked?

We track the six major pollutants that matter for human health:

  1. PM2.5 — Fine inhalable particles
  2. PM10 — Larger particles from dust and pollen
  3. Ozone (O₃) — Ground-level smog component
  4. Nitrogen Dioxide (NO₂) — Vehicle and industrial emissions
  5. Sulfur Dioxide (SO₂) — Power plant and industrial emissions
  6. Carbon Monoxide (CO) — Incomplete combustion byproduct

These are the EPA-standard criteria pollutants used globally.

❓ What do the AQI values mean?

The AQI is a single number that summarizes air quality.

Here is the breakdown:

  • 0-50 (Good): Air quality is satisfactory.
  • 51-100 (Moderate): Acceptable for most people.
  • 101-150 (Unhealthy for Sensitive Groups): Sensitive individuals should limit outdoor activity.
  • 151-200 (Unhealthy): Everyone may experience health effects.
  • 201-300 (Very Unhealthy): Health alert—everyone affected.
  • 301-500 (Hazardous): Emergency conditions.
    Lower is better. Most clean cities stay below 50.

❓ How often is the data updated?

Data refreshes in real-time from global monitoring networks.

You always get the latest readings for any location.

❓ What can I build with this?

Common use cases:

  • Fitness apps — Inform runners about air quality
  • Smart home systems — Trigger air purifiers based on outdoor AQI
  • Outdoor event planners — Check conditions before scheduling activities
  • Travel apps — Show air quality at destinations
  • Health dashboards — Monitor environmental factors for wellness
  • Weather apps — Add AQI alongside temperature and humidity

❓ Tell me about Omkar Cloud.

We're an API services company with 20+ tools for OCR, document processing, and developer APIs.

Here is what we are proud of:

❓ How much does it cost?

  • Free — $0 — 5,000 queries/month
  • Starter — $25 — 100,000 queries/month
  • Grow — $75 — 1,000,000 queries/month
  • Scale — $150 — 10,000,000 queries/month

Why we're affordable: Low overhead. We run lean and pass the savings to you.

Note: You get 5,000 free queries every month. Most users find this covers their needs.

❓ How do I get a refund?

If the product doesn't meet your needs within 90 days, get a refund in 2 clicks.

  1. Go to Transactions Page
    Transactions Page

  2. Click "Request Refund"
    Request Refund Button

  3. Confirm by clicking Request Refund again. The amount will be refunded within 1-2 business days. We'll email you updates.
    Confirm Refund Request

No emails. No explanations. Simple 2-click process.

❓ Is there a catch in refunds?

No catch.

It's a simple 2-click process, exactly as described above.

Questions? We have answers.

Reach out anytime. We will solve your query within 1 working day.

Contact Us on WhatsApp about Air Quality API

Contact Us on Email about Air Quality API