UnitBytes Logo
UnitBytes Web Data APIs
Home / Blog / Travel & Hospitality Data
Travel & Hospitality Data 6 min read 2026-11-16

Google Flights ($0.50/1K) & Google Hotels API in Python: The Post-Amadeus & fast-flights Alternative

Developer guide to querying real-time Google Flights airfare matrices ($0.50/1K Gold+, $0.90/1K Free) and Google Hotels multi-OTA rate parity across Booking.com, Expedia, and direct hotel sites ($2.50/1K Gold+) in Python—replacing restricted GDS APIs and brittle HTML scrapers.

Google Flights ($0.50/1K) & Google Hotels API in Python: The Post-Amadeus & fast-flights Alternative

Developers building airfare deal monitors, corporate travel sustainability calculators, or hotel revenue-management rate shoppers face a fragmented API landscape in 2026:

  1. Legacy GDS & Post-Amadeus Self-Service Friction: Traditional Global Distribution Systems (Sabre, Travelport, and enterprise Amadeus tiers) are designed around accredited travel agencies issuing tickets—not agile analytics, metasearch comparison, or hospitality rate-parity teams. Self-serve developers face strict quota ceilings, missing low-cost carriers (LCCs), and zero visibility into side-by-side Online Travel Agency (OTA) retail hotel pricing (Booking.com vs. Expedia vs. Hotels.com vs. Official Site).
  2. Open-Source fast-flights Protobuf & Consent Breakage: Lightweight Python wrappers like fast-flights are convenient for hobby scripts, but rely on hardcoded Base64/Protobuf offsets and local datacenter IPs that break whenever Google rotates field indices or serves regional EU/US consent walls.
  3. High Per-Search SERP API Costs ($15–$50 / 1,000): Commercial SERP APIs charge per request rather than per extracted itinerary, meaning a 20-route x 7-day airfare calendar sweep (140 calls) burns credits rapidly even when routes return sparse results.

To make travel pricing analytics accessible at true Pay-Per-Event scale, UnitBytes provides two cloud APIs on Apify:


1. Travel Data API Comparison (2026)#

FeatureLegacy GDS APIsfast-flights (Open Source)Travel SERP APIs ($15–$50/1K)UnitBytes Google Travel Suite
Flights CostPer-search contract + minimums$0 + proxy/maintenance$15 – $50 / 1K searches$0.50 / 1K flights Gold+ ($0.90/1K Free)
Hotels CostLimited GDS rate codesNot supported$15 – $50 / 1K searches$2.50 / 1K hotels Gold+ ($5.00/1K Free)
Free Monthly AllowanceSandbox test data onlySelf-hosted100–250 searches~5,550 flights OR 1,000 hotels/mo free ($5 Apify credit)
Multi-OTA Hotel Rate ParityNo (GDS rates only)NoPartialotaOffers[] (Official Site, Booking.com, Expedia, Agoda)
Historical Fare Context & $\text{CO}_2$RarePartialPartialpriceLevel (low/typical/high), typicalPriceRange & co2Grams
Multi-Origin $\times$ Destination Matrix1 route per call1 route per call1 route per callNative origins[] $\times$ destinations[] expansion

2. Google Flights API ($0.50/1K): Route Matrices, Mistake Fares & Scope 3 $\text{CO}_2$#

Exact Verified Input Keys (unitbytes/google-flights-scraper)

  • origins (array) / from (string): Origin IATA airport or metro codes (e.g., ["JFK", "EWR"]).
  • destinations (array) / to (string): Destination IATA codes (e.g., ["LHR", "CDG", "NRT"]).
  • departureDate (string) & returnDate (string): YYYY-MM-DD dates.
  • tripType (string): "one_way" or "round_trip".
  • cabinClass (string): "economy", "premium_economy", "business", or "first".
  • adults (integer, default 1) & children (integer, default 0).
  • maxStops (string): "any", "nonstop", "1_stop_or_fewer", or "2_stops_or_fewer".
  • sortBy (string): "best", "cheapest", "departure_time", "arrival_time", "duration", or "emissions".
  • currency (string, 150+ ISO codes, e.g. "USD", "EUR", "GBP"), country, language.
  • urls (array, optional): Direct Google Flights search URLs.
  • maxFlights (integer): Maximum flight itineraries returned per route.

Python Example: Multi-Route Nonstop Fare & $\text{CO}_2$ Sweep

python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_API_TOKEN"])

flights_input = {
    "origins": ["JFK", "BOS"],
    "destinations": ["LHR", "DUB"],
    "departureDate": "2026-12-10",
    "returnDate": "2026-12-17",
    "tripType": "round_trip",
    "cabinClass": "economy",
    "adults": 1,
    "maxStops": "nonstop",
    "sortBy": "cheapest",
    "currency": "USD",
    "country": "us",
    "language": "en",
    "maxFlights": 10,
}

run = client.actor("unitbytes/google-flights-scraper").call(run_input=flights_input)

for flight in client.dataset(run["defaultDatasetId"]).iterate_items():
    dep = flight.get("departureAirportCode") or (flight.get("departureAirport") or {}).get("code")
    arr = flight.get("arrivalAirportCode") or (flight.get("arrivalAirport") or {}).get("code")
    print(
        f"{flight.get('airline')} ({', '.join(flight.get('flightNumbers') or [])}) "
        f"{dep} -> {arr} | ${flight.get('price')} {flight.get('currency')} "
        f"[Level: {flight.get('priceLevel')}, Typical: {flight.get('typicalPriceRange')}] | "
        f"CO2: {flight.get('co2Grams')}g ({flight.get('emissionsDiffPct')}%)"
    )

3. Google Hotels API ($2.50/1K): Auditing Booking.com & Expedia Rate Parity#

