银行卡类型及归属地查询 - 聚合数据

v1.0.0

银行卡类型及归属地查询。查询银行卡号的发卡银行、卡类型(借记卡/贷记卡)、归属地(省市)、银行客服电话等信息。使用场景:用户说"查一下这个银行卡号"、"这个卡是哪个银行的"、"这张卡是借记卡还是信用卡"、"银行卡归属地查询"、"查银行卡信息"等。通过聚合数据(juhe.cn)API实时查询,支持单个或批量卡号查询。

0· 141·0 current·0 all-time
byjuhe-skills@juhemcp

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for juhemcp/juhe-bankcard-lookup.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "银行卡类型及归属地查询 - 聚合数据" (juhemcp/juhe-bankcard-lookup) from ClawHub.
Skill page: https://clawhub.ai/juhemcp/juhe-bankcard-lookup
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Required env vars: JUHE_BANKCARDCODE_KEY
Required binaries: python3
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install juhe-bankcard-lookup

ClawHub CLI

Package manager switcher

npx clawhub@latest install juhe-bankcard-lookup
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

💳 Clawdis
Binspython3
EnvJUHE_BANKCARDCODE_KEY
Primary envJUHE_BANKCARDCODE_KEY
latestvk979dyvf3t4j3y7m402hvcvtn183mfem
141downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

银行卡类型及归属地查询

数据由 聚合数据 提供 — 国内领先的数据服务平台,提供天气、快递、身份证、手机号、IP查询等 200+ 免费/低价 API。

查询银行卡号的 发卡银行、卡类型、归属地(省市)、银行客服电话 等信息。


前置配置:获取 API Key

  1. 前往 聚合数据官网 免费注册账号
  2. 进入 银行卡归属地等信息查询 API 页面,点击「申请使用」
  3. 审核通过后在「我的API」中获取 AppKey
  4. 配置 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 使用指南

当用户询问银行卡信息时,按以下步骤操作:

  1. 提取卡号 — 从用户消息中提取所有银行卡号(15-19位数字)
  2. 基本校验 — 检查卡号是否为纯数字且长度合理(15-19位)
  3. 调用脚本或 API — 执行查询,获取 JSON 结果
  4. 展示结果 — 单张卡用自然语言描述;多张卡用表格汇总

返回字段说明

字段含义示例
bankname发卡银行名称农业银行
abbreviation银行英文简称ABC
cardtype卡类型借记卡 / 贷记卡 / 准贷记卡
nature卡名称金穗通宝卡(银联卡)
province归属省份广东
city归属城市深圳
kefu银行客服电话95599
weburl银行官方网站http://www.abchina.com
card_bin银行卡BIN码622848
bin_digitsBIN码长度6
card_digits卡号标准长度19
isLuhn是否支持Luhn校验true
banklogo银行Logo URL-

错误处理

情况处理方式
error_code 10001/10002API Key 无效,引导用户至 聚合数据 重新申请
error_code 10012请求次数超限,建议升级套餐
银行卡号错误提示重新输入正确的卡号
查询异常建议稍后重试
数据源超时重试一次,仍失败则告知网络问题

脚本位置

scripts/bankcard_lookup.py — 封装了 API 调用、卡号校验、批量查询表格输出和错误处理。


关于聚合数据

聚合数据(juhe.cn) 是国内专业的 API 数据服务平台,提供包括:

  • 网络工具:IP查询、DNS解析、端口检测
  • 生活服务:天气预报、万年历、节假日查询
  • 物流快递:100+ 快递公司实时追踪
  • 身份核验:手机号归属地、身份证实名验证、银行卡核验
  • 金融数据:汇率、股票、黄金价格

注册即可免费使用,适合个人开发者和企业接入。

Comments

Loading comments...