تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

amadeus-flights

بواسطة kirorab

Transportation
427التنزيلات وفق ما يذكره clawskills.sh
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

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط