编程

Variflight Global Flight Fares

试用

Variflight Global Flight Fares searches one-way flight fares from the Variflight ticket API by departure IATA city code, arrival IATA city code, and departur...

它能做什么

Variflight Global Flight Fares searches one-way flight fares from the Variflight ticket API by departure IATA city code, arrival IATA city code, and departur...

技能文档

Variflight Global Flight Fares

Overview

Use the bundled script to query the Variflight ticket API and return one-way flight options for a single route and date.

Workflow

  1. Collect dep, arr, and date.
  2. Validate dep and arr as three-letter IATA city codes and date as YYYY-MM-DD.
  3. If the user gives city names instead of codes, infer only when the mapping is unambiguous; otherwise ask for the IATA codes.
  4. Run python3 scripts/query_flights.py --dep BJS --arr SHA --date 2026-04-21.
  5. Summarize the result with departure airport, arrival airport, times, duration, price, transfer info, and the flight tag text.

Output Rules

  • Treat API code != 0 as a failure and surface the returned msg.
  • Treat an empty data.list as a valid "no flights found" result.
  • Use --limit N when the user only wants a subset of results.
  • Use --json only when the user asks for raw payload data.
  • Mention transfer flights separately from direct flights when summarizing.
  • Do not ask the user to provide an API key for this skill.

Script

  • scripts/query_flights.py accepts:
    • --dep
    • --arr
    • --date
    • --limit
    • --json
  • The script sends the fixed request parameter flightNum=10.

Example

Run python3 scripts/query_flights.py --dep BJS --arr SHA --date 2026-04-21 --limit 5 to fetch the first five displayed results for Beijing to Shanghai on April 21, 2026.

相关技能

获得基于当前价格、签证、天气与当地活动调研的逐日行程方案。

59 次安装1 星标

按总价与时效拆解航班搜索、改签、退款与索赔,给出真实成本与下一道截止时间。

64 次安装

Query China domestic transport options through one skill. Use when a user wants domestic flight or high-speed rail results, departure and arrival times, stat...

33 次安装

Generate complete, image-rich travel plans from trip dates and destination, including day-by-day itinerary, transportation, lodging area guidance, budget ran...

42 次安装1 星标

跨多趟旅行长期维护的旅行档案:心愿目的地、证件状态、订单、积分与花费。

131 次安装5 星标

Compact full report for one US credit card

31 次安装1 星标