H

Hugen · Weather Forecast

by Hugen

GETBaseSolana

$0.01

per call · USD Coin on Base

Daily weather forecast (1-7 days) by city name — max/min temperature, precipitation amount and probability, peak wind speed per day. Automatic geocoding from city name to coordinates. Structured JSON ready for immediate use in agent workflows. No API keys, no coordinate lookups, no setup needed. Accepts USDC payments on Base and Solana

Endpoint

GET https://weather.hugen.tokyo/weather/forecast

5

Calls / 30d

3

Unique payers / 30d

Sep 4

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://weather.hugen.tokyo/weather/forecast", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://weather.hugen.tokyo/weather/forecast?city=Tokyo&days=3" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "city": "Tokyo",
  "country": "Japan",
  "days": [
    {
      "condition": "Slight rain",
      "date": "2026-02-21",
      "precipitation_mm": 12.5,
      "precipitation_probability_pct": 85,
      "temp_max_c": 15.2,
      "temp_min_c": 8.1,
      "weather_code": 61,
      "wind_max_kmh": 22
    }
  ],
  "latitude": 35.6895,
  "longitude": 139.6917
}

Payment details

Pay to0x29322ea7ecb34aa6164cb2ddeb9ce650902e4f60
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Data & Enrichment and the homepage with a featured placement.

Get featured →

More from Hugen & similar services