81trust / 100

Weather Flood

by TBS Weather & Climate API in Weather & location

x402 APIPassing, checked 2 h ago

River discharge and flood-risk forecast (Copernicus GloFAS, 5 km grid) for the nearest river to any lat/lon. Returns current river discharge in cubic meters per second (m3/s) plus mean, median, max, min and 25/75 percentiles. Hydrology and natural-disaster data for flood forecasting, insurance, agriculture and river logistics.

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

Last 30 days

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

Example input

{
  "city": "Paris"
}

Example output

{
  "flood": {
    "river_discharge_m3s": 42.5,
    "river_discharge_max_m3s": 61,
    "river_discharge_mean_m3s": 38,
    "river_discharge_median_m3s": 37.2,
    "river_discharge_min_m3s": 22.4,
    "river_discharge_p25_m3s": 31,
    "river_discharge_p75_m3s": 47
  },
  "generated_at": "2026-08-09T12:00:00.000Z",
  "location": {
    "country": "FR",
    "lat": 48.85,
    "lon": 2.35,
    "name": "Paris"
  },
  "payer": {
    "address": "0x0000000000000000000000000000000000000000",
    "network": "base"
  },
  "request_id": "0b21c0e6-6a3f-4e2a-8b1e-2f9d4c7a1e55",
  "source": "open-meteo"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed40264 ms$0.001
7 h agoPassed40261 ms$0.001