Product compatibility by EAN
Look up a packaged food product by its EAN and get its nutritional compatibility (vegetarian, vegan, gluten-free, allergens, ...), computed live from the label since the master catalog stores no precomputed flags. Decode flagId/outcomeId via the 'Definitions' endpoints. Merge the response with the other by-EAN endpoints on the 'ean' key. Use Cases: SHOPPING APP WITH BARCODE SCANNER • The user scans a barcode and instantly sees whether the product fits their lifestyle and allergen profile. GROCERY — CATALOG ENRICHMENT • Enrich every catalog product with lifestyle and allergen compatibility, starting from just the EAN.
Response
ProductCompatibilityResult
Nutritional compatibility of a product looked up by EAN, computed live from its ingredients and label (the master catalog stores no precomputed flags). Disjoint from the basic-info and macronutrients by-EAN endpoints: merge the responses on 'ean'.
object
ProductCompatibilityResult
Nutritional compatibility of a product looked up by EAN, computed live from its ingredients and label (the master catalog stores no precomputed flags). Disjoint from the basic-info and macronutrients by-EAN endpoints: merge the responses on 'ean'.
ean
Normalized EAN: the canonical key used to merge the responses of the by-EAN endpoints
compatibility
object[]
compatibility
AnalysisResultItem
Single nutritional compatibility result for one lifestyle flag - contains flag and outcome identifiers that can be decoded using the 'Definitions' endpoints to obtain localized descriptions
object
AnalysisResultItem
Single nutritional compatibility result for one lifestyle flag - contains flag and outcome identifiers that can be decoded using the 'Definitions' endpoints to obtain localized descriptions
flagId
Lifestyle flag identifier (e.g., vegetarian, vegan, gluten-free) - see 'Definitions' endpoints to decode this ID and get localized descriptions
outcomeId?
Outcome type identifier indicating the compatibility result - see 'Definitions' endpoints to decode this ID and get localized descriptions. Null when no outcome is determined
No Content
No schemas are available for this endpoint.
Unauthorized
ConnectProblemDetails
object
ConnectProblemDetails
type?
title?
status?
detail?
instance?
requestId?
traceId?
Forbidden
ConnectProblemDetails
object
ConnectProblemDetails
type?
title?
status?
detail?
instance?
requestId?
traceId?
Not Acceptable
ConnectProblemDetails
object
ConnectProblemDetails
type?
title?
status?
detail?
instance?
requestId?
traceId?
Unprocessable Entity
ConnectProblemDetails
object
ConnectProblemDetails
type?
title?
status?
detail?
instance?
requestId?
traceId?
Too Many Requests (APIM)
ConnectProblemDetails
object
ConnectProblemDetails
type?
title?
status?
detail?
instance?
requestId?
traceId?
Internal Server Error
ConnectProblemDetails
object
ConnectProblemDetails
type?
title?
status?
detail?
instance?
requestId?
traceId?
Bad Gateway (APIM)
ConnectProblemDetails
object
ConnectProblemDetails
type?
title?
status?
detail?
instance?
requestId?
traceId?
Gateway Timeout (APIM)
ConnectProblemDetails
object
ConnectProblemDetails
type?
title?
status?
detail?
instance?
requestId?
traceId?