Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If you need Google Flights results in code, the clearest documented route is a third-party extraction service—not a public Google Flights API. Google’s own Flights Search information is aimed at airline and online travel agency partners, and describes an invitation-only integration. Before collecting data, decide whether you need Google Flights’ displayed results or simply searchable flight inventory: those are different jobs, with different authorization, reliability, and booking considerations.

First decide what “Google Flights data” means

People asking how to scrape Google Flights commonly want itineraries, fares, schedules, layovers, emissions, or booking options in a machine-readable format. But “results that Google Flights displays” and “flight inventory I can search or book” are not interchangeable requirements.

Need Approach to evaluate Important distinction
Data reflecting Google Flights’ displayed results A managed third-party extraction service, subject to its terms and the applicable access rules The service is not an official Google API, and its output should not be assumed complete or identical to a traveler’s live view.
Searchable or bookable flight inventory An authorized travel-data or booking API Assess coverage, downstream data rights, and whether the provider supports booking or ticketing.
Google partner integration Google Flights Search partner onboarding Google describes partner material as invitation-only and shared under NDA; it is not a general public route-search API.

Google describes Google Flights as “a free and organic metasearch engine” that provides flight solutions and deep links to partners. See Google’s Flights Search information. Its intended partner route is therefore distinct from using an extractor to collect what the consumer-facing site displays.

Check access rules before automating

Do not treat the existence of an extraction product or a working request as permission to collect, retain, or redistribute data. Google’s US Terms of Service effective July 30, 2026 prohibit “using automated means to access content from any of our services in violation of the machine-readable instructions on our web pages.” Google Search Central separately says that automated queries to Google Search without express permission violate its spam policies and Terms of Service. That Search policy is specifically about Google Search; it should not be stretched into a definitive ruling about every Google Flights method or page.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
  • Review current machine-readable instructions for the exact paths you intend to access, plus the current service-specific terms.
  • Check applicable local law and the extraction vendor’s contract, data retention rules, and permitted downstream uses.
  • Do not bypass CAPTCHAs, identity checks, rate controls, or other access controls.
  • If you need a contractual basis for use or downstream redistribution, favor an authorized travel-data provider or partner arrangement over attempting to infer permission from technical accessibility.

The applicable terms can vary by country and change over time. The date and scope above refer to the US terms identified as effective July 30, 2026; they are not a legal conclusion for every jurisdiction.

Use a managed extractor for Google Flights display results

One documented third-party option is SerpApi’s Google Flights API. Its documentation describes a GET request using route, dates, localization, and output-format parameters, with structured responses and Python and JavaScript usage. This is a vendor service, not an official Google API. The vendor documents result groups such as best_flights and other_flights, plus follow-up lookups using itinerary-selection and booking tokens.

The example below shows the documented request shape using the SerpApi search endpoint. Create an API key with the vendor and keep it in an environment variable rather than committing it to source control. Confirm the vendor’s current parameter names, endpoint, response schema, rate limits, and commercial terms before deploying; the service’s documentation is the authority for its current behavior.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
import os
from datetime import date
import requests

api_key = os.environ["SERPAPI_KEY"]
params = {
    "engine": "google_flights",
    "departure_id": "JFK",
    "arrival_id": "LHR",
    "outbound_date": "2026-10-20",
    "return_date": "2026-10-27",
    "type": "1",
    "currency": "USD",
    "hl": "en",
    "api_key": api_key,
    "output": "json",
}

response = requests.get(
    "https://serpapi.com/search.json",
    params=params,
    timeout=60,
)
response.raise_for_status()
data = response.json()

# A successful HTTP response can still contain a vendor-level error.
if data.get("error"):
    raise RuntimeError(data["error"])

for group in ("best_flights", "other_flights"):
    for itinerary in data.get(group, []):
        print(group, itinerary)

This is a vendor-documentation pattern, not code independently tested for this article or a guarantee that every response uses the same fields. The example uses JFK and LHR airport IDs, a round trip, dates, currency, language, and JSON output. Adjust the route and dates for your query and verify the current API’s trip-type and location conventions.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Interpret the response as observations, not a complete market feed

Inspect both best_flights and other_flights when present rather than silently treating one group as the entire result set. A response is a retrieval at a point in time, not proof that every carrier, fare, or bookable option is represented. For useful price history, save the observation time, origin, destination, travel dates, currency, locale, and source alongside each result. Without that context, two fare records may not be comparable.

Use follow-up tokens only from actual results

The documented flow can use a departure-selection token to retrieve return options, and a booking token to request booking options. Treat tokens as opaque values returned by the service: do not construct them or assume they remain valid indefinitely. A booking-options lookup returns options; it does not itself buy or reserve a ticket. Pinning a particular flight is another documented flow, so check the vendor’s current documentation for the required parameters and token lifecycle.

Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Choose between extraction and an authorized inventory API

Before building a production workflow, compare the options against the actual product requirement rather than assuming the closest-looking JSON response is suitable.

Decision factor Questions to answer
Source and authorization Must results mirror Google Flights, or can another inventory source meet the need? What access and downstream-use rights does the provider grant?
Coverage and freshness Which routes, dates, currencies, locales, and carriers matter? How fresh must a result be, and how will you verify it?
Operational limits What are the current quotas, pricing, latency, and rate limits? The cited material does not establish comparable values for providers.
Completeness and stability How will you handle missing groups, changed fields, temporary errors, and results that differ from a traveler’s live view?
Booking requirements Do you only need discovery and deep links, or do you need inventory access and ticketing under an authorized arrangement?
Maintenance Can your team monitor failures, validate returned prices, rotate credentials, and update integration code when the vendor changes its API?

If your application needs purchase capability, do not mistake a displayed fare or booking-options response for a reservation. Evaluate an authorized booking provider’s booking and ticketing terms directly.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Why direct browser scraping is a poor default

A self-maintained browser scraper must contend with dynamic pages, changing markup, localization, asynchronous loading, and access controls. More importantly, the available evidence here does not establish a robust or permitted direct-browser recipe, nor does it establish Google Flights’ current robots directives. Google’s machine-readable-instructions language makes checking the exact current instructions material. Do not copy an old selector script and treat it as a stable integration or as evidence that the collection is allowed.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

If you have an authorized use case, document the permission basis and target paths first, then build only within those limits. Avoid evasion techniques. For an ongoing product, use an authorized inventory source or a vendor whose contract and current documentation fit your use case.

Reliability, monitoring, and cost planning

Third-party extraction has different reliability properties from Google’s own partner tooling. Google’s partner Live API dashboard covers a rolling seven days of partner-query success rates and error samples, while its Quality dashboard reports measures such as itinerary-not-found and price discrepancy over a rolling 90-day average. Those windows describe partner dashboards; they do not guarantee the performance of a third-party extractor.

  • Set an explicit request timeout and handle both transport errors and vendor-level error payloads.
  • Log a request identifier or safe diagnostic context, query time, route, travel dates, locale, and response status. Do not log API keys.
  • Track parse failures and schema changes separately from failed HTTP requests.
  • For fare tracking, compare observations only when route, dates, currency, and locale align; show users when a displayed price was observed.
  • Estimate cost from the provider’s current published plan and quota for your usage pattern. Pricing, quotas, and licensing terms are not established by the cited documentation summarized here.
  • Use bounded retries for transient failures and avoid retry loops that create excess traffic or violate provider limits.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshooting common failures

Symptom Likely cause What to check
HTTP error or timeout Network interruption, provider availability, invalid request, or a timeout shorter than the response time Check connectivity and provider status, inspect the HTTP status and safe error body, and use a reasonable timeout. Retry only transient failures within documented limits.
HTTP success but no usable results Vendor-level error in JSON, no matching options, or different response shape Check for an error field before parsing, then inspect the full response structure and current vendor schema.
best_flights is absent That result group may not be present for the query, or response structure may have changed Handle missing groups as optional; inspect other_flights and the vendor’s current response documentation.
Route or date rejected Invalid location identifier, malformed date, or unsupported parameter combination Confirm airport/location IDs, required date format, trip type, and permitted date combinations in the current vendor guide.
Fare differs from a later view Prices and availability are time-sensitive, and localized views or subsequent searches may differ Store the query time, route, travel dates, currency, locale, and source; do not describe an old observation as a guaranteed current fare.
Follow-up lookup fails Token is missing, altered, stale, or not returned for the selected itinerary Pass through the exact token from the relevant result and follow the vendor’s current token flow; do not synthesize one.

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server, not a flight-data API. It can capture a visual page snapshot, but it does not return structured itinerary inventory or replace an authorized flight-data provider. If a visual record of a Google Flights page is useful alongside your data workflow, one GET request can return a screenshot:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://www.google.com/travel/flights -o shot.webp

See the ScreenshotNeo API documentation for request options. ScreenshotNeo removes cookie banners, newsletter popups, and chat widgets before the shot; bot checks, blank pages, and failed loads are not billed. Its MCP server lets AI agents take screenshots. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 screenshots. Learn about ScreenshotNeo or sign up for 1,000 free screenshots a month with no card.

Frequently asked questions

Can I use a screenshot to build a structured fare database?

A screenshot records a visual state, not a reliable machine-readable inventory feed. Use an authorized data source for structured records and reserve screenshots for visual reference or auditing.

Does an extractor’s successful response prove a fare can still be booked?

No. A response records what the service returned for a query; it does not establish that an option remains available when a traveler follows a link or attempts a purchase.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.