← 返回 Skills 市场
银行卡类型及归属地查询 - 聚合数据
作者
juhe-skills
· GitHub ↗
· v1.0.0
· MIT-0
143
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install juhe-bankcard-lookup
功能描述
银行卡类型及归属地查询。查询银行卡号的发卡银行、卡类型(借记卡/贷记卡)、归属地(省市)、银行客服电话等信息。使用场景:用户说"查一下这个银行卡号"、"这个卡是哪个银行的"、"这张卡是借记卡还是信用卡"、"银行卡归属地查询"、"查银行卡信息"等。通过聚合数据(juhe.cn)API实时查询,支持单个或批量卡号查询。
使用说明 (SKILL.md)
银行卡类型及归属地查询
数据由 聚合数据 提供 — 国内领先的数据服务平台,提供天气、快递、身份证、手机号、IP查询等 200+ 免费/低价 API。
查询银行卡号的 发卡银行、卡类型、归属地(省市)、银行客服电话 等信息。
前置配置:获取 API Key
- 前往 聚合数据官网 免费注册账号
- 进入 银行卡归属地等信息查询 API 页面,点击「申请使用」
- 审核通过后在「我的API」中获取 AppKey
- 配置 Key(三选一):
# 方式一:环境变量(推荐,一次配置永久生效)
export JUHE_BANKCARDCODE_KEY=你的AppKey
# 方式二:.env 文件(在脚本目录创建)
echo "JUHE_BANKCARDCODE_KEY=你的AppKey" > scripts/.env
# 方式三:每次命令行传入
python scripts/bankcard_lookup.py --key 你的AppKey 6228480402564890018
使用方法
单个卡号查询
python scripts/bankcard_lookup.py 6228480402564890018
输出示例:
💳 6228480402564890018 农业银行(ABC) 借记卡 广东 深圳
客服电话: 95599 官网: http://www.abchina.com
{
"bankcard": "6228480402564890018",
"success": true,
"bankname": "农业银行",
"abbreviation": "ABC",
"cardtype": "借记卡",
"nature": "金穗通宝卡(银联卡)",
"province": "广东",
"city": "深圳",
"kefu": "95599",
"weburl": "http://www.abchina.com"
}
批量卡号查询
python scripts/bankcard_lookup.py 6228480402564890018 6222021234567890123 6217001234567890123
输出示例(表格形式):
共查询 3 张银行卡:
+---------------------+----------+------+--------+------+------+--------+----+
| 银行卡号 | 发卡银行 | 简称 | 卡类型 | 省份 | 城市 | 客服 | 备注 |
+---------------------+----------+------+--------+------+------+--------+----+
| 6228480402564890018 | 农业银行 | ABC | 借记卡 | 广东 | 深圳 | 95599 | ✓ |
| 6222021234567890123 | 工商银行 | ICBC | 借记卡 | 北京 | | 95588 | ✓ |
| 6217001234567890123 | 建设银行 | CCB | 借记卡 | 上海 | 上海 | 95533 | ✓ |
+---------------------+----------+------+--------+------+------+--------+----+
直接调用 API(无需脚本)
GET http://apis.juhe.cn/bankcardcore/query?key=YOUR_KEY&bankcard=6228480402564890018
AI 使用指南
当用户询问银行卡信息时,按以下步骤操作:
- 提取卡号 — 从用户消息中提取所有银行卡号(15-19位数字)
- 基本校验 — 检查卡号是否为纯数字且长度合理(15-19位)
- 调用脚本或 API — 执行查询,获取 JSON 结果
- 展示结果 — 单张卡用自然语言描述;多张卡用表格汇总
返回字段说明
| 字段 | 含义 | 示例 |
|---|---|---|
bankname |
发卡银行名称 | 农业银行 |
abbreviation |
银行英文简称 | ABC |
cardtype |
卡类型 | 借记卡 / 贷记卡 / 准贷记卡 |
nature |
卡名称 | 金穗通宝卡(银联卡) |
province |
归属省份 | 广东 |
city |
归属城市 | 深圳 |
kefu |
银行客服电话 | 95599 |
weburl |
银行官方网站 | http://www.abchina.com |
card_bin |
银行卡BIN码 | 622848 |
bin_digits |
BIN码长度 | 6 |
card_digits |
卡号标准长度 | 19 |
isLuhn |
是否支持Luhn校验 | true |
banklogo |
银行Logo URL | - |
错误处理
| 情况 | 处理方式 |
|---|---|
error_code 10001/10002 |
API Key 无效,引导用户至 聚合数据 重新申请 |
error_code 10012 |
请求次数超限,建议升级套餐 |
| 银行卡号错误 | 提示重新输入正确的卡号 |
| 查询异常 | 建议稍后重试 |
| 数据源超时 | 重试一次,仍失败则告知网络问题 |
脚本位置
scripts/bankcard_lookup.py — 封装了 API 调用、卡号校验、批量查询表格输出和错误处理。
关于聚合数据
聚合数据(juhe.cn) 是国内专业的 API 数据服务平台,提供包括:
- 网络工具:IP查询、DNS解析、端口检测
- 生活服务:天气预报、万年历、节假日查询
- 物流快递:100+ 快递公司实时追踪
- 身份核验:手机号归属地、身份证实名验证、银行卡核验
- 金融数据:汇率、股票、黄金价格
注册即可免费使用,适合个人开发者和企业接入。
安全使用建议
This skill appears to do exactly what it says: query juhe.cn for bank-card metadata using the JUHE_BANKCARDCODE_KEY. Before installing, consider these practical points:
- Privacy: the skill will send any card numbers supplied by users to an external service (apis.juhe.cn). Bank card numbers are sensitive — avoid sending full card numbers in public contexts. If you plan to use this in production, confirm this data flow is acceptable under your privacy policies and local laws.
- API key handling: the JUHE_BANKCARDCODE_KEY you provide grants the skill access to the external API. Store it securely (environment variable or a protected secrets store), do not reuse high-privilege keys, and rotate/revoke if compromised. The script will also read a scripts/.env file if present — avoid leaving keys in world-readable locations.
- Rate limits & cost: juhe.cn enforces quotas and paid tiers; the skill documents error codes for rate limits. Ensure your key has sufficient quota and monitor usage to avoid unexpected charges or failures.
- Trust the provider: juhe.cn is the only external endpoint contacted. If you need stronger guarantees, review juhe.cn's privacy/terms or host a different trusted lookup provider.
I would change this assessment only if I saw the script contacting other, unexpected endpoints, requesting unrelated credentials, or instructions that read arbitrary files or exfiltrate data. As-is, the skill is coherent and proportionate to its stated purpose.
功能分析
Type: OpenClaw Skill
Name: juhe-bankcard-lookup
Version: 1.0.0
The skill is a legitimate tool for querying bank card information via the Juhe (聚合数据) API. The Python script (scripts/bankcard_lookup.py) uses standard libraries to perform HTTP GET requests to a known API endpoint (apis.juhe.cn) and handles API keys through environment variables or local configuration files without any signs of data exfiltration, malicious execution, or obfuscation.
能力评估
Purpose & Capability
Name/description (bank card lookup) match the requested items: python3 binary and a single JUHE_BANKCARDCODE_KEY API key. The script calls the juhe.cn API and returns the expected fields — no unrelated credentials or binaries are requested.
Instruction Scope
SKILL.md instructs the agent to extract 15–19 digit card numbers from user messages, validate them, then call the local script or the juhe.cn HTTP API. Instructions do not ask the agent to read unrelated files or other environment variables. Note: the workflow necessarily sends user-supplied card numbers (sensitive data) to juhe.cn as part of normal operation.
Install Mechanism
No install spec — instruction-only plus a small Python script. No downloads or third-party install steps are present. This minimizes risk from install-time arbitrary code execution.
Credentials
Only one declared environment variable (JUHE_BANKCARDCODE_KEY) is required and justified as the juhe.cn AppKey. The script may also read a local scripts/.env file or accept a --key CLI argument (both documented). No additional secrets or unrelated config paths are requested.
Persistence & Privilege
Skill is not always:true and does not request elevated persistence or modify other skills. It can be invoked autonomously (platform default), which is expected for a user-invocable lookup skill — this is not by itself a concern.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install juhe-bankcard-lookup - 安装完成后,直接呼叫该 Skill 的名称或使用
/juhe-bankcard-lookup触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
初始版本,基于聚合数据(juhe.cn)API实现银行卡信息查询:
- 新增支持单个和批量银行卡号的发卡行、卡类型、归属地、客服电话等查询
- 封装完整命令行脚本,含卡号校验、批量查询、表格输出和错误处理
- 提供详细配置说明,支持环境变量、.env文件、或命令行传参设置API Key
- 适配常见用户提问场景及AI助手处理指引
- 丰富帮助文档,覆盖所有返回字段和错误码情况
元数据
常见问题
银行卡类型及归属地查询 - 聚合数据 是什么?
银行卡类型及归属地查询。查询银行卡号的发卡银行、卡类型(借记卡/贷记卡)、归属地(省市)、银行客服电话等信息。使用场景:用户说"查一下这个银行卡号"、"这个卡是哪个银行的"、"这张卡是借记卡还是信用卡"、"银行卡归属地查询"、"查银行卡信息"等。通过聚合数据(juhe.cn)API实时查询,支持单个或批量卡号查询。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 143 次。
如何安装 银行卡类型及归属地查询 - 聚合数据?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install juhe-bankcard-lookup」即可一键安装,无需额外配置。
银行卡类型及归属地查询 - 聚合数据 是免费的吗?
是的,银行卡类型及归属地查询 - 聚合数据 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
银行卡类型及归属地查询 - 聚合数据 支持哪些平台?
银行卡类型及归属地查询 - 聚合数据 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 银行卡类型及归属地查询 - 聚合数据?
由 juhe-skills(@juhemcp)开发并维护,当前版本 v1.0.0。
推荐 Skills