Weather Forecast

Retrieve current weather conditions and forecast for a geographic location.

1 endpoint10 calls1/1 passing
Get API key

Get current and forecast weather data for a location.

GET/v1/…weather/forecast
passing · 0.8s5m cache

Try it

Checking your keys…

Parameters

lat

number · query · required

Latitude (-90..90).

lon

number · query · required

Longitude (-180..180).

days

number · query · optional

Forecast days (1-7). Default 3.

Example response

{"project":"web-tools:weather",  "data": {"ok":true,    "daily": {      "time": [        "2026-05-27",        "2026-05-28",        "2026-05-29"      ],      "precipitation_sum": [        0,        0,        0.7      ],      "temperature_2m_max": [        32.2,        32.7,        33.1      ],      "temperature_2m_min": [        24.1,        22.9,        23.9      ]    },    "current": {"time":"2026-05-27T20:45","interval":900,"weather_code":0,"temperature_2m":27.6,"wind_speed_10m":4.9,"relative_humidity_2m":82    },"latitude":-6.221441,"timezone":"Asia/Jakarta","elevation":12,"longitude":106.856186,    "daily_units": {"time":"iso8601","precipitation_sum":"mm","temperature_2m_max":"°C","temperature_2m_min":"°C"    },    "current_units": {"time":"iso8601","interval":"seconds","weather_code":"wmo code","temperature_2m":"°C","wind_speed_10m":"km/h","relative_humidity_2m":"%"    },"generationtime_ms":0.1575946807861328,"utc_offset_seconds":25200,"timezone_abbreviation":"GMT+7"  },"timestamp":"2026-06-13T02:24:53Z"}

Errors

  • 401Missing or invalid x-api-key
  • 404Not found or private
  • 429Rate limit or monthly quota reached

Code

const data = await client.run(  "web-tools:weather",  "forecast",  { lat: -6.2088, lon: 106.8456, days: 3 });