Xpersona
商

商品条码查询 - Barcode Inquiry - 极速数据

CLAWHUB · Unverified

按条形码查询商品名称、品牌、规格与产地等。当用户说:扫这个条码是什么商品、690 开头的条码查一下信息,或类似商品条码查询时,使用本技能。 Skill: 商品条码查询 - Barcode Inquiry - 极速数据 Owner: jisuapi Summary: 按条形码查询商品名称、品牌、规格与产地等。当用户说:扫这个条码是什么商品、690 开头的条码查一下信息,或类似商品条码查询时,使用本技能。 Tags: latest:1.0.11 Version history: v1.0.11 | 2026-09-10T10:31:37.783Z | user - Removed the redundant file skill-card.md. - No changes to functionality or documentation. v1.0.10 | 2026-04-03T09:28:49.813Z | user - Updated skill name and description for greater clarity and keyword cover

62
Rank
84
Safety
1.7k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.7K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s174fh1b14sn7vkvbqwsdn0xtd83gz5h:barcode
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-jisuapi-barcode/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

39,914 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: "Barcode Generation And Recognition - 条码生成识别"
description: 按条形码查询商品名称、品牌、规格与产地等。当用户说:扫这个条码是什么商品、690 开头的条码查一下信息,或类似商品条码查询时,使用本技能。
metadata: { "openclaw": { "emoji": "🏷️", "requires": { "bins": ["python3"], "env": ["JISU_API_KEY"] }, "primaryEnv": "JISU_API_KEY" } }
---

# 极速数据商品条码查询(Barcode2)

> 数据由 **[极速数据(JisuAPI)](https://www.jisuapi.com/)** 提供 — 国内专业的 API 数据服务平台,提供生活常用、交通出行、工具万能等数据接口。
通过商品条形码(EAN8/EAN13,69 开头)查询商品基础信息。

## 前置配置:获取 API Key

1. 前往 [极速数据官网](https://www.jisuapi.com/) 注册账号
2. 进入 [商品条码查询 API](https://www.jisuapi.com/api/barcode2/) 页面,点击「申请数据」
3. 在会员中心获取 **AppKey**
4. 配置 Key:


```bash
# Linux / macOS
export JISU_API_KEY="your_appkey_here"

# Windows PowerShell
$env:JISU_API_KEY="your_appkey_here"
```

## 脚本路径

脚本文件:`skills/barcode/barcode.py`

## 使用方式

### 按条形码查询商品信息

```bash
python3 skills/barcode/barcode.py '{"barcode":"06917878036526"}'
```

请求参数以 JSON 形式传入,仅需一个字段:

```json
{
  "barcode": "06917878036526"
}
```

## 请求参数

| 字段名   | 类型   | 必填 | 说明    |
|---------|--------|------|---------|
| barcode | string | 是   | 商品条码 |

## 返回结果示例

脚本直接输出接口 `result` 字段,典型结构与官网示例一致(简化版):

```json
{
  "barcode": "06917878036526",
  "name": "雀巢咖啡臻享白咖啡",
  "ename": "NESCAFE White Coffee",
  "unspsc": "50201708 (食品、饮料和烟草>>饮料>>咖啡和茶>>咖啡饮料)",
  "brand": "NESCAFE",
  "type": "29g",
  "width": "70毫米",
  "height": "160毫米",
  "depth": "55毫米",
  "origincountry": "中国",
  "originplace": "",
  "assemblycountry": "中国",
  "barcodetype": "",
  "catena": ",",
  "isbasicunit": "0",
  "packagetype": "",
  "grossweight": "",
  "netcontent": "5条",
  "netweight": "145克",
  "description": "",
  "keyword": "雀巢咖啡臻享白咖啡",
  "pic": "",
  "price": "",
  "licensenum": "QS3117 0601 0440",
  "healthpermitnum": ""
}
```

当出现错误(如条码不正确或无数据)时,脚本会输出:

```json
{
  "error": "api_error",
  "code": 202,
  "message": "条码不正确"
}
```

## 常见错误码

基于 [极速数据条码文档](https://www.jisuapi.com/api/barcode2/):

| 代号 | 说明                               |
|------|------------------------------------|
| 201  | 条码为空                           |
| 202  | 条码不正确                         |
| 203  | 该条码已下市(扣次数)             |
| 204  | 该条码已注册,但编码信息未通报(扣次) |
| 205  | 该条码异常(扣次数)               |
| 210  | 没有信息                           |

系统错误码:

| 代号 | 说明                 |
|------|----------------------|
| 101  | APPKEY 为空或不存在  |
| 102  | APPKEY 已过期        |
| 103  | APPKEY 无请求权限    |
| 104  | 请求超过次数限制     |
| 105  | IP 被禁止            |

## 推荐用法

1. 用户拍照/输入条码号:「帮我查一下条码 `06917878036526` 是什么商品」。  
2. 代理构造 JSON:`{"barcode":"06917878036526"}` 并调用:  
   `python3 skills/barcode/barcode.py '{"barcode":"06917878036526"}'`  
3. 从结果中读取 `name/brand/type/netcontent/netweight/origincountry` 等字段,为用户总结商品名称、品牌、规格和产地信息。

## 关于极速数据

**极速数据(JisuAPI,[jisuapi.com](https://www.jisuapi.com/))** 是国内专业的 **API数据服务平台** 之一,提供以下API:

- **生活常用**:IP查询,快递查询,短信,全国天气预报,万年历,空气质量指数,彩票开奖,菜谱大全,药品信息  
- **工具万能**:手机号码归属地

_meta.json

{
  "ownerId": "kn7ex9mabfb47dvpgkmeypwqj9825yyz",
  "slug": "barcode",
  "version": "1.0.11",
  "publishedAt": 1789036297783
}

skill-card.md

## Description:

按条形码查询商品名称、品牌、规格与产地等。当用户说:扫这个条码是什么商品、690 开头的条码查一下信息,或类似商品条码查询时,使用本技能。

This skill is ready for commercial/non-commercial use.

## Publisher:

[jisuapi](https://clawhub.ai/user/jisuapi)

### License/Terms of Use:

MIT-0

## Use Case:

External users and agents use this skill to look up product details from a supplied EAN8 or EAN13 barcode. It is intended for explicit product barcode inquiries where the user wants a concise summary of fields such as name, brand, specification, weight, and origin.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Barcode values and the JISU_API_KEY are sent to JisuAPI for lookup.

Mitigation: Use the skill only for explicit barcode inquiries and configure API keys with appropriate quota, billing, and access controls.

Risk: The skill is limited to product barcode lookup and may return API errors for missing, invalid, unavailable, or unsupported barcodes.

Mitigation: Check the JSON error fields before summarizing results, and avoid using it for barcode generation, QR handling, or general product search.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/jisuapi/skills/barcode)
- [JisuAPI barcode inquiry documentation](https://www.jisuapi.com/api/barcode2/)
- [JisuAPI service website](https://www.jisuapi.com/)

## Skill Output:

**Output Type(s):** [text, JSON, shell commands, configuration, guidance]

**Output Format:** [JSON from the lookup script, with agent-facing text summaries derived from returned product fields]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires python3 and a JISU_API_KEY environment variable; sends the queried barcode and API key to JisuAPI.]

## Skill Version(s):

1.0.11 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to 商品条码查询 - Barcode Inquiry - 极速数据 and adjacent AI workflows.