x402AgentTools

🌤️Weather in Barcelona

Current weather in Barcelona — temperature, conditions, humidity and wind, plus a 3-day forecast. Live from Open-Meteo, cached 30 minutes, with a paid JSON API for agents.

Key facts

Humidity97%
Wind4.7 km/h
Coordinates41.38879, 2.15899

Data

DayMin–MaxConditions
2026-10-1216.3–23.3 °CFog
2026-10-1317.7–24.4 °COvercast
2026-10-1418.6–26.6 °COvercast

Machine API (x402)

$0.005 / call

The same query is available to AI agents as a paid JSON endpoint — pre-configured for this subject:

GET /api/v1/live/weather?city=Barcelona HTTP/1.1
Host: localhost:3000

→ 402 (x402 payment required)
→ 200 {"tool": "live/weather", "result": { "value": 17, "answer": "17 °C — Fog" }}

/llms.txt · OpenAPI · agent guide

Frequently asked questions

Humidity — Weather in Barcelona?

Weather in Barcelona: Humidity — 97%.

Wind — Weather in Barcelona?

Weather in Barcelona: Wind — 4.7 km/h.

Coordinates — Weather in Barcelona?

Weather in Barcelona: Coordinates — 41.38879, 2.15899.

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

Weather in RotterdamWeather in SantiagoWeather in FlorenceWeather in TorontoWeather in Los AngelesWeather in Antwerp🌤️ All weather (live) options