Product Barcode Lookup
product_barcode_lookupLook up any retail product by barcode (UPC-A, EAN-13, EAN-8, GTIN-14) and get its name, brand, category, image and size, with the answering source named. Checks the open product databases first (Open Food Facts, Open Beauty Facts, Open Pet Food Facts, Open Products Facts), then UPCitemdb for general merchandise such as electronics, toys, tools and household goods. The GTIN check digit is validated before any lookup. Use for "what product is barcode 885909950805", identifying a scanned UPC, or enriching a product list with brand and category.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"barcode": "885909950805"
},
"name": "product_barcode_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _apiKey | No | A UPCitemdb paid-plan key (user_key) from https://devs.upcitemdb.com/. Without it the free trial endpoint is used, which allows 100 lookups a day per IP; with it the lookup uses your own plan quota. | |
| barcode | Yes | Barcode digits: UPC-A (12), EAN-13, EAN-8 or GTIN-14. Spaces and dashes are ignored. Example: "885909950805" (an Apple phone) or "3017620422003" (a spread). | |
| sources | No | auto (default): open databases first, UPCitemdb only if none has the code. open_only: never call UPCitemdb. upcitemdb_only: skip the open databases. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| size | No | ||
| brand | No | ||
| found | No | ||
| image | No | ||
| model | No | ||
| format | No | ||
| gtin14 | No | ||
| images | No | ||
| source | No | ||
| barcode | No | ||
| category | No | ||
| source_url | No | ||
| description | No | ||
| source_name | No | ||
| product_type | No | ||
| sources_checked | No | ||
| upcitemdb_quota | No | ||
| check_digit_valid | No |