Skip to main content
The climate endpoint returns two time series for a geographic location: a historical monthly record spanning the years you specify, and a CMIP6 climate projection under a chosen emissions scenario. Both series include temperature, precipitation, and soil moisture for each month. You can use this data to analyse long-term climate trends, calibrate crop models, or compare a baseline period against projected future conditions.

Endpoint

Parameters

float
required
Latitude of the location in decimal degrees, WGS 84.
float
required
Longitude of the location in decimal degrees, WGS 84.
integer
default:"1991"
Start year (inclusive) for the historical data series. Combined with to, this defines the historical baseline period.
integer
default:"2020"
End year (inclusive) for the historical data series.
string
default:"SSP3-7.0"
CMIP6 emissions scenario to use for the projected series. Example values: SSP1-2.6, SSP2-4.5, SSP3-7.0, SSP5-8.5.
string
Optional ISO 3166-1 alpha-2 country code for the location being queried. Must be a LATAM country code, excluding Brazil (BR). Examples: PE, MX, CO. Safe to omit for standard use.

Response

float
required
Latitude echoed from the request.
float
required
Longitude echoed from the request.
string
required
CMIP6 scenario used for the projected series, echoed from the request.
array
required
Monthly climate observations for the requested historical period. Each element is a ClimateMonth object.
array
required
Monthly climate values from the CMIP6 projection. Shares the same ClimateMonth structure as historical.
object
Cache freshness metadata for both the historical and projected datasets.
object
Contains upstream error information if any part of the data could not be fetched live and a stale or fallback result was served instead.

Error codes

Example