Barcode Lookup
Quickly query product name, brand, reference price, manufacturer, and other detailed information by inputting a product barcode (e.g., EAN-13), suitable for retail, inventory management, and other scenarios.
Documentation
API Capabilities
The Product Barcode Query API allows developers to retrieve basic product information by inputting a standard product barcode (e.g., the common 13-digit EAN-13 code). The returned data typically includes product name, brand, reference price, and manufacturer. This API helps developers quickly build a product information database, reducing manual entry costs.
Request and Response
- Request Parameters: Only
barcode(product barcode) needs to be provided. Ensure the input barcode is a pure numeric string. - Return Results: The API will return a JSON object containing product information. Core fields include
name(product name),brand(brand),price(reference price, usually the suggested retail price), andmanufacturer(manufacturer). - Troubleshooting Failures: If no product is found, please check if the barcode was entered correctly, or if the product uses a non-standard barcode or an internal circulation code.
Use Cases
- Retail POS and Scanning: Quickly identify and display product information by scanning barcodes in POS systems or mobile applications.
Integration Examples
Includes ready-to-use Shell, Python, Go, Java, and PHP examples for direct integration.
Request Example
{
"barcode": "6901028089296"
}Response Example
{
"code": "SUCCESS",
"message": "success",
"data": {
"name": "中华(软)香烟",
"brand": "中华",
"price": "65.00",
"manufacturer": "上海烟草集团有限责任公司"
}
}Request Fields
The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| barcode | string | 6901028089296 |
Response Fields
The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| code | string | SUCCESS |
| message | string | success |
| data | object | {...} |
| data.name | string | 中华(软)香烟 |
| data.brand | string | 中华 |
| data.price | string | 65.00 |
| data.manufacturer | string | 上海烟草集团有限责任公司 |