Skip to main content
Analyze Nutrition Facts Label

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
analysis_mode
enum<string>
default:precise

A preferred mode for the analysis

Available options:
fast,
precise
body
string

Base64-encoded binary data, this or 'body_url' is required

body_url
string

URL to the image, this or 'body' is required

Response

OK

name
string
required

Detected ingredient name

Example:

"beef and broccoli stir-fry"

serving_size
number<double>
required

Serving size in metric units

Required range: x >= 0.01
Example:

120

unit
enum<string>
required

Metric unit (g for solids, ml for liquids)

Available options:
g,
mg,
mcg,
ml,
kcal
Example:

"g"

failure_reason
string
read-only

Reason for processing failure

Example:

"Unable to identify label"

nutritional_fields
object

Nutritional values in the given serving size

status
enum<string>
read-only

Processing status

Available options:
completed,
failed
Example:

"completed"