80trust / 100
Weather Lookup
by api.strale.io in Weather & location
x402 APIPassing, checked 3 h ago
Get current weather and 7-day forecast for any location. Uses Open-Meteo API. Search by city name or coordinates.
GET https://api.strale.io/x402/v2/weather-lookup
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 277 ms typical, 295 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.strale.io/x402/v2/weather-lookup?city=example_city&latitude=0&longitude=0"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.strale.io%2Fx402%2Fv2%2Fweather-lookup
const res = await pay("https://api.strale.io/x402/v2/weather-lookup?city=example_city&latitude=0&longitude=0");
console.log(await res.json());Example input
{
"city": "example_city",
"latitude": 0,
"longitude": 0
}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 |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 128 ms | $0.054 |
| 7 h ago | Passed | 402 | 277 ms | $0.054 |
| 10 h ago | Passed | 402 | 292 ms | $0.054 |
| 14 h ago | Passed | 402 | 286 ms | $0.054 |
| 17 h ago | Passed | 402 | 295 ms | $0.054 |
| 21 h ago | Passed | 402 | 132 ms | $0.054 |
| 25 h ago | Passed | 402 | 135 ms | $0.054 |
| 28 h ago | Passed | 402 | 358 ms | $0.054 |
| 34 h ago | Passed | 402 | 131 ms | $0.054 |