Analytics
Get yield prediction
ML-based yield forecast with confidence intervals, trained on the farm’s harvest history.
GET
Authentication
Requires a key with theanalytics:read scope.
Path parameters
Farm UUID.
Query parameters
Crop name (e.g.
wheat, date palm).Positive number in the farm’s
areaUnit.Optional variety name (improves prediction accuracy when historical data exists for the same variety).
winter, summer, autumn, spring, year_round.Optional field UUID. When provided, the model uses the field’s soil characteristics (overrides farm-level defaults).
Response
Errors
| Status | When |
|---|---|
400 VALIDATION_ERROR | Missing cropType or plantedArea, or plantedArea not positive |
400 INVALID_ID | {id} or fieldId is not a valid UUID |
401 | Missing, malformed, expired, or revoked API key |
403 INSUFFICIENT_SCOPE | Key lacks analytics:read scope |
404 NOT_FOUND | Farm doesn’t exist or belongs to another user |
429 RATE_LIMIT_EXCEEDED | Per-user rate limit reached |
5xx | Server error |
Notes
- The model needs at least 3 historical harvested/failed crops of the same
cropTypefordata-drivenaccuracy. Fewer historical crops drops thetrustBadgetodata-assistedorai-generated. - See Trust badges for the integrity contract.