81trust / 100

Weather Air Quality

by TBS Weather & Climate API in Weather & location

x402 APIPassing, checked 2 h ago

Air quality, pollution and environmental data for any city or lat/lon. Returns European and US AQI (air quality index), particulate matter PM2.5 and PM10, ozone (O3), nitrogen dioxide (NO2), sulphur dioxide (SO2), and carbon monoxide (CO). Real-time index for health, allergy, pollution-monitoring and environmental agents.

GET https://x402.tbs-digital.com/weather/air-quality

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
174 ms typical, 174 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402.tbs-digital.com/weather/air-quality?city=Paris"
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.tbs-digital.com%2Fweather%2Fair-quality
const res = await pay("https://x402.tbs-digital.com/weather/air-quality?city=Paris");
console.log(await res.json());

Example input

{
  "city": "Paris"
}

Example output

{
  "air_quality": {
    "aqi_european": 20,
    "aqi_us": 35,
    "co": 140,
    "no2": 12,
    "ozone": 68,
    "pm10": 9.4,
    "pm2_5": 5.1,
    "so2": 1.2
  },
  "generated_at": "2026-08-09T12:00:00.000Z",
  "location": {
    "country": "FR",
    "lat": 48.85,
    "lon": 2.35,
    "name": "Paris"
  },
  "payer": {
    "address": "0x0000000000000000000000000000000000000000",
    "network": "base"
  },
  "request_id": "0b21c0e6-6a3f-4e2a-8b1e-2f9d4c7a1e55",
  "source": "open-meteo"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402174 ms$0.001
5 h agoPassed40262 ms$0.001
11 h agoPassed402232 ms$0.001