Skip to main content

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.

The soil endpoint will return soil properties — pH and texture — for any LATAM coordinate, sourced from the SoilGrids global soil database. This data is used by the crop advisor to calculate the soil pH compatibility factor.
SoilGrids integration is currently in progress. The endpoint is available and returns the correct response shape, but ph and texture values are null until the integration is complete. The crop advisor uses a neutral fallback score for soil pH when live data is unavailable.

Endpoint

GET api.climatifai.com/agri/soil

Parameters

lat
float
required
Latitude of the location in decimal degrees, WGS 84.
lon
float
required
Longitude of the location in decimal degrees, WGS 84.

Response

lat
float
required
Latitude echoed from the request.
lon
float
required
Longitude echoed from the request.
soil
object
required
Soil property object for the location.

Example

curl "https://api.climatifai.com/agri/soil?lat=20.5&lon=-101.0"
{
  "lat": 20.5,
  "lon": -101.0,
  "soil": {
    "ph": null,
    "texture": null
  }
}