product_barcode_lookup
Pack: product-barcode · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/product_barcode_lookup for the schema, then POST the same URL with its arguments for the data.
Look 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.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
barcode | string | 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 | string | no | auto (default): open databases first, UPCitemdb only if none has the code. open_only: never call UPCitemdb. upcitemdb_only: skip the open databases. |
_apiKey | string | 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. |
Example call
Arguments
{
"barcode": "885909950805"
}
curl
curl -X POST https://gateway.pipeworx.io/product-barcode/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"product_barcode_lookup","arguments":{"barcode":"885909950805"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('product_barcode_lookup', {
"barcode": "885909950805"
});
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | |
barcode | string | |
gtin14 | string | |
format | string | |
check_digit_valid | boolean | |
source | string | |
source_name | string | |
source_url | string | |
product_type | string | |
name | string | |
brand | string | |
category | string | |
image | string | |
images | array | |
size | string | |
description | string | |
model | string | |
sources_checked | array | |
upcitemdb_quota | object |
Full JSON Schema
{
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"barcode": {
"type": "string"
},
"gtin14": {
"type": "string"
},
"format": {
"type": "string"
},
"check_digit_valid": {
"type": "boolean"
},
"source": {
"type": "string"
},
"source_name": {
"type": "string"
},
"source_url": {
"type": "string"
},
"product_type": {
"type": "string"
},
"name": {
"type": "string"
},
"brand": {
"type": "string"
},
"category": {
"type": "string"
},
"image": {
"type": "string"
},
"images": {
"type": "array",
"items": {
"type": "string"
}
},
"size": {
"type": "string"
},
"description": {
"type": "string"
},
"model": {
"type": "string"
},
"sources_checked": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"outcome": {
"type": "string"
}
},
"additionalProperties": true
}
},
"upcitemdb_quota": {
"type": "object",
"properties": {
"limit": {
"type": "number"
},
"remaining": {
"type": "number"
},
"reset_unix": {
"type": "number"
}
},
"additionalProperties": true
}
},
"additionalProperties": true
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the product-barcode pack
{
"mcpServers": {
"product-barcode": {
"url": "https://gateway.pipeworx.io/product-barcode/mcp"
}
}
}
See Getting Started for client-specific install steps.