CropSense

Search documentation

Search for a command to run...

API Reference

Crop Health Insights

Crop health score, stress level, and yield prediction per field, derived from satellite observations.

get/crop-health-insights/field/{field_id}

Get field crop health insights by field id

Requires an Authorization: Bearer header.

Parameters

field_idstringpathrequired

Response 200

insightsCropHealthInsights[]required
totalintegerrequired
GET /crop-health-insights/field/{field_id}
curl -X GET "https://api.cropsense.africa/crop-health-insights/field/8b6e1a2f-2d4c-4e9a-9b0f-1c7d3e5a6f42" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Example response · 200
{
  "insights": [
    {
      "insight_id": "insight_id",
      "farm_id": "3fa2c9e1-6b3a-4d2e-9c11-4a8e5f9d2b7a",
      "field_id": "8b6e1a2f-2d4c-4e9a-9b0f-1c7d3e5a6f42",
      "date": "2026-06-15T09:30:00Z",
      "health_score": 1.5,
      "stress_level": 1.5,
      "yield_prediction": 1.5,
      "is_active": true,
      "created_at": "2026-06-15T09:30:00Z",
      "updated_at": "2026-06-15T09:30:00Z"
    }
  ],
  "total": 1
}
get/crop-health-insights/field/{field_id}/latest

Get latest crop health insight by field id

Requires an Authorization: Bearer header.

Parameters

field_idstringpathrequired

Response 200

insight_idstringrequired
farm_idstringrequired
field_idstringrequired
datestring<date-time>required
health_scorenumberrequired
stress_levelnumberrequired
yield_predictionnumberrequired
is_activebooleanrequired
created_atstring<date-time>required
updated_atstring<date-time>required
GET /crop-health-insights/field/{field_id}/latest
curl -X GET "https://api.cropsense.africa/crop-health-insights/field/8b6e1a2f-2d4c-4e9a-9b0f-1c7d3e5a6f42/latest" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Example response · 200
{
  "insight_id": "insight_id",
  "farm_id": "3fa2c9e1-6b3a-4d2e-9c11-4a8e5f9d2b7a",
  "field_id": "8b6e1a2f-2d4c-4e9a-9b0f-1c7d3e5a6f42",
  "date": "2026-06-15T09:30:00Z",
  "health_score": 1.5,
  "stress_level": 1.5,
  "yield_prediction": 1.5,
  "is_active": true,
  "created_at": "2026-06-15T09:30:00Z",
  "updated_at": "2026-06-15T09:30:00Z"
}
get/crop-health-insights/{insight_id}

Get a field crop health insight by id

Get a crop health insight by id

Requires an Authorization: Bearer header.

Parameters

insight_idstringpathrequired

Response 200

insight_idstringrequired
farm_idstringrequired
field_idstringrequired
datestring<date-time>required
health_scorenumberrequired
stress_levelnumberrequired
yield_predictionnumberrequired
is_activebooleanrequired
created_atstring<date-time>required
updated_atstring<date-time>required
GET /crop-health-insights/{insight_id}
curl -X GET "https://api.cropsense.africa/crop-health-insights/insight_id" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Example response · 200
{
  "insight_id": "insight_id",
  "farm_id": "3fa2c9e1-6b3a-4d2e-9c11-4a8e5f9d2b7a",
  "field_id": "8b6e1a2f-2d4c-4e9a-9b0f-1c7d3e5a6f42",
  "date": "2026-06-15T09:30:00Z",
  "health_score": 1.5,
  "stress_level": 1.5,
  "yield_prediction": 1.5,
  "is_active": true,
  "created_at": "2026-06-15T09:30:00Z",
  "updated_at": "2026-06-15T09:30:00Z"
}