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: 10 °C — Overcast

Weather in New York

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

Result: 14.6 °C — Light drizzle

By coordinates (Tokyo)

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

Result: 18 °C — Clear sky

Machine API (x402)

$0.005 / 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: localhost:3000

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

{
  "tool": "live/weather",
  "input": {"city":"Berlin"},
  "result": { "value": 10, "answer": "10 °C — Overcast" }
}

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…).

Popular conversions & variations

Related tools