← Back to Skills Marketplace
jisuapi

Barcode Inquiry - 商品条码查询

by 极速数据 · GitHub ↗ · v1.0.10 · MIT-0
cross-platform ✓ Security Clean
632
Downloads
10
Stars
3
Active Installs
11
Versions
Install in OpenClaw
/install barcode
Description
按条形码查询商品名称、品牌、规格与产地等。当用户说:扫这个条码是什么商品、690 开头的条码查一下信息,或类似商品条码查询时,使用本技能。
README (SKILL.md)

\r \r

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

\r

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

前置配置:获取 API Key\r

\r

  1. 前往 极速数据官网 注册账号\r
  2. 进入 商品条码查询 API 页面,点击「申请数据」\r
  3. 在会员中心获取 AppKey\r
  4. 配置 Key:\r \r \r
# Linux / macOS\r
export JISU_API_KEY="your_appkey_here"\r
\r
# Windows PowerShell\r
$env:JISU_API_KEY="your_appkey_here"\r
```\r
\r
## 脚本路径\r
\r
脚本文件:`skills/barcode/barcode.py`\r
\r
## 使用方式\r
\r
### 按条形码查询商品信息\r
\r
```bash\r
python3 skills/barcode/barcode.py '{"barcode":"06917878036526"}'\r
```\r
\r
请求参数以 JSON 形式传入,仅需一个字段:\r
\r
```json\r
{\r
  "barcode": "06917878036526"\r
}\r
```\r
\r
## 请求参数\r
\r
| 字段名   | 类型   | 必填 | 说明    |\r
|---------|--------|------|---------|\r
| barcode | string | 是   | 商品条码 |\r
\r
## 返回结果示例\r
\r
脚本直接输出接口 `result` 字段,典型结构与官网示例一致(简化版):\r
\r
```json\r
{\r
  "barcode": "06917878036526",\r
  "name": "雀巢咖啡臻享白咖啡",\r
  "ename": "NESCAFE White Coffee",\r
  "unspsc": "50201708 (食品、饮料和烟草>>饮料>>咖啡和茶>>咖啡饮料)",\r
  "brand": "NESCAFE",\r
  "type": "29g",\r
  "width": "70毫米",\r
  "height": "160毫米",\r
  "depth": "55毫米",\r
  "origincountry": "中国",\r
  "originplace": "",\r
  "assemblycountry": "中国",\r
  "barcodetype": "",\r
  "catena": ",",\r
  "isbasicunit": "0",\r
  "packagetype": "",\r
  "grossweight": "",\r
  "netcontent": "5条",\r
  "netweight": "145克",\r
  "description": "",\r
  "keyword": "雀巢咖啡臻享白咖啡",\r
  "pic": "",\r
  "price": "",\r
  "licensenum": "QS3117 0601 0440",\r
  "healthpermitnum": ""\r
}\r
```\r
\r
当出现错误(如条码不正确或无数据)时,脚本会输出:\r
\r
```json\r
{\r
  "error": "api_error",\r
  "code": 202,\r
  "message": "条码不正确"\r
}\r
```\r
\r
## 常见错误码\r
\r
基于 [极速数据条码文档](https://www.jisuapi.com/api/barcode2/):\r
\r
| 代号 | 说明                               |\r
|------|------------------------------------|\r
| 201  | 条码为空                           |\r
| 202  | 条码不正确                         |\r
| 203  | 该条码已下市(扣次数)             |\r
| 204  | 该条码已注册,但编码信息未通报(扣次) |\r
| 205  | 该条码异常(扣次数)               |\r
| 210  | 没有信息                           |\r
\r
系统错误码:\r
\r
| 代号 | 说明                 |\r
|------|----------------------|\r
| 101  | APPKEY 为空或不存在  |\r
| 102  | APPKEY 已过期        |\r
| 103  | APPKEY 无请求权限    |\r
| 104  | 请求超过次数限制     |\r
| 105  | IP 被禁止            |\r
\r
## 推荐用法\r
\r
1. 用户拍照/输入条码号:「帮我查一下条码 `06917878036526` 是什么商品」。  \r
2. 代理构造 JSON:`{"barcode":"06917878036526"}` 并调用:  \r
   `python3 skills/barcode/barcode.py '{"barcode":"06917878036526"}'`  \r
3. 从结果中读取 `name/brand/type/netcontent/netweight/origincountry` 等字段,为用户总结商品名称、品牌、规格和产地信息。\r
\r
## 关于极速数据\r
\r
**极速数据(JisuAPI,[jisuapi.com](https://www.jisuapi.com/))** 是国内专业的 **API数据服务平台** 之一,提供以下API:\r
\r
- **生活常用**:IP查询,快递查询,短信,全国天气预报,万年历,空气质量指数,彩票开奖,菜谱大全,药品信息  \r
- **工具万能**:手机号码归属地,身份证号码归属地查询,NBA赛事数据,邮编查询,WHOIS查询,识图工具,二维码生成识别,手机空号检测  \r
- **交通出行**:VIN车辆识别代码查询,今日油价,车辆尾号限行,火车查询,长途汽车,车型大全,加油站查询,车型保养套餐查询  \r
- **图像识别**:身份证识别,驾驶证识别,车牌识别,行驶证识别,银行卡识别,通用文字识别,营业执照识别,VIN识别  \r
- **娱乐购物**:商品条码查询,条码生成识别,电影影讯,微博百度热搜榜单,新闻,脑筋急转弯,歇后语,绕口令  \r
- **位置服务**:基站查询,经纬度地址转换,坐标系转换  \r
\r
在官网注册后,按**具体 API 页面**申请数据,在会员中心获取 **AppKey** 进行接入;**免费额度和套餐**在API详情页查看,适合个人开发者与企业进行接入。在 **ClawHub** 上也可搜索 **`jisuapi`** 找到更多基于极速数据的 OpenClaw 技能。\r
\r
Usage Guidance
This skill appears to do exactly what it says: call JisuAPI to look up barcode data. Before enabling: ensure you trust jisuapi.com and are willing to provide your JISU_API_KEY (the key is sent to the API when you query a barcode). Confirm the runtime has the Python 'requests' package installed (SKILL.md does not list dependency installation). Treat the API key like any secret (don't paste other sensitive info into queries), monitor API usage/quotas to avoid charges, and consider running the skill in an environment with network controls if you want to limit outbound access.
Capability Analysis
Type: OpenClaw Skill Name: barcode Version: 1.0.10 The skill is a straightforward API wrapper for the JisuAPI barcode lookup service. The code in barcode.py safely handles environment variables and performs a standard GET request to a legitimate endpoint (api.jisuapi.com) without any signs of data exfiltration, command injection, or malicious intent in the SKILL.md instructions.
Capability Assessment
Purpose & Capability
Name/description match the behavior: the code calls JisuAPI's barcode2 endpoint and the declared primary env var is JISU_API_KEY, which is exactly what the skill needs.
Instruction Scope
SKILL.md instructs running the included barcode.py with a JSON argument and setting JISU_API_KEY; the instructions reference only the JisuAPI service and do not request unrelated files, system data, or other credentials.
Install Mechanism
No install spec (instruction-only) — low risk. Minor operational inconsistency: the script imports the third-party Python package 'requests' but SKILL.md does not mention installing it or dependencies; this is an availability/operational issue, not a security mismatch.
Credentials
Only JISU_API_KEY is required and is appropriate for calling the JisuAPI service. No unrelated secrets or config paths are requested.
Persistence & Privilege
The skill does not request always:true, does not modify other skills or system config, and runs only when invoked.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install barcode
  3. After installation, invoke the skill by name or use /barcode
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.10
- Updated skill name and description for greater clarity and keyword coverage. - Adjusted API文档指引中的接口入口提示,使“商品条码查询 API”链接更精准。 - 优化描述文本,强调根据条码可查品牌、规格、产地等信息,便于理解应用场景。 - 其余功能、调用方式和API说明未变。
v1.0.9
**重大变更:Skill 改为商品条码信息查询,移除条码生成和图片识别功能** - Skill 名称由“jisu-barcode”调整为“jisu-barcode2”,描述和用途变更为:根据商品条形码查询商品基础信息(如名称、品牌、规格等)。 - 移除条码生成(图片输出)与图片识别的相关功能描述和用法说明。 - 使用方式简化为:接受 JSON 传入商品条码号,返回商品基础信息。 - 更新 API 文档、错误码说明及推荐用法,明确专注于商品条码信息查询。 - 依然需配置 JISU_API_KEY,Python 脚本路径不变。
v1.0.8
Big update: Now supports both barcode generation (image output) and barcode image recognition via JisuAPI. - Added barcode generation: supports multiple types (EAN13, CODE128, UPCA, etc.), outputs base64-encoded image. - Added barcode recognition: extracts barcode type and number from an image URL or base64 input. - API usage now requires "generate" or "read" command with corresponding parameters. - Previous version focused only on querying product details by barcode; this version covers barcode image functions. - Updated documentation with usage instructions, fields, error codes, and sample inputs/outputs.
v1.0.7
Version 1.0.7 - No file changes detected in this version. - No updates or modifications to the documentation or codebase.
v1.0.6
- No changes detected in this version. - No file or documentation updates.
v1.0.5
- No code or documentation changes detected in this version. - Functionality, usage, and integration remain unchanged.
v1.0.4
Version 1.0.4 - No file changes detected in this release. - No user-facing or internal updates.
v1.0.3
No user-facing changes in this version. - No file or documentation changes detected. - Functionality remains unchanged from the previous version.
v1.0.2
- No code or functional changes; documentation wording updated for clarity. - Updated SKILL.md: adjusted table heading for error codes to clarify the data source.
v1.0.1
- 更新脚本路径,由 skills/barcode2/barcode2.py 调整为 skills/barcode/barcode.py - 所有相关调用示例和说明同步为新版脚本路径 - 其余功能、参数和返回结果保持不变
v1.0.0
- Initial release: barcode product info lookup via 极速数据商品条码查询 API. - Query product name, brand, spec, origin, packaging and more with EAN8/EAN13 barcode. - Returns structured JSON results; outputs error and code for invalid or missing barcodes. - Requires JISU_API_KEY environment variable for API access. - Simple script invocation: pass JSON with barcode field; use output fields for user-facing summaries.
Metadata
Slug barcode
Version 1.0.10
License MIT-0
All-time Installs 3
Active Installs 3
Total Versions 11
Frequently Asked Questions

What is Barcode Inquiry - 商品条码查询?

按条形码查询商品名称、品牌、规格与产地等。当用户说:扫这个条码是什么商品、690 开头的条码查一下信息,或类似商品条码查询时,使用本技能。 It is an AI Agent Skill for Claude Code / OpenClaw, with 632 downloads so far.

How do I install Barcode Inquiry - 商品条码查询?

Run "/install barcode" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Barcode Inquiry - 商品条码查询 free?

Yes, Barcode Inquiry - 商品条码查询 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Barcode Inquiry - 商品条码查询 support?

Barcode Inquiry - 商品条码查询 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Barcode Inquiry - 商品条码查询?

It is built and maintained by 极速数据 (@jisuapi); the current version is v1.0.10.

💬 Comments