x402AgentTools

🌤️Weather (Live)

Live weather from Open-Meteo: current temperature, humidity, wind and conditions plus a 3-day forecast, by city name or coordinates. No API key, cached 30 minutes.

Worked examples

Weather in Berlin

GET /api/v1/live/weather?city=Berlin

Result: 23.5 °C — Mainly clear

Weather in New York

GET /api/v1/live/weather?city=New%20York

Result: 15.3 °C — Overcast

By coordinates (Tokyo)

GET /api/v1/live/weather?lat=35.69&lon=139.69

Result: 19 °C — Drizzle

Machine API (x402)

$0.002 / call

This tool is also a JSON API for AI agents. Requests without payment receive 402 Payment Required plus instructions; agents pay USDC on Base via the x402 protocol — no accounts, no API keys.

GET /api/v1/live/weather?city=Berlin HTTP/1.1
Host: agenttools-hub.vercel.app

→ 402 (payment required, instructions in headers)
→ 200 (after X-PAYMENT header; JSON body below)

{
  "tool": "live/weather",
  "input": {"city":"Berlin"},
  "result": { "value": 23.5, "answer": "23.5 °C — Mainly clear" }
}

Agent docs: /llms.txt · OpenAPI spec · integration guide

About this tool

Current conditions and a three-day forecast from Open-Meteo — one of the best free weather APIs, no key required. Give a city name (geocoded automatically) or exact coordinates.

Frequently asked questions

How accurate is the forecast?

Open-Meteo blends national weather models (ICON, GFS, ECMWF…); day-one forecasts are typically within 1–2 °C. Temperature is in Celsius by default.

How fresh is the data?

Model runs update every 1–6 hours; responses are cached 30 minutes. The weather code follows the WMO standard (0 = clear sky, 61 = rain…).

Related tools