For hotel revenue managers and hospitality SaaS tools, an unauthorized $18/night OTA undercut on Booking.com, Expedia, or Agoda cannibalizes direct website bookings while still costing 15–25% in OTA commissions.

Exact Verified Input Keys (unitbytes/google-hotels-scraper)

  • locations (array) or queries (array): Target cities, neighborhoods, or specific hotel names (e.g., ["Midtown Manhattan, New York"]).
  • urls (array, optional): Direct Google Hotels URLs.
  • checkInDate & checkOutDate (strings): YYYY-MM-DD stay window.
  • adults (integer, default 2) & children (integer, default 0).
  • propertyType (string): "hotels" or "vacation_rentals".
  • minRating (string): "any", "3.5", "4.0", or "4.5".
  • hotelStars (array): Star class filter (e.g., [4, 5]).
  • minPrice & maxPrice (integers, optional): Nightly price bounds.
  • sortBy (string): "relevance", "lowest_price", or "highest_rating".
  • currency, country, language, and maxHotels (integer).

Python Example: Automated Hotel Compset OTA Undercut Detector

python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_API_TOKEN"])

hotels_input = {
    "locations": ["Miami Beach, FL"],
    "checkInDate": "2026-12-14",
    "checkOutDate": "2026-12-17",
    "adults": 2,
    "children": 0,
    "propertyType": "hotels",
    "minRating": "4.0",
    "hotelStars": [4, 5],
    "sortBy": "lowest_price",
    "currency": "USD",
    "country": "us",
    "language": "en",
    "maxHotels": 15,
}

run = client.actor("unitbytes/google-hotels-scraper").call(run_input=hotels_input)

for hotel in client.dataset(run["defaultDatasetId"]).iterate_items():
    offers = hotel.get("otaOffers") or []
    direct = next(
        (o for o in offers if "official" in (o.get("provider") or "").lower()),
        None,
    )
    cheapest_ota = min(
        (o for o in offers if o.get("price") is not None),
        key=lambda o: o["price"],
        default=None,
    )
    direct_rate = direct["price"] if direct else hotel.get("pricePerNight")
    if cheapest_ota and direct_rate and cheapest_ota["price"] < direct_rate:
        diff = direct_rate - cheapest_ota["price"]
        print(
            f"[OTA UNDERCUT -${diff}/nt] {hotel.get('name')}: "
            f"{cheapest_ota['provider']}=${cheapest_ota['price']} vs Direct=${direct_rate}"
        )
    else:
        print(f"[PARITY OK] {hotel.get('name')}: ${hotel.get('pricePerNight')}/nt ({len(offers)} OTAs)")

4. Realistic Limitations: Metasearch Intelligence vs. Ticketing GDS#

To pick the right tool for your architecture, separate pricing & rate-parity intelligence from live PNR ticketing:

  • What Google Flights & Hotels Scrapers Excel At: High-speed, ultra-low-cost ($0.50–$2.50/1K) route fare monitoring, LCC + legacy carrier coverage, Scope 3 $\text{CO}_2$ benchmarking, hotel compset tracking, multi-OTA rate-parity auditing, and deep-linking users directly to Google Flights (googleFlightsUrl) or OTA checkout URLs (otaOffers[].url).
  • What Still Requires a Ticketing API (Duffel / Enterprise GDS): Issuing airline e-tickets (PNRs), live seat-map selection, baggage ancillaries checkout, or holding refundable hotel room inventory programmatically inside your own payment flow.

5. Automate Route Fare Drops & OTA Parity Alerts in n8n#

  • 18-Node Travel & Hospitality n8n Workflows: Copy our ready-to-import Google Flights Fare Drop (Slack + Telegram + Sheets) and Google Hotels OTA Rate Parity (Slack + Gmail + Sheets) templates from the UnitBytes n8n Workflow Hub.
  • 1-Click Travel Presets: Test transatlantic business-class sweeps, nonstop domestic fare monitors, and 4–5 star hotel OTA parity checks directly from unitbytes.com/tasks.

Frequently Asked Questions (FAQ)

Do I need accounts, cookies, or my own proxies to run these scrapers?

No. All UnitBytes cloud extraction engines on Apify operate zero-login with built-in proxy management and anti-bot handling included out of the box.

Can I export the extracted data directly to Excel, CSV, Google Sheets, or n8n?

Yes. Every dataset item is normalized into flat root-level fields that export cleanly to CSV, Excel (.xlsx), JSON, Parquet, Google Sheets, BigQuery, or automated n8n workflows.

How does Pay-Per-Event pricing work on Apify?

You only pay per successfully extracted record with volume discounts on higher tiers, and every Apify account includes $5.00 in free monthly platform usage to test our cloud extraction engines at zero cost.

Tags: #Google Flights API#Google Hotels API#Amadeus Alternative#OTA Rate Parity#Travel Data#Python#Apify
Continue Reading

Related Technical Guides & Teardowns

All Guides →
Done-For-You Datasets • Data Feeds • Custom Scrapers

Need Custom Travel & Hospitality Data Data or a Dedicated Pipeline?

Don't want to run scrapers yourself? Tell us what data you need and we'll deliver a clean Excel / CSV / Google Sheets dataset, set up a recurring data feed, or build a custom scraper for a new site.

One-Time Dataset
From $99

Send your keywords, categories, or URLs. We run the extraction and email you a clean Excel/CSV file, usually within 48 hours.

Recurring Data Feed
Priced by Volume

Daily or weekly data delivered to Google Sheets, Amazon S3, BigQuery, or a webhook. Tell us the volume and we'll quote a fixed monthly price.

Custom Scraper
From $299

Need a new website scraped or custom fields added? We build it, deliver it, and can maintain it for you.

We reply within 48 hours.
Prefer direct email? Write to us anytime at contact@unitbytes.com