79trust / 100

Weather Now

by AIMarket in Weather & location

x402 APIPassing, checked 13 min ago

Current weather at a place: temperature (°C), humidity (%), pressure (hPa) and wind (m/s) from the nearest live Open-Meteo relay within 75 km, with a signed receipt. Send latitude and longitude, or a city.

POST https://modelmarket.dev/x402/weather-now

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
445 ms typical, 471 ms slowest 5%
Last check
13 min ago
Next check
in 19 min

How to call it

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

Example input

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

Example output

{
  "capability_id": "gaia.weather.read@v1",
  "receipt": {},
  "result": {},
  "service": "weather-now",
  "status": "ok"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
13 min agoPassed402369 ms$0.001
4 h agoPassed402427 ms$0.001
7 h agoPassed402471 ms$0.001
11 h agoPassed402445 ms$0.001
15 h agoPassed402396 ms$0.001
19 h agoPassed402417 ms$0.001
22 h agoPassed402457 ms$0.001
26 h agoPassed402345 ms$0.001
29 h agoPassed402447 ms$0.001
32 h agoPassed402452 ms$0.001
37 h agoPassed402606 ms$0.001