80trust / 100
Get Weather
by Sindri in Weather & location
x402 APIPassing, checked 2 h ago
Live weather API. Returns real-time weather conditions, temperature, feels-like temperature, humidity, wind speed, precipitation, and UV index for any city worldwide — live external data an LLM cannot know on its own. Supports metric/imperial units, 74 languages, and optional 3-day forecast and sun/moon astronomy data.
POST https://ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws/getWeather
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 128 ms typical, 146 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://ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws/getWeather" \
-H "content-type: application/json" \
-d '{"city":"san-francisco","includeAstronomy":false,"includeForecast":false,"lang":"en","units":"metric"}'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%2Fppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws%2FgetWeather
const res = await pay("https://ppu43fkyhimq5fiqpmo42eh5ri0yypid.lambda-url.us-east-1.on.aws/getWeather", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"city":"san-francisco","includeAstronomy":false,"includeForecast":false,"lang":"en","units":"metric"}),
});
console.log(await res.json());Example input
{
"city": "san-francisco",
"includeAstronomy": false,
"includeForecast": false,
"lang": "en",
"units": "metric"
}Example output
{
"data": {
"conditions": "Foggy",
"feelsLike": "14",
"humidity": "80",
"params": {
"city": "san-francisco",
"includeAstronomy": false,
"includeForecast": false,
"lang": "en",
"units": "metric"
},
"precipitationMM": "0.2",
"temperature": "15",
"uvIndex": "3",
"windSpeed": "10"
},
"ok": true
}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 | 125 ms | $0.01 |
| 6 h ago | Passed | 402 | 146 ms | $0.01 |
| 10 h ago | Passed | 402 | 128 ms | $0.01 |
| 13 h ago | Passed | 402 | 407 ms | $0.01 |
| 18 h ago | Passed | 402 | 126 ms | $0.01 |