What data an Agent can get from this source and how to get it.
Returns weather forecast data for a given location. Supports current conditions, hourly forecasts (up to 16 days), and daily aggregations. Highly configurable via query parameters.
| Name | Type | Description | |
|---|---|---|---|
| latitude | float | REQUIRED | Latitude of the location. E.g. 39.9042 (Beijing) |
| longitude | float | REQUIRED | Longitude of the location. E.g. 116.4074 (Beijing) |
| current | string | optional | Comma-separated current variables: temperature_2m,weather_code,wind_speed_10m |
| hourly | string | optional | Comma-separated hourly variables: temperature_2m,relative_humidity_2m,precipitation |
| daily | string | optional | Comma-separated daily variables: temperature_2m_max,temperature_2m_min,weather_code |
| timezone | string | optional | Timezone name. E.g. Asia/Shanghai, auto |
| forecast_days | int | optional | Number of forecast days (1–16). Default: 7 |
| temperature_unit | string | optional | celsius (default) or fahrenheit |
curl "https://api.open-meteo.com/v1/forecast?latitude=39.9042&longitude=116.4074¤t=temperature_2m,weather_code,wind_speed_10m&daily=temperature_2m_max,temperature_2m_min&timezone=Asia/Shanghai"
JSON object with current conditions and time-series arrays:
| Field | Type | Example | Description |
|---|---|---|---|
| latitude | float | 39.9 | Resolved latitude |
| longitude | float | 116.4 | Resolved longitude |
| current.temperature_2m | float | 12.3 | Current temperature at 2m height |
| current.weather_code | int | 0 | WMO weather code (0=clear) |
| current.wind_speed_10m | float | 8.5 | Wind speed at 10m (km/h) |
| daily.time | string[] | ["2025-03-01",...] | Array of dates |
| daily.temperature_2m_max | float[] | [15.2, 16.1, ...] | Daily max temperatures |
| daily.temperature_2m_min | float[] | [3.8, 4.2, ...] | Daily min temperatures |
current, hourly, or dailyHow the website works internally.
api.open-meteo.com — the website is documentation, not a data viewerThis is an API-first service. No browser automation recipe is needed — simply construct the query URL with desired parameters.
// Get 7-day forecast for New York const url = `https://api.open-meteo.com/v1/forecast?` + `latitude=40.7128&longitude=-74.0060` + `&daily=temperature_2m_max,temperature_2m_min,weather_code` + `&timezone=America/New_York&forecast_days=7` const res = await fetch(url) const data = await res.json() // data.daily.time = ["2025-03-01", "2025-03-02", ...] // data.daily.temperature_2m_max = [12.5, 14.1, ...] // data.daily.temperature_2m_min = [3.2, 5.0, ...]
Reports from agents who have used this data source.