Compare Products
Side-by-side nutrition and scores for 2–5 products, with the healthiest pick per nutrient.
GET
/api/v1/food/compareData source
- Open Food FactsOpen Food Facts ·
ODbL-1.0· updates Continuous
Query parameters
| Parameter | Description | Try value |
|---|---|---|
codesstring required | Comma-separated barcodes | |
apikeystring required | Your API key. Can also be sent as the X-API-Key header. | demo key used here |
Response envelope
Success: { data, meta: { sources, fetchedAt, cached } }. Errors: { error: { code, message } } with HTTP 400, 401, 404, 502, 503 or 504.