跳到正文
TakoAPI
返回技能列表

amadeus-flights

由 kirorab 提供

Transportation
427下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Query flight offers (price, schedule, availability) via Amadeus API.

描述

该技能的功能

Queries real-time flight offers via the Amadeus API, returning prices, schedules, stop counts, and seat availability. Supports IATA airport codes with built-in lookup for 40+ Chinese cities. Works in test or production mode depending on the configured base URL.

Amadeus provides real carrier pricing and availability in one API call, avoiding manual searches across multiple booking sites.

何时使用

  • Checking cheapest flights between two cities on a specific date
  • Finding non-stop business class options for a work trip
  • Looking up IATA codes for Chinese cities by name
  • Comparing economy vs premium economy pricing
  • Getting raw JSON flight data for further processing

示例工作流

输入

User asks: What are the cheapest flights from Hong Kong to Shanghai on March 20?

智能体
  1. 1

    Resolve city names to IATA codes (HKG, PVG)

  2. 2

    Run query.mjs HKG PVG -d 2026-03-20 to fetch offers from Amadeus API

  3. 3

    Parse results for price, stops, and schedule

  4. 4

    Return ranked list of flight options with prices in CNY

输出

List of available flights with airline, departure time, stops, and price

前置要求

  • AMADEUS_API_KEY environment variable
  • AMADEUS_API_SECRET environment variable
  • Amadeus developer account at developers.amadeus.com

安装

clawhub install kirorab/amadeus-flights

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接