81trust / 100

Weather Historical

by TBS Weather & Climate API in Weather & location

x402 APIPassing, checked 3 h ago

Historical daily weather (archive): temperature min/max, precipitation, conditions for a past date range. City or lat/lon. start/end optional — defaults to last 7 complete UTC days.

GET https://x402.tbs-digital.com/weather/historical

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
67 ms typical, 67 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://x402.tbs-digital.com/weather/historical?city=Paris"
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%2Fx402.tbs-digital.com%2Fweather%2Fhistorical
const res = await pay("https://x402.tbs-digital.com/weather/historical?city=Paris");
console.log(await res.json());

Example input

{
  "city": "Paris"
}

Example output

{
  "daily": [
    {
      "condition_code": "1",
      "date": "2026-06-01",
      "precip_sum_mm": 0.2,
      "temp_max_c": 24.1,
      "temp_min_c": 12.4
    }
  ],
  "generated_at": "2026-08-09T12:00:00.000Z",
  "location": {
    "country": "FR",
    "lat": 48.85,
    "lon": 2.35,
    "name": "Paris"
  },
  "payer": {
    "address": "0x0000000000000000000000000000000000000000",
    "network": "base"
  },
  "range": {
    "end": "2026-06-07",
    "start": "2026-06-01"
  },
  "request_id": "0b21c0e6-6a3f-4e2a-8b1e-2f9d4c7a1e55",
  "source": "open-meteo",
  "timezone": "Europe/Paris",
  "utc_offset_seconds": 7200
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed40267 ms$0.001
8 h agoPassed402263 ms$0.001