x402basequality 0.82

Daily weather forecasts for any city worldwide via x402 micropayment at $0.01 per call.

Price
per_call
Protocol
x402
Verified
no

What it does

The Weather Forecast endpoint at weather.hugen.tokyo provides structured JSON weather forecasts for any city worldwide. You can query by city name or by latitude/longitude coordinates, and request between 1 and 7 days of forecast data (defaulting to 3 days). Each forecast day includes condition description, weather code, max/min temperatures in Celsius, precipitation in mm, precipitation probability percentage, and maximum wind speed in km/h.

The endpoint is gated by the x402 protocol, requiring a micropayment of $0.01 USDC on the Base network per request. No API keys or geocoding setup are needed — just pass a city name or coordinates. The response schema is well-defined via OpenAPI 3.1, returning a ForecastResponse object with city, country, latitude, longitude, and an array of ForecastDay objects.

Alternative access methods are available: an MCP gateway at mcp.hugen.tokyo, an API key system with $0.05 free credit via discovery.hugen.tokyo, and a Python SDK (x402-pay) for one-line access without wallet setup. The API also offers a companion /weather/current endpoint for real-time conditions.

Capabilities

weather-forecastcity-lookuplat-lon-querymulti-day-forecaststructured-jsonx402-paymentmicropaymentno-api-key-required

Use cases

  • AI agents fetching weather forecasts to plan user activities or travel
  • Chatbots providing multi-day weather outlooks for any city
  • Automated dashboards displaying upcoming weather conditions
  • Travel planning tools that need structured forecast data
  • IoT or smart-home systems querying upcoming weather for scheduling

Fit

Best for

  • Agent-to-agent weather data retrieval with per-call micropayments
  • Quick city-name-based forecast lookups without API key management
  • Structured JSON forecast consumption by LLM-powered applications

Not for

  • Historical weather data analysis (only provides future forecasts)
  • High-resolution hourly or sub-daily forecasts (only daily granularity)
  • Free unlimited bulk weather data scraping

Quick start

curl "https://weather.hugen.tokyo/weather/forecast?city=Tokyo&days=3"

Example

Response

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

Endpoint

Transporthttp
Protocolx402
Pay to0x29322Ea7EcB34aA6164cb2ddeB9CE650902E4f60
CurrencyUSD COIN

Quality

0.82/ 1.00

Full OpenAPI 3.1 schema with well-defined request parameters and response models. Live x402 402 challenge confirmed with sample response data. Pricing is clear ($0.01 USDC on Base). Documentation is available via /docs but no dedicated prose docs, examples, or pricing page exist beyond the OpenAPI spec and challenge payload.

Warnings

  • Root URL returns 404; no landing page — only /docs and the API endpoints are functional
  • No dedicated pricing page; price is inferred solely from the x402 challenge payload
  • Upstream weather data source is not disclosed

Citations

Provenance

Indexed fromx402_bazaar
Enriched2026-04-22 01:17:51Z · anthropic/claude-opus-4.6 · v2
First seen2026-04-21
Last seen2026-04-22

Agent access