返回顶部
d

duffel航班管理

Search, book, and manage flights via the Duffel Flights API. Covers 300+ airlines (NDC, GDS, LCC). Use when: (1) searching for flights between cities, (2) comparing prices and fare classes, (3) booking flights, (4) checking booking status, (5) cancelling bookings, (6) viewing seat maps, (7) looking up airport/city IATA codes. Supports one-way, round-trip, multi-passenger, cabin class filtering, and nonstop preferences.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
468
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

duffel

Duffel 航班

通过 Duffel API 搜索、预订和管理超过300家航空公司的航班。

设置

将 DUFFEL_TOKEN 环境变量设置为您的 Duffel API 访问令牌。
在 https://app.duffel.com → 开发者 → 访问令牌 处获取。
测试令牌(前缀 duffeltest)使用余额无限的沙盒数据。

命令

搜索航班

bash python scripts/duffel.py search --from MIA --to LHR --date 2026-04-15 python scripts/duffel.py search --from MIA --to CDG --date 2026-03-15 --return-date 2026-03-22 --cabin business python scripts/duffel.py search --from JFK --to LAX --date 2026-05-01 --nonstop --adults 2

选项:--cabin economy|premium_economy|business|first、--nonstop、--adults N、--children N、--infants N、--sort price|duration、--max-results N、--json

结果带有编号。在其他命令中使用编号。

查看报价详情

bash python scripts/duffel.py offer 3

显示航段、行李、票价条件(退改签)、可用附加服务。

预订航班

bash python scripts/duffel.py book 3 --pax RIBEIRO/FABIO MR 1977-01-31 fabio@ribei.ro +13059159687 BR m

乘客格式:姓氏/名字 称谓 出生日期 邮箱 电话 国籍 性别

  • - 称谓:MR、MRS、MS、MISS、DR
  • 性别:m 或 f
  • 多名乘客:为每位乘客重复 --pax ...

支付使用 Duffel 账户余额。在 https://app.duffel.com 充值。

查看订单状态

bash python scripts/duffel.py order ord_0000XXXXX

取消订单

bash python scripts/duffel.py cancel ord_0000XXXXX # 报价(显示退款金额) python scripts/duffel.py cancel ord_0000XXXXX --confirm # 执行取消

座位图

bash python scripts/duffel.py seatmap 3

机场/城市查询

bash python scripts/duffel.py places new york

典型工作流程

  1. 1. search → 浏览编号结果
  2. offer N → 查看详情、行李、条件
  3. book N --pax ... → 获取 PNR
  4. order → 验证预订
  5. cancel → 如需取消

注意事项

  • - 报价会过期(通常约20分钟)。过期后需重新搜索。
  • 测试模式:余额无限,预订在Duffel Airways(虚拟航空公司)。
  • 生产环境:真实航空公司,真实机票。必须充值余额。
  • 所有命令支持 --json 获取原始 API 输出。
  • 上次搜索结果保存至 /tmp/duffel-last-search.json 供索引参考。
  • 有关 API 详情,请参阅 references/api-guide.md 和 references/booking-flow.md。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 duffel-1775908088 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 duffel-1775908088 技能

通过命令行安装

skillhub install duffel-1775908088

下载

⬇ 下载 duffel v1.0.0(免费)

文件大小: 10.46 KB | 发布时间: 2026-4-12 09:47

v1.0.0 最新 2026-4-12 09:47
- Initial release of the Duffel skill for searching, booking, and managing flights via the Duffel Flights API.
- Supports over 300 airlines (NDC, GDS, LCC) with features including flight search, offer comparison, booking, order status, cancellation, seat maps, and airport/city code lookup.
- Allows filtering by cabin class, nonstop preference, passenger count, and trip type (one-way or round-trip).
- Includes commands for viewing fare details and managing cancellations with refund quotes.
- Provides sandbox mode for testing and production mode for real bookings.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部