82trust / 100
Weather History
by Historical weather (global) in Weather & location
x402 APIPassing, checked 15 min ago
Historical daily weather for any location and date range (up to 1 year): high/low temp, precipitation, wind, conditions. Open-Meteo archive, no key, global. Data from 1940 to 5 days ago.
GET https://agent402.tools/api/weather-history
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 187 ms typical, 188 ms slowest 5%
- Last check
- 15 min ago
- Next check
- in 17 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://agent402.tools/api/weather-history?end=2025-06-07&lat=51.5074&lon=-0.1278&start=2025-06-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%2Fagent402.tools%2Fapi%2Fweather-history
const res = await pay("https://agent402.tools/api/weather-history?end=2025-06-07&lat=51.5074&lon=-0.1278&start=2025-06-01");
console.log(await res.json());Example input
{
"end": "2025-06-07",
"lat": 51.5074,
"lon": -0.1278,
"start": "2025-06-01"
}Example output
{
"days": [
{
"condition": "Slight rain",
"date": "2025-06-01",
"precipSum": 3.2,
"tempMax": 19.8,
"tempMin": 12.1,
"unit": "°C",
"weatherCode": 61,
"windMax": 18.4,
"windUnit": "km/h"
}
],
"lat": 51.5074,
"lon": -0.1278,
"source": "api.open-meteo.com (CC BY 4.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 |
|---|---|---|---|---|
| 15 min ago | Passed | 402 | 187 ms | $0.002 |
| 3 h ago | Passed | 402 | 188 ms | $0.002 |
| 6 h ago | Passed | 402 | 193 ms | $0.002 |
| 12 h ago | Passed | 402 | 187 ms | $0.002 |