Apify flight price api
Skill johnisanerd/claude-skill-flight-price-api/apify-flight-price-api
Collect current airfares by route with a flight price api built on the Apify Google Flights Actor (johnvc/Google-Flights-Data-Scraper-Flight-and-Price-Search). Give routes and dates and get structured fare rows back, price, currency, airlines, stops, duration, plus route-level price insights (lowest price, price level, typical price range), ready to export, compare across dates, or poll on a schedule for price monitoring. Use when the user wants a flight price api, airfare data by API, to compare fares across dates or airports, to build a flight price dataset, or to watch a route's fares over time. Current quotes only, honestly framed, no fare forecasts and no reservations. Pay-per-page billing, MCP-ready for Claude and other AI agents.From its SKILL.md
npx -y skills add johnisanerd/claude-skill-flight-price-api --skill apify-flight-price-apiAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
3 things to look at
- 28 days oldThe repository was created 28 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
6.9 KB, ~1.6k tokens by cl100k_base, as published. Nobody here has run it
Flight Price API: Current Airfares by Route
Collect current airfares as structured data. One call takes a route and date and returns fare rows with price, airlines, stops, and duration, plus route-level price insights. Compare fares across dates or airports, export a dataset, or poll a route on a schedule.
When to use this skill
- The user wants a "flight price API" or airfare data by API.
- They want to compare fares across dates, airports, or airlines for a trip or an analysis.
- They want a flight price dataset for a report or app, exported as JSON or CSV.
- They want to watch a route's fares over time (bounded scheduled polls).
Not for: fare forecasts or "will prices drop" predictions (the Actor reports current levels, not the future), consumer price alerts (Google and the OTAs own that), live flight status, or booking tickets.
What you get (one dataset item per page, fares nested in all_flights)
Each dataset item is one page of results holding an all_flights array (about 30 fares per page). Per flight: price, currency, route, airlines, departure_airport, departure_time, arrival_airport, arrival_time, stops, stops_label, duration_minutes, travel_class, flight_numbers, carbon_emissions_g. Route-level context on the same item: price_insights with lowest_price, price_level (low, typical, high), typical_price_range, and a recent price_history series when Google shows one.
Prerequisites
- Apify account (sign up at https://apify.com?fpr=9n7kx3&fp_sid=skillrepo).
- Authentication via
apify login, or anAPIFY_TOKENenvironment variable (Apify Console, Settings, Integrations).
The Actor
- Store page: https://apify.com/johnvc/Google-Flights-Data-Scraper-Flight-and-Price-Search?fpr=9n7kx3&fp_sid=skillrepo
- Actor ID:
johnvc/Google-Flights-Data-Scraper-Flight-and-Price-Search - Pricing: a small per-run setup fee plus a per-page fee (see
references/gotchas.md).
Run it with the Apify CLI
Price check for one route and date:
apify actors call "johnvc/Google-Flights-Data-Scraper-Flight-and-Price-Search" -i '{"departure_id":"ORD","arrival_id":"MIA","outbound_date":"2026-09-05","max_pages":1}' \
--json \
--user-agent apify-awesome-skills/apify-flight-price-api \
2>/dev/null
Nonstop fares under a cap, in euros for the German market:
apify actors call "johnvc/Google-Flights-Data-Scraper-Flight-and-Price-Search" -i '{"departure_id":"FRA","arrival_id":"BCN","outbound_date":"2026-08-22","max_stops":0,"max_price":250,"currency":"EUR","gl":"de","hl":"de"}' \
--json \
--user-agent apify-awesome-skills/apify-flight-price-api \
2>/dev/null
Every call carries the three flags this repo expects: --json, --user-agent apify-awesome-skills/apify-flight-price-api, and 2>/dev/null.
Run it from Claude or another AI agent (MCP)
The Actor is MCP-ready. Add the hosted server URL:
https://mcp.apify.com/?tools=actors,docs,johnvc/Google-Flights-Data-Scraper-Flight-and-Price-Search
Then ask, for example: "Check current fares from Chicago to Miami for the first week of September and tell me whether prices are low or high for the route." MCP setup docs: https://docs.apify.com/platform/integrations/mcp
Workflow
- Define the fare question. One route and date per call:
departure_id,arrival_id,outbound_date(plusreturn_datefor round-trip pricing). For a date comparison, loop the same route over several dates; for an airport comparison, use comma-separated codes. - Keep each call bounded.
max_pages1 covers the visible result set for most routes and keeps the per-call cost at a few cents. - Estimate cost per call and, for monitoring, per month; confirm with the user. See
references/gotchas.md. - Run and read the dataset. Read the page item's
all_flightsarray and sort byprice; readprice_insights.price_levelandtypical_price_rangeto say whether current fares are low, typical, or high for the route. - Deliver or persist. Hand back a table or CSV, or write rows to a store keyed by route plus date plus crawl time so repeated polls build a fare log over time.
- For recurring monitoring, wrap the same input in an Apify Schedule (one schedule per route) rather than one giant multi-route run.
Inputs
departure_id/arrival_id(IATA codes, comma-separated allowed) andoutbound_date;return_dateoptionalcurrency(default USD),glandhl(market localization)max_price,max_stops,airlines,exclude_basic(fare filters)max_pages(default 1): the per-call cost bound
Cost
A one-page fare check costs a few cents (setup plus one page). A daily poll on one route is roughly a dollar a month; a 20-route daily board is roughly $20 a month, which crosses the confirm threshold. Live prices and math are in references/gotchas.md.
Honest limits
- Prices are current quotes at crawl time; they change constantly and are not guaranteed at booking.
price_insightsis present-tense context: price level, typical range, and sometimes a recentprice_historyseries from Google. It is NOT a forecast; longer or custom fare logs come from your own repeated polls.- Monitoring freshness equals your poll interval; this is a polled source, not a push alert feed.
- No reservations and no ticketing; booking happens on the airline or travel site.
Troubleshooting
- No
price_insightson a route: Google does not show insights for every route and date; the fare rows still return. - Fares jump between polls: normal airline repricing; log crawl time with every row.
- Wrong currency: set
currencyandgltogether for the market you want.
See references/gotchas.md for cost guardrails and error recovery, and references/actor-index.md for the Actor routing table.
Related travel Actors
- Google Hotels Search Scraper: https://apify.com/johnvc/google-hotels-search-scraper?fpr=9n7kx3&fp_sid=skillrepo
- Google Travel Explore API: https://apify.com/johnvc/google-travel-explore-api?fpr=9n7kx3&fp_sid=skillrepo
- Google Maps Directions API: https://apify.com/johnvc/google-maps-directions-api?fpr=9n7kx3&fp_sid=skillrepo
What ships with it: 2 files
3.9 KB alongside SKILL.md
references/
- actor-index.md1.5 KB
- gotchas.md2.4 KB