82trust / 100
Air Quality Now
by AIMarket in Markets & finance
x402 APIPassing, checked 15 min ago
Current air quality at a place: PM2.5 and PM10 (µg/m³), US and European AQI, from Copernicus CAMS via Open-Meteo, with a signed receipt. Send latitude and longitude, or a city.
POST https://modelmarket.dev/x402/air-quality-now
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 108 ms typical, 108 ms slowest 5%
- Last check
- 15 min ago
- Next check
- in 12 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://modelmarket.dev/x402/air-quality-now" \
-H "content-type: application/json" \
-d '{"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%2Fmodelmarket.dev%2Fx402%2Fair-quality-now
const res = await pay("https://modelmarket.dev/x402/air-quality-now", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"city":"Paris"}),
});
console.log(await res.json());Example input
{
"city": "Paris"
}Example output
{
"capability_id": "gaia.air.read@v1",
"receipt": {},
"result": {},
"service": "air-quality-now",
"status": "ok"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 15 min ago | Passed | 402 | 449 ms | $0.001 |
| 5 h ago | Passed | 402 | 108 ms | $0.001 |