Product macronutrients by EAN

Look up a packaged food product by its EAN and get its declared macronutrients (per 100 g): calories, fat, saturated fat, carbohydrates, sugars, protein, salt and fibre. Merge the response with the other by-EAN endpoints on the 'ean' key. Use Cases: FITNESS & NUTRITION TRACKING APPS • Populate the nutrition table of a scanned product without a proprietary food database. PHARMA — MEAL PLAN VERIFICATION • Pull the declared macros of a product to validate it against a therapeutic dietary plan.

GET
/products/{ean}/macronutrients
Products
Cost: 10 credits

Response

200
application/json
object

ProductMacronutrientsResult

Macronutrients of a product looked up by EAN, as declared on the label (per 100 g). Disjoint from the basic-info and compatibility by-EAN endpoints: merge the responses on 'ean'.

object

ean

Normalized EAN: the canonical key used to merge the responses of the by-EAN endpoints

string

kcal?

Kilocalories

number<double> | null

fat?

Total fat (g)

number<double> | null

saturatedFat?

Saturated fat (g)

number<double> | null

carbohydrates?

Carbohydrates (g)

number<double> | null

sugars?

Sugars (g)

number<double> | null

protein?

Protein (g)

number<double> | null

salt?

Salt (g)

number<double> | null

fiber?

Dietary fibre (g)

number<double> | null
204
application/json

No Content

No schemas are available for this endpoint.

401
application/json
object

Unauthorized

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
403
application/json
object

Forbidden

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
406
application/json
object

Not Acceptable

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
422
application/json
object

Unprocessable Entity

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
429
application/json
object

Too Many Requests (APIM)

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
500
application/json
object

Internal Server Error

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
502
application/json
object

Bad Gateway (APIM)

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
504
application/json
object

Gateway Timeout (APIM)

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string