serpapi-flightsQuery Google Flights via SerpApi for flight schedules, prices, and cabin class info. Use when user asks about flight/机票/航班 prices, schedules, or comparisons.
Install via ClawdBot CLI:
clawdbot install kirorab/serpapi-flightsQuery real-time flight data from Google Flights via SerpApi. Returns airline, flight number, times, prices, aircraft type, and cabin class info.
export SERPAPI_KEY=your_api_key
Free tier: 100 searches/month at serpapi.com
node {baseDir}/scripts/query.mjs <FROM> <TO> [-d YYYY-MM-DD] [options]
FROM/TO can be IATA codes (HKG, PVG) or Chinese city names (香港, 上海).
# Basic query
node {baseDir}/scripts/query.mjs HKG PVG -d 2026-02-25
# Business class
node {baseDir}/scripts/query.mjs HKG PVG -d 2026-02-25 -c 3
# All cabin classes (economy + business)
node {baseDir}/scripts/query.mjs HKG PVG -d 2026-02-25 --all
# Direct flights only
node {baseDir}/scripts/query.mjs 香港 上海 -d 2026-02-25 --direct
# Round trip
node {baseDir}/scripts/query.mjs HKG PVG -d 2026-02-25 -r 2026-03-01
# JSON output
node {baseDir}/scripts/query.mjs HKG PVG -d 2026-02-25 --json
-d, --date : Departure date (default: today)-r, --return : Return date (makes it round-trip)-c, --class <1-4>: 1=economy, 2=premium economy, 3=business, 4=first--all: Query economy + business together-a, --adults : Passengers (default: 1)--direct: Non-stop flights only--currency : Currency (default: CNY)--json: Raw JSON output| Column | Meaning |
|--------|---------|
| 航空公司 | Airline name |
| 航班号 | Flight number |
| 出发→到达 | Departure → arrival time (+1 = next day) |
| 飞行时间 | Total duration |
| 经停 | Non-stop or number of stops |
| 价格 | Price in specified currency |
| 机型 | Aircraft type |
| 延误 | ⚠️ = often delayed >30min |
北京 上海 广州 深圳 成都 重庆 杭州 南京 武汉 西安 长沙 昆明 厦门 青岛 大连 天津 郑州 沈阳 哈尔滨 海口 三亚 贵阳 南宁 福州 济南 合肥 太原 乌鲁木齐 兰州 珠海 温州 宁波 无锡 揭阳/潮汕/汕头 香港 澳门 台北
Generated Mar 1, 2026
Travel agencies can use this skill to quickly query real-time flight prices and schedules for clients planning trips. It helps agents compare options across airlines and cabin classes, providing up-to-date information to facilitate bookings and itinerary planning.
Companies managing employee travel can integrate this skill to monitor flight costs and availability for business trips. It enables efficient booking of economy or business class flights, optimizing travel budgets and ensuring compliance with corporate policies.
Online platforms can leverage this skill to aggregate flight data from Google Flights via SerpApi, offering users a comparison tool for prices, schedules, and cabin classes. This enhances user experience by providing comprehensive search results in real-time.
Event organizers can use this skill to arrange travel for attendees or staff, querying flights for specific dates and destinations. It supports planning for conferences or gatherings by identifying cost-effective and timely flight options.
Mobile apps can incorporate this skill to help individual users find and compare flights for vacations or visits. It provides detailed info on airlines, times, and prices, aiding in decision-making for personal travel arrangements.
Offer access to the flight query functionality through a paid subscription plan, targeting developers or businesses needing regular flight data. Revenue is generated from monthly or annual fees based on usage tiers, such as number of API calls.
Integrate the skill with booking platforms to redirect users to partner airlines or travel sites for ticket purchases. Earn commissions on completed bookings facilitated by the flight search and comparison features.
License the skill as a customizable white-label tool for large corporations or travel agencies to embed in their internal systems. Charge upfront licensing fees or ongoing support costs for integration and maintenance.
💬 Integration Tip
Ensure the SERPAPI_KEY environment variable is set and consider caching frequent queries to optimize API usage and reduce costs.
Foodora-only CLI for checking past orders and active order status (Deliveroo WIP).
Reorder Foodora orders + track ETA/status with ordercli. Never confirm without explicit user approval. Triggers: order food, reorder, track ETA.
Google Maps integration for OpenClaw with Routes API. Use for: (1) Distance/travel time calculations with traffic prediction, (2) Turn-by-turn directions, (3...
Flight tracking and scheduling. Track live flights in real-time by region, callsign, or airport using OpenSky Network. Search flight schedules between airports. Use for queries like "What flights are over Switzerland?" or "When do flights from Hamburg arrive in Zurich?" or "Track flight SWR123".
Use when the user asks to "find flights", "compare itineraries", "search hidden-city routes", "check cheapest dates", "explore destinations", "search hotels"...
Comprehensive travel planning, booking, and management skill. Use when needing to plan international trips, manage multi-destination itineraries, handle family travel logistics, optimize travel costs, and coordinate complex travel arrangements.