Skip to main content
This page documents every query available in the Climatifai GraphQL schema. Each entry shows the full argument list, the return type and its fields, and a working curl example you can copy and run immediately. All queries are read-only — the schema exposes no mutations.

advisor

Returns an agricultural aptitude score for a specific crop at a given location. The score (0–100) is derived from a weighted combination of climate, soil, and fire exposure factors.
Arguments Return fields — AdvisorResult
cURL

climate

Returns historical monthly climate data and CMIP6 climate projections for a location. Use this query to understand long-term trends and future scenarios without making separate REST calls.
Arguments Return fields — ClimateResult
cURL

hotspots

Returns active NASA FIRMS fire hotspot detections within a radius around a location. Each record includes brightness, fire radiative power, satellite, and confidence level.
Arguments Return fields — HotspotsResult
cURL

fireRisk

Returns an aggregated 0–100 fire risk score and a human-readable label for a location. This query is equivalent to the REST GET /fires/risk endpoint but lets you combine it with other data in a single request.
Arguments Return fields — FireRiskResult
cURL

compare

Evaluates two crops at the same location and season in parallel and returns their individual advisor results alongside a winner field indicating which crop scored higher. If both crops score equally, winner is null.
Arguments Return fields — CompareResult
cURL

alerts

Returns live agroclimatic alerts for eight key agricultural zones across LATAM (excluding Brazil). Alerts are generated in real time from NASA FIRMS fire data and Open-Meteo forecasts, and cover fire activity, heat waves, drought, and heavy rain events.
Arguments This query takes no arguments. Return fields — AlertsResult Monitored zones: Orinoquía (Colombia/Venezuela), Chaco (Paraguay/Argentina), Bajío (México), Centroamérica, Llanos Orientales (Colombia), Pampa Húmeda (Argentina), Valle Central (Chile), Sierra Peruana.
cURL

geocode

Searches for place names within LATAM and returns matching locations with coordinates, country, and elevation metadata. Use this query to resolve a user-supplied location string into lat/lon coordinates before calling other queries.
Arguments Return fields — GeocodeResult
cURL

ragContext

Performs semantic search over the agroclimatic document corpus using ClimateBERT embeddings and Qdrant vector search. Returns the most relevant text passages along with their source identifiers and similarity scores.
Arguments Return fields — [RagPassage]
cURL