Once you have your API token, you can start making requests.
See all endpoints with their data structure at api.clarifresh.com.
Base endpoint for inspection export:
https://public-services.clarifresh.com/api/exportOneExample curl request for the export endpoint:
curl -X GET "https://public-services.clarifruit.com/api/exportOne?companyId=50&inspectionId=681764d25740e98a06c3496f"
-H "accept: application/json" \
-H "X-Api-Key: YOUR_API_TOKEN"Payload example of the request response:
{
"id": "681764d25740e98a06c3496f",
"companyId": -890066,
"name": "JEEP0002",
"creationTime": 1746363602231,
"creationTimeISO": "2025-05-04T13:00:02Z",
"externalProduceId": "yd_ext_apple",
"images": [
{
"url": "https://images.clarifruit.com/-890066/1922/2025/05/04/x-41896.jpg",
"type": "cv"
},
{
"url": "https://images.clarifruit.com/-890066/1922/2025/05/04/x-48789.jpg",
"type": "cv"
}
],
"state": "completed",
"varietyId": 213,
"varietyName": "Common Red Apple",
"processId": 10617,
"processName": "My process",
"standardId": 15129,
"standardName": "My standard",
"grade": "C",
"username": "demo@clarifresh.com",
"inspectorEmail": "demo@clarifresh.com",
"inspectorName": "demo user",
"attributes": [
{
"value": 8,
"count": 1,
"id": 2,
"name": "Acidity",
"grade": "C"
},
{
"value": 2,
"count": 1,
"id": 14,
"name": "Appearance",
"valueName": "Average",
"grade": "B"
},
{
"value": 6,
"count": 1,
"id": 42,
"name": "Count"
},
{
"value": 2.7244,
"count": 4,
"id": 6,
"name": "Diameter",
"grade": "B"
}
]
}