Packaged food by barcode or by name: product name, brand
foodPackaged food by barcode (EAN-8, UPC-A, EAN-13 or GTIN-14) or by name: product name, brand, quantity, Nutri-Score, NOVA group, nutrients per 100 g (energy, fat, saturated fat, carbohydrates, sugars, fibre, protein, salt), allergens, labels, ingredients text and front image URL. Open Food Facts data (ODbL, attribution in source). A barcode not in the database is a 404, not charged. Community data: values can be missing or wrong. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Product name words, 2 to 100 characters (optional, when no barcode) | |
| limit | No | Results for a name search, 1 to 20, default 5 | |
| barcode | No | EAN-8, UPC-A, EAN-13 or GTIN-14 digits (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| query | No | ||
| source | No | ||
| products | No | ||
| checkedAt | No |