Product facts by barcode
barcode_factsReturns the sourced facts we hold for one product barcode (GTIN-8/12/13/14): product name, brand, short statements each with its source link, licence and check date, recall records naming the code, and our page for the product. Use it to look up or cite what a product is. Do not use it for prices, stock, reviews or sellers; it has none. Most barcodes return state no_facts, which is not a safety statement.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"barcode": "<barcode>"
},
"name": "barcode_facts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| barcode | Yes | The product barcode as digits only: 8, 12, 13 or 14 digits with a valid check digit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gtin | Yes | ||
| state | No | ||
| api_version | Yes |