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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 258 ms | $0.003 |
| 6 h ago | Passed | 402 | 591 ms | $0.003 |
| 9 h ago | Passed | 402 | 246 ms | $0.003 |
| 13 h ago | Passed | 402 | 253 ms | $0.003 |
| 17 h ago | Passed | 402 | 244 ms | $0.003 |
| 20 h ago | Passed | 402 | 434 ms | $0.003 |
| 23 h ago | Passed | 402 | 340 ms | $0.003 |
| 28 h ago | Passed | 402 | 139 ms | $0.003 |
| 31 h ago | Passed | 402 | 301 ms | $0.003 |
| 35 h ago | Passed | 402 | 237 ms | $0.003 |
| 39 h ago | Passed | 402 | 124 ms | $0.003 |
| 42 h ago | Passed | 402 | 618 ms | $0.003 |
| 47 h ago | Passed | 402 | 141 ms | $0.003 |