🌤️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
| Day | Min–Max | Conditions |
|---|---|---|
| 2026-10-12 | 16.3–23.3 °C | Fog |
| 2026-10-13 | 17.7–24.4 °C | Overcast |
| 2026-10-14 | 18.6–26.6 °C | Overcast |
Machine API (x402)
$0.005 / callThe 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" }}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…).