Skip to main content
Retrieve forecast and historical weather data either by Leaf field or by latitude/longitude. Use the field endpoints when you want Leaf to resolve the field centroid for you, and use the lat/lon endpoints when you already know the exact coordinates. For conceptual background, see Weather Overview.

Base URL

Endpoints

Daily endpoints accept a maximum range of 366 days per request. Hourly endpoints accept a maximum of 30 days.
Historical data less than 5 days old is unavailable. Use the forecast endpoints for recent weather data.

Field-based endpoints

These endpoints retrieve weather data centered on a Leaf user’s field. The API uses the field’s centroid coordinates automatically.

Get daily forecast (field)

GET /users/{leafUserId}/weather/forecast/field/{fieldId}/daily Returns daily forecast weather data for a field.

Parameters

Request

Response


Get hourly forecast (field)

GET /users/{leafUserId}/weather/forecast/field/{fieldId}/hourly Returns hourly forecast weather data for a field.

Parameters

Request

Response


Get daily historical (field)

GET /users/{leafUserId}/weather/historical/field/{fieldId}/daily Returns daily historical weather data for a field.

Parameters

Request

Response


Get hourly historical (field)

GET /users/{leafUserId}/weather/historical/field/{fieldId}/hourly Returns hourly historical weather data for a field.

Parameters

Request

Response


Lat/lon endpoints

These endpoints retrieve weather data for an arbitrary latitude/longitude pair. They support additional model and units query parameters.

Get daily forecast (lat/lon)

GET /weather/forecast/daily/{lat},{lon} Returns daily forecast weather data for a coordinate pair.

Parameters

Request

Response


Get hourly forecast (lat/lon)

GET /weather/forecast/hourly/{lat},{lon} Returns hourly forecast weather data for a coordinate pair.

Parameters

Request

Response


Get daily historical (lat/lon)

GET /weather/historical/daily/{lat},{lon} Returns daily historical weather data for a coordinate pair.

Parameters

Request

Response


Get hourly historical (lat/lon)

GET /weather/historical/hourly/{lat},{lon} Returns hourly historical weather data for a coordinate pair.

Parameters

Request

Response


Models reference

Forecast models

Historical models

Use era5Land when you need finer spatial resolution for land-surface variables like soil temperature and soil moisture.
Last modified on March 24, 2026