The crop advisor endpoint scores how well a given crop is likely to perform at a specific latitude/longitude, based on five years of historical climate data from Open-Meteo (ERA5). The API combines rainfall adequacy, temperature fit, soil moisture, biophysical suitability (GAEZ proxy), and recent fire exposure into a single 0–100 score and an aptitude label.Documentation Index
Fetch the complete documentation index at: https://docs.climatifai.com/llms.txt
Use this file to discover all available pages before exploring further.
Choose your location
The API uses decimal-degree coordinates in the standard WGS 84 convention:The response returns a ranked list of matching places, each with
- Latitude (
lat): positive = north, negative = south. Range: −90 to 90. - Longitude (
lon): positive = east, negative = west. Range: −180 to 180.
lat=-34.6, lon=-58.4; Mexico City is lat=19.4, lon=-99.1.If you do not know the exact coordinates for a region, use the geocode endpoint to search by name:lat and lon you can pass directly to the advisor.Choose a crop ID
Pass a
Passing an unrecognized
crop_id from the table below. You can use either the Spanish ID (canonical) or its English alias — the API resolves both.crop_id | English alias | Common name |
|---|---|---|
maiz | maize | Maize / Corn |
trigo | wheat | Wheat |
cafe | coffee | Coffee (Arabica) |
soya | soybean | Soybean |
vid | vineyard | Grapevine |
frijol | bean | Common Bean |
papa | potato | Potato |
arroz | rice | Rice |
cana | sugarcane | Sugarcane |
tomate | tomato | Tomato |
cebolla | onion | Onion |
ajo | garlic | Garlic |
girasol | sunflower | Sunflower |
sorgo | sorghum | Sorghum |
algodon | cotton | Cotton |
quinua | quinoa | Quinoa |
aguacate | avocado | Avocado |
crop_id returns a score of 0 with aptitude "Desconocida".Choose a season
The
For annual crops such as maize or soybean,
season parameter filters which historical months are used to compute climate averages:| Value | Meaning |
|---|---|
annual | Full 12-month average (default) |
lluvias | Rainy-season months (April–October in most of LATAM) |
secas | Dry-season months (November–March) |
annual is usually the right choice. For crops that are planted specifically in one season, use the matching season value to get a more precise score.Make the request
Send a All four parameters (
GET request to /agri/advisor with your chosen parameters:lat, lon, crop_id, season) are accepted as query string values. season defaults to annual if omitted.Interpret the response
The response contains a top-level score, an aptitude label, a per-factor breakdown, and a human-readable recommendation.Key fields:
score— Weighted average of all factor scores, 0–100. Higher is better.aptitude— Summary label:Alta(≥ 70),Media(45–69), orBaja(< 45).factors— Array of individual scoring dimensions. Each factor includes:score(0–100): how well the observed value fits the crop’s ideal range.weight: this factor’s contribution to the final score (all weights sum to 1.0).status:ok(score ≥ 70),warning(45–69), orrisk(< 45).
recommendation_text— Plain-language summary in Spanish, listing anyriskorwarningfactors.