78trust / 100

Air Quality

by Data Lookup API in Weather & location

x402 APIPassing, checked 12 min ago

Current U.S. EPA Air Quality Index (AQI) and pollution levels for a specific location, given latitude/longitude — use to check smog, air pollution, or whether it's safe to be outside. Sourced from the EPA AirNow program (federal/state/local/tribal agencies); covers the US, Canada, and Mexico only. Data is preliminary and unvalidated per EPA data use guidelines — not for regulatory use.

GET https://x402-seller.onrender.com/air/quality

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
182 ms typical, 416 ms slowest 5%
Last check
12 min ago
Next check
in 19 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402-seller.onrender.com/air/quality?lat=37.7749&lng=-122.4194"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402-seller.onrender.com%2Fair%2Fquality
const res = await pay("https://x402-seller.onrender.com/air/quality?lat=37.7749&lng=-122.4194");
console.log(await res.json());

Example input

{
  "lat": "37.7749",
  "lng": "-122.4194"
}

Example output

{
  "attribution": "Data owned by federal, state, local, and tribal air quality agencies, distributed via the U.S. EPA AirNow program.",
  "date": "2026-07-16",
  "hour": 14,
  "preliminary": true,
  "readings": [
    {
      "aqi": 42,
      "category": "Good",
      "pollutant": "PM2.5"
    },
    {
      "aqi": 38,
      "category": "Good",
      "pollutant": "O3"
    }
  ],
  "reportingArea": "San Francisco",
  "source": "U.S. EPA AirNow",
  "stateCode": "CA"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
12 min agoPassed402176 ms$0.001
4 h agoPassed402182 ms$0.001
7 h agoPassed402390 ms$0.001
11 h agoPassed402414 ms$0.001
15 h agoPassed402436 ms$0.001
18 h agoPassed402173 ms$0.001
22 h agoPassed402416 ms$0.001
25 h agoPassed402182 ms$0.001
29 h agoPassed402127 ms$0.001
33 h agoPassed402201 ms$0.001
36 h agoPassed402400 ms$0.001
41 h agoPassed402143 ms$0.001