Overview
Returns hour-by-hour weather data including a playability score for each hour. Useful for building weather previews, condition timelines, or calendar heat maps in your booking UI.Query parameters
float
required
Latitude of the location.
float
required
Longitude of the location.
integer
Number of days to return. Must be between 1 and 7. Defaults to
3.string
Activity type used to weight the per-hour playability scores. Defaults to
outdoor. See supported sports.Example request
Response
Response fields
object
The coordinates used for the forecast.
array
Array of hourly forecast objects, each containing:
time— ISO 8601 timestamp for this hour (UTC)temp_c— Temperature in Celsiusrain_mm— Rainfall in millimetres expected during this hourwind_kmh— Average wind speed in km/hcloud_cover_pct— Cloud cover as a percentage (0–100)playability_score— Weather suitability score for this hour (0–100)
Use case: calendar heat map
A common pattern is to fetch 7 days of forecast data when a user opens your booking calendar, then colour-code each available slot by itsplayability_score:
- 🟢 80–100 — highlight as recommended
- 🟡 50–79 — show as marginal
- 🔴 0–49 — dim or flag as risky