GET
/v1/barcode/{code}Barcode Lookup
Look up any food by UPC-A or EAN-13 barcode. 400K+ barcodes in the database.
Parameters
| Parameter | Type | Description |
|---|---|---|
code | string (path) | 8-14 digit barcode (UPC-A, EAN-8, EAN-13) |
Request
curl "https://api.chowapi.dev/v1/barcode/0030000575512" \
-H "Authorization: Bearer chow_live_YOUR_KEY"Response
200 OK
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Protein Oatmeal, Apples and Cinnamon",
"brand": "Quaker",
"barcode": "0030000575512",
"source": "verified",
"data_quality": 0.87,
"nutrients": {
"calories": 360,
"protein_g": 20,
"carbs_g": 58,
"fat_g": 6,
"fiber_g": 4
},
"serving": {
"amount": 50,
"unit": "g",
"description": "1 packet (50g)",
"gram_weight": 50
}
}Errors
| Code | Status | Description |
|---|---|---|
barcode/missing | 400 | No barcode in URL |
barcode/invalid | 400 | Not 8-14 digits |
barcode/not_found | 404 | Barcode not in database |