80trust / 100

Weather Air Quality

by 2s in Weather & location

x402 APIPassing, checked 3 h ago

Current air quality for any coordinate worldwide. Pass lat + lon. Returns the US AQI (+ category Good/Moderate/Unhealthy…), the European AQI, and pollutant concentrations: PM2.5, PM10, ozone, nitrogen dioxide, sulphur dioxide, carbon monoxide. Source: Open-Meteo / CAMS (keyless).

GET https://2s.io/api/weather/air-quality

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://2s.io/api/weather/air-quality?lat=34.05&lon=-118.24"
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%2F2s.io%2Fapi%2Fweather%2Fair-quality
const res = await pay("https://2s.io/api/weather/air-quality?lat=34.05&lon=-118.24");
console.log(await res.json());

Example input

{
  "lat": 34.05,
  "lon": -118.24
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402254 ms$0.003
7 h agoPassed402268 ms$0.003
10 h agoPassed402246 ms$0.003
14 h agoPassed402229 ms$0.003
18 h agoPassed402234 ms$0.003
21 h agoPassed402224 ms$0.003
25 h agoPassed402170 ms$0.003
28 h agoPassed402161 ms$0.003
34 h agoPassed402164 ms$0.003