← 返回 Skills 市场
kuaidi100-api

kuaidi100-skill-快递100物流查询

作者 快递100API · GitHub ↗ · v1.1.2 · MIT-0
cross-platform ✓ 安全检测通过
456
总下载
0
收藏
2
当前安装
4
版本数
在 OpenClaw 中安装
/install kuaidi100-skill
功能描述
快递100 API 技能,用于查询快递物流相关信息。当用户提到快递单号、物流轨迹、查快递、运费估算、预计到达时间、识别快递公司等需求时,必须使用此技能。支持:查询物流轨迹(query_trace)、识别快递公司(auto_number)、估算运费(estimate_price)、预估寄件送达时间(estimate...
使用说明 (SKILL.md)

快递100 API 技能

通过 Node.js 脚本调用快递100 API 接口,实现快递物流查询相关功能。

配置文件

  • config.json:配置文件,用于存储 API Key
    {
        "apiKey": "your_api_key_here"
    }
    

环境变量

  • KUAIDI100_API_KEY:快递100 API Key(可选,作为备用配置方式)

脚本路径

script/kuaidi100.js

Key 处理规则

优先级从高到低:

  1. 配置文件 config.json 中的 apiKey 字段(若已设置且不为空)
  2. 环境变量 KUAIDI100_API_KEY(若已设置且不为空)
  3. 使用默认值 null(使用免费额度)

额度耗尽处理

若接口返回内容包含"免费调用额度已耗尽"、"今日免费"、"额度不足"等字样,需告知用户:

今日免费调用额度已耗尽。您可前往 快递100 API 开放平台 注册账号并获取专属 API Key,然后将 Key 更新到配置文件 config.jsonapiKey 字段中,或设置环境变量 KUAIDI100_API_KEY 即可继续使用。


工具列表

1. query_trace — 查询快递物流轨迹

触发场景:用户询问某快递单号的物流状态、快递到哪了、轨迹查询等。

参数

  • kuaidiNum(必填):快递单号
  • phone(可选):手机号,顺丰速运、顺丰快运、中通快递必填

Node.js 调用

node script/kuaidi100.js queryTrace \x3C快递单号> [手机号]

若手机号为空则省略手机号参数:

node script/kuaidi100.js queryTrace \x3C快递单号>

2. auto_number — 识别快递公司

触发场景:用户想知道某快递单号属于哪家快递公司,或需要在调用其他接口前识别快递公司编码。

参数

  • kuaidiNum(必填):快递单号

Node.js 调用

node script/kuaidi100.js autoNumber \x3C快递单号>

3. estimate_price — 估算运费

触发场景:用户询问从某地寄快递到某地的费用、运费是多少等。

参数

  • kuaidicom(必填):快递公司编码(小写),支持:
    • 顺丰:shunfeng
    • 京东:jd
    • 德邦快递:debangkuaidi
    • 圆通:yuantong
    • 中通:zhongtong
    • 申通:shentong
    • 韵达:yunda
    • EMS:ems
  • recAddr(必填):收件地址,如 广东深圳南山区
  • sendAddr(必填):寄件地址,如 北京海淀区
  • weight(必填):重量(kg,不带单位),默认 1

Node.js 调用

node script/kuaidi100.js estimatePrice \x3C快递公司编码> \x3C收件地址> \x3C寄件地址> [重量]

4. estimate_time — 预估寄件送达时间

触发场景:用户寄件前询问预计几天到、送达时间等(尚未寄出,无物流轨迹)。

参数

  • kuaidicom(必填):快递公司编码(小写),支持: 圆通yuantong、中通zhongtong、顺丰shunfeng、顺丰快运shunfengkuaiyun、京东jd、极兔速递jtexpress、申通shentong、韵达yunda、EMSems、跨越kuayue、德邦快递debangkuaidi、EMS-国际件emsguoji、邮政国内youzhengguonei、国际包裹youzhengguoji、宅急送zhaijisong、芝麻开门zhimakaimen、联邦快递lianbangkuaidi、天地华宇tiandihuayu、安能快运annengwuliu、京广速递jinguangsudikuaijian、加运美jiayunmeiwuliu
  • from(必填):出发地,如 广东省深圳市南山区
  • to(必填):目的地,如 北京市海淀区
  • orderTime(可选):下单时间,格式 yyyy-MM-dd HH:mm:ss,默认当前时间
  • expType(可选):业务/产品类型,如 标准快递

Node.js 调用

node script/kuaidi100.js estimateTime \x3C快递公司编码> \x3C出发地> \x3C目的地> [下单时间] [业务类型]

5. estimate_time_with_logistic — 预估在途快递送达时间

触发场景:用户查询了物流轨迹(query_trace)后,询问还需多久到达、预计几号能到等,通常在 query_trace 之后调用。

参数

  • kuaidicom(必填):快递公司编码(同 estimate_time,见上方支持列表)
  • from(必填):出发地,如 广东省深圳市南山区
  • to(必填):目的地,如 北京市海淀区
  • orderTime(必填):取 query_trace 返回的最早物流轨迹时间,格式 yyyy-MM-dd HH:mm:ss
  • logistic(必填):历史物流轨迹 JSON 数组,取自 query_trace 返回数据,格式:
    [{"time":"2025-12-29 12:43:35","context":"您的快件已到达快递驿站,请及时取件","status":"投柜或驿站"},{"time":"2025-12-29 08:48:27","context":"【河北省承德市隆化县】的郭工正在派件","status":"派件"}]
    

Node.js 调用

node script/kuaidi100.js estimateTimeWithLogistic \x3C快递公司编码> \x3C出发地> \x3C目的地> \x3C下单时间> \x3C物流轨迹JSON>

结果处理

所有接口均直接返回 Markdown 格式内容,无需额外处理,直接将结果返回给用户即可

典型调用流程

用户询问快递还需多久到
  → 1. query_trace 查询物流轨迹(获取快递公司、轨迹数据)
  → 2. estimate_time_with_logistic 预估剩余时间(携带轨迹数据)
  → 返回结果给用户
安全使用建议
This skill appears to do only what it says: call the kuaidi100 API and return results. Before installing, consider: (1) API key storage — config.json in the skill folder will contain your apiKey in plain text if you put it there; prefer using the KUAIDI100_API_KEY environment variable or a secrets manager. (2) Privacy — queries include tracking numbers, optional phone numbers, and logistic JSON which will be sent to api.kuaidi100.com; avoid sending sensitive personal data unless you trust the service. (3) The script defaults to sending the literal string 'null' as the key when no key is set (uses free quota) — that is functional but not a secret leak. If you need more assurance, review your agent environment to confirm the skill's folder is isolated and that you control who can read config.json.
功能分析
Type: OpenClaw Skill Name: kuaidi100-skill Version: 1.1.2 The skill provides legitimate functionality for querying express delivery information via the Kuaidi100 API. The Node.js script (script/kuaidi100.js) uses standard built-in modules to perform HTTPS GET requests to the official API endpoint (api.kuaidi100.com). It handles API keys through a local configuration file (config.json) or environment variables as described in the documentation (SKILL.md). No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
Name/description match the included code and instructions: the skill implements query_trace, auto_number, estimate_price, estimate_time, and estimate_time_with_logistic against api.kuaidi100.com. No unrelated services, binaries, or credentials are requested.
Instruction Scope
SKILL.md confines runtime actions to reading config.json (optional) and environment variable KUAIDI100_API_KEY, invoking the provided Node.js script, and returning API responses. It does not instruct the agent to read other files, system state, or transmit data to endpoints other than the kuaidi100 API.
Install Mechanism
No install spec is provided (instruction-only skill with a simple Node.js script). The script uses only Node built-in modules (https, fs, path, querystring) and does not download or execute external installers.
Credentials
No required environment variables are declared; SKILL.md documents an optional KUAIDI100_API_KEY and a local config.json apiKey. A single API key for the external kuaidi100 service is proportionate for this functionality.
Persistence & Privilege
Skill is not marked always:true and does not request elevated or persistent platform privileges or attempt to modify other skills' configs. It reads/writes only the skill-local config.json (no system-wide changes).
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install kuaidi100-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /kuaidi100-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.2
update: displayname更新
v1.1.1
feat: 改为nodejs实现 feat: 移除1.1.0版本中增加的寄件功能,相关功能转移到kuaidi100-user的skill中
v1.1.0
feat: 新增寄件功能支持
v1.0.0
kuaidi100-skill 1.0.0 - 首次发布,集成快递100 API 主要功能。 - 支持快递物流轨迹查询、快递公司识别、运费估算、预计送达时间和在途快递送达时间预估。 - 自动根据用户对快递单号、物流查询、公司识别等需求触发相应功能。 - 处理免费额度耗尽情况,并为用户提供解决指引。
元数据
Slug kuaidi100-skill
版本 1.1.2
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 4
常见问题

kuaidi100-skill-快递100物流查询 是什么?

快递100 API 技能,用于查询快递物流相关信息。当用户提到快递单号、物流轨迹、查快递、运费估算、预计到达时间、识别快递公司等需求时,必须使用此技能。支持:查询物流轨迹(query_trace)、识别快递公司(auto_number)、估算运费(estimate_price)、预估寄件送达时间(estimate... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 456 次。

如何安装 kuaidi100-skill-快递100物流查询?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install kuaidi100-skill」即可一键安装,无需额外配置。

kuaidi100-skill-快递100物流查询 是免费的吗?

是的,kuaidi100-skill-快递100物流查询 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

kuaidi100-skill-快递100物流查询 支持哪些平台?

kuaidi100-skill-快递100物流查询 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 kuaidi100-skill-快递100物流查询?

由 快递100API(@kuaidi100-api)开发并维护,当前版本 v1.1.2。

💬 留言讨论