cURL
curl --request POST \ --url http://api.calai.app/v4/scanBarcode \ --header 'Content-Type: application/json' \ --data '{ "data": { "barcode": "<string>" } }'
{ "success": true, "data": { "carbs": 123, "fats": 123, "protein": 123, "ethanolCarbRatio": 123, "calories": 123, "name": "<string>", "servings": 123, "ingredients": [ { "name": "<string>", "protein": 123, "carbs": 123, "fats": 123, "calories": 123, "isAdded": true } ], "healthRating": { "rating": 123, "tip1": "<string>", "tip2": "<string>", "tip3": "<string>" }, "shouldUseLabelScanner": true }, "error": "barcodeNotFound" }
Scans a barcode string and returns nutritional information
Show child attributes
Successful response
barcodeNotFound
unauthorized
exceededDailyLimit
invalidApiKey
internalServerError