78trust / 100

Weather Current

by Current Weather in Weather & location

x402 APIPassing, checked 2 h ago

Current temperature, wind, humidity, and conditions for any lat/lon (Open-Meteo, keyless).

POST https://api.24klabs.ai/api/weather-current

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
253 ms typical, 591 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 POST "https://api.24klabs.ai/api/weather-current" \
  -H "content-type: application/json" \
  -d '{"lat":40.71,"lon":-74.01}'
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%2Fapi.24klabs.ai%2Fapi%2Fweather-current
const res = await pay("https://api.24klabs.ai/api/weather-current", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"lat":40.71,"lon":-74.01}),
});
console.log(await res.json());

Example input

{
  "lat": 40.71,
  "lon": -74.01
}

Example output

{
  "temperature_c": 12.3
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402258 ms$0.003
6 h agoPassed402591 ms$0.003
9 h agoPassed402246 ms$0.003
13 h agoPassed402253 ms$0.003
17 h agoPassed402244 ms$0.003
20 h agoPassed402434 ms$0.003
23 h agoPassed402340 ms$0.003
28 h agoPassed402139 ms$0.003
31 h agoPassed402301 ms$0.003
35 h agoPassed402237 ms$0.003
39 h agoPassed402124 ms$0.003
42 h agoPassed402618 ms$0.003
47 h agoPassed402141 ms$0.003