Free to use: This API is completely free. No authentication required. Just make a GET request with a barcode number.
Endpoints
GET
/barcodes/{barcode}.json
Get food product information by barcode
Path Parameters
| Name | Type | Description |
|---|---|---|
| barcode * required | string | The product barcode number (EAN-13, UPC-A, etc.) |
Responses
200 Successful response - Returns product information
{
"name": "Product Name",
"brand": "Brand Name",
"calories": 150,
"protein": 10,
"carbs": 20,
"fat": 5,
...
}
404 Barcode not found in database
Example
Fetch product information for barcode 08718907611718:
curl https://api.musclog.app/barcodes/08718907611718.json
Usage
Simply replace {barcode} with any valid product barcode:
GET https://api.musclog.app/barcodes/{barcode}.json