Skip to content

Crops (code+label)

GET /reference/crops
  • Scope catalog:read
  • API key x-api-key
  • Base URL https://api.hub.akuasense.com/v1

Query parameters

  • lang string

    Language of the label fields, and of a probe’s default name (name: “Probe 3”, “Sonde 3”). The code values never vary. A crop with no translation falls back to its French name.

    Values: enfr
    Default: en

Response

200

Crop catalog, sorted on the French name whatever lang is

  • data array of CropReference always present

    A crop from the shared catalog. root_depth_min_cm and root_depth_max_cm do NOT describe root growth (a start and an end): they are the two bounds of one and the same MAXIMUM depth, which depends on the soil.

    Show 5 attributes Hide attributes
    • code string always present

      Stable identifier of the crop. This is the value to pass, as an integer, in cropId of PUT /modules/{id}/crop.

    • label string always present

      Name of the crop in the requested language (lang). With no English translation, falls back to the French name.

    • scientific_name string nullable always present

      Scientific name. null if not filled in.

    • root_depth_min_cm number always present

      Maximum root depth in HEAVY soil, in cm — the lower bound of the FAO-56 range. This is the one the hub uses to drive irrigation, constant over the whole cycle.

    • root_depth_max_cm number always present

      Maximum root depth in LIGHT soil, in cm — the upper bound. FAO-56 reserves it for water-stress modelling and rain-fed crops.

Errors

  • 401

    Not authenticated

  • 403

    Insufficient scope, or resource outside your company