The crop advisor endpoint computes a weighted aptitude score (0–100) for a given crop at a geographic location. It pulls a five-year climate baseline (2019–2023) from Open-Meteo, overlays recent fire hotspot data from NASA FIRMS, and runs the scoring engine to produce a human-readable recommendation alongside a breakdown of individual scoring factors. You can call this endpoint to decide which crops to plant in a given area or to evaluate climate suitability before committing to a field.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.
Endpoint
Parameters
Center latitude of the location you want to evaluate. Decimal degrees, WGS 84.
Center longitude of the location you want to evaluate. Decimal degrees, WGS 84.
Identifier for the crop to score. The following canonical IDs are supported:
English aliases are also accepted and automatically resolved to the canonical ID:
| Canonical ID | Crop (ES) | Crop (EN) |
|---|---|---|
maiz | Maíz | Maize |
trigo | Trigo | Wheat |
cafe | Café | Coffee |
soya | Soya | Soybean |
vid | Vid | Grapevine |
frijol | Frijol | Common Bean |
papa | Papa | Potato |
arroz | Arroz | Rice |
cana | Caña de azúcar | Sugarcane |
tomate | Tomate | Tomato |
cebolla | Cebolla | Onion |
ajo | Ajo | Garlic |
girasol | Girasol | Sunflower |
sorgo | Sorgo | Sorghum |
algodon | Algodón | Cotton |
quinua | Quinua | Quinoa |
aguacate | Aguacate | Avocado |
maize, wheat, coffee, soybean, vineyard, bean, potato, rice, sugarcane, tomato, onion, garlic, sunflower, sorghum, cotton, quinoa, avocado.Season context for the score calculation. Accepted values:
lluvias (rainy season), secas (dry season), annual (full-year average).Optional ISO 3166-1 alpha-2 country code for the location being queried. Must be a LATAM country code, excluding Brazil (
BR). Examples: MX, CO, GT. Used by deployments with location tracking enabled; safe to omit for standard use.Response
The crop ID you submitted, echoed back in the response.
Weighted aptitude score from 0 to 100. Calculated as the dot product of individual factor scores and their weights.
Human-readable aptitude tier derived from
score:"Alta"— score ≥ 70"Media"— score 45–69"Baja"— score < 45
Plain-language recommendation summarising the score, highlighting critical or attention-worthy factors, and suggesting management actions where relevant.
List of individual scoring factors that compose the final score.
The season value used for this calculation, echoed from the request.
Latitude echoed from the request.
Longitude echoed from the request.
Cache metadata describing whether the underlying climate data was served from cache or fetched live.
Error codes
| Code | Description |
|---|---|
502 | Upstream error from Open-Meteo or NASA FIRMS. The detail field contains the upstream message. |
503 | Open-Meteo rate limit hit. Retry after a short back-off. |