Look up a product by barcode
data_barcode_lookupLook up a consumer product by its barcode (EAN-8, UPC-A, EAN-13 or GTIN-14), or search by name or brand, in Open Beauty Facts (cosmetics), Open Pet Food Facts and Open Products Facts (household and other non-food goods): name, brand, category, quantity, front image, ingredients and countries, from each database's nightly export (ODbL 1.0, images CC BY-SA 3.0). Food products (Open Food Facts) and prices are not covered: price is always null. An unknown barcode answers an empty list. Costs 1 credit. Every row has name (platform/collection/id), kind, its fields and source {platform, url, license, attribution, fetched_at, terms_url}; quote source.attribution when you show a row.
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": "data_barcode_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Name, brand or category words when there is no barcode, such as nivea sun. | |
| barcode | No | The barcode digits, such as 3600523614462. | |
| database | No | Only this database. | |
| page_size | No | Rows per page, 1 to 50 (default 10). |