78trust / 100

Weather Air Quality

by dt0ur.online in Weather & location

x402 APIPassing, checked 4 h ago

Delivers current PM2.5, PM10, ozone, and European Air Quality Index (AQI) levels for specified geographic coordinates.

POST https://dt0ur.online/api/weather/air-quality

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://dt0ur.online/api/weather/air-quality" \
  -H "content-type: application/json" \
  -d '{"latitude":52.52,"longitude":13.41}'
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%2Fdt0ur.online%2Fapi%2Fweather%2Fair-quality
const res = await pay("https://dt0ur.online/api/weather/air-quality", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"latitude":52.52,"longitude":13.41}),
});
console.log(await res.json());

Example input

{
  "latitude": 52.52,
  "longitude": 13.41
}

Example output

{
  "current": {
    "pm10": 14.2,
    "pm2_5": 8.7
  },
  "status": "success"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed402331 ms$0.05
7 h agoPassed402206 ms$0.05
10 h agoPassed402211 ms$0.05
14 h agoPassed402202 ms$0.05
18 h agoPassed402270 ms$0.05
21 h agoPassed402373 ms$0.05
25 h agoPassed402344 ms$0.05
29 h agoPassed402330 ms$0.05
32 h agoPassed402275 ms$0.05
36 h agoPassed402282 ms$0.05
40 h agoPassed402305 ms$0.05
43 h agoPassed402187 ms$0.05
2 days agoPassed402219 ms$0.05