Bin Scan

Data related to the Aerobotics TrueFruit Bin Scan product.

Recommended patterns for fetching TrueFruit bin scan data

How to fetch binscan size and grade distributions per orchard

  1. First pull per orchard size measurement dates for a given time period using the farming/truefruit/binscan/measurements/ endpoint. The response will return a list of objects containing an orchard_id and measurement_date. Filter the response using the processed_date query parameter. Using the processed_date is the most robust approach as it will avoid missing records where there was a delay between when the data was collected and when it become available to consume. If you are fetching data on a cron, for example once a day, you will use the date you last fetched data on.
  2. To fetch the detailed orchard distributions and aggregated metrics, pass the orchard_id and measurement_date received in the farming/truefruit/binscan/measurements/ response into the farming/truefruit/binscan/measurements/{orchard_id}/{measurement_date} endpoint. This will return a size, colour and blemish distribution array which contains the histogram bucket ranges and the percentage of fruit which fall in each bucket.

How to fetch binscan size and grade distributions per intake

  1. First pull per orchard size measurement dates for a given time period using the farming/truefruit/binscan/measurements/ endpoint. The response will return a list of objects containing an orchard_id and measurement_date. Filter the response using the processed_date query parameter. Using the processed_date is the most robust approach as it will avoid missing records where there was a delay between when the data was collected and when it become available to consume. If you are fetching data on a cron, for example once a day, you will use the date you last fetched data on.
  2. To fetch the detailed intake distributions and aggregated metrics, pass the orchard_id and measurement_date received in the farming/truefruit/binscan/measurements/ response into the farming/truefruit/binscan/measurements/{orchard_id}/{measurement_date} endpoint. Set the granularity query param to bin_group. The response will include a bin_distributions array. Use this field to access Binscan data aggregated by intake number. The associated intake number is returned in the bin_group_id field.

Bin Scan Measurement Compact

KeyTypeDescription
farm_idintegerThe unique identifier of the farm , provided by Aerobotics, which the measurement belongs to.
orchard_idintegerThe unique identifier of the orchard, provided by Aerobotics, which the measurement belongs to.
measurement_datedateThe date that the bin images were captured by the user
processed_datedateThe date that the measurement data completed processing by Aerobotics
average_fruit_size_mmnumberThe average fruit size

Example response

{
  "count": 0,
  "next": "string",
  "previous": "string",
  "results": [
    {
      "farm_id": 0,
      "orchard_id": 0,
      "measurement_date": "2025-09-18",
      "processed_date": "2025-09-18",
      "average_fruit_size_mm": 0
    }
  ]
}

Bin Scan Measurement Detailed

KeyTypeDescription
farm_idintegerThe unique identifier of the farm, provided by Aerobotics, which the measurement belongs to.
orchard_idintegerThe unique identifier of the orchard, provided by Aerobotics, which the measurement belongs to.
measurement_datedateThe date that the bin images were captured by the user
processed_datedateThe date that the measurement data completed processing by Aerobotics
bin_idintegerThe unique identifier of the bin, provided by Aerobotics, which the measurement belongs to. Returned when the request param granularity is set to bin
bin_external_idstringThe unique identifier of the bin, provided by user, which the measurement belongs to. Most often inputted by scanning a barcode on the bin using the Aerobotics mobile app.
bin_group_idstringThe unique identifier of a bin intake, provided by user, which the measurement belongs to. This data is captured via the Aerobotics mobile app and used to link multiple bins to a shipment
size_distribution[][object]An array of distribution objects that can be used to build a histogram of fruit sizes
blemish_distribution[][object]An array of distribution objects that can be used to build a histogram of blemish severity
color_distribution[][object]An array of distribution objects that can be used to build a histogram of fruit color categories
average_fruit_size_mmnumberThe average fruit size
count_fruit_measuredintegerThe number of individual fruit measured
count_binsintegerThe number of bins measured
bin_distributions[][object]An array of objects containing size, blemish and color distributions per bin. Will be returned when the request param granularity is set to bin_group or bin

Recipes