H

Hugen · Weather Current

by Hugen

GETBaseSolana

$0.01

per call · USD Coin on Base

Instant weather by city name — temperature, feels-like, humidity, wind speed, precipitation, and condition. Just pass a city name; geocoding, data fetching, and response structuring are handled in one call. Global coverage updated every 15 minutes. No API keys, no geocoding setup, no rate limits. Accepts USDC payments on Base and Solana

Endpoint

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

27

Calls / 30d

9

Unique payers / 30d

Sep 10

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/current", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://weather.hugen.tokyo/weather/current?city=Tokyo" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "city": "Tokyo",
  "condition": "Partly cloudy",
  "humidity_pct": 65,
  "temperature_c": 12.5,
  "wind_speed_kmh": 15.3
}

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