{"uid":"cap_z4r4dAnVkgkkTp8GCxKrU","slug":"google-flights-scraper-api-2db6bb12","name":"Google Flights Scraper API","description":"Pay-per-call structured web data. Failed or empty runs are not charged.","url":"https://api.scrapeforagents.tech/v1/google-flights?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"gl":{"type":"string","default":"us","description":"Country code for the search page, such as us."},"hl":{"type":"string","default":"en","description":"Language code for the search page, such as en."},"adults":{"type":"integer","default":1,"maximum":9,"minimum":1,"description":"Number of adult travelers included in the displayed price."},"airlines":{"type":"string","default":"","description":"Optional comma-separated airline codes, such as AA,DL. Keep matching returned itineraries."},"currency":{"type":"string","default":"USD","description":"Three-letter currency code for displayed prices, such as USD or EUR."},"maxItems":{"type":"integer","default":100,"minimum":0,"description":"Maximum flight rows to save. Set 0 for every itinerary exposed in the initial result set."},"max_price":{"type":"integer","minimum":1,"description":"Keep only returned itineraries at or below this displayed price."},"max_stops":{"type":"integer","minimum":0,"description":"Keep itineraries with at most this many stops. Set 0 for nonstop flights."},"arrival_id":{"type":"string","description":"One three-letter IATA airport code, such as JFK. The search is for one arrival airport."},"return_date":{"type":"string","description":"Optional return date in YYYY-MM-DD format. Leave empty for a one-way search."},"departure_id":{"type":"string","description":"One three-letter IATA airport code, such as LAX. The search is for one departure airport."},"outbound_date":{"type":"string","description":"Departure date in YYYY-MM-DD format. Use a future date with published fares."}}},"responseSchema":{"type":"json","example":{"count":1,"items":[{"flightId":null,"tripType":null,"outboundDate":null,"arrivalAirport":null,"resultCategory":null,"departureAirport":null,"arrivalAirportName":null,"departureAirportName":null}],"product":"google-flights"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.025","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_V3XIjhG3nVfEJo8obiEbs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Searches Google Flights and returns structured flight itinerary data for a given origin, destination, and date range","exampleAgentPrompt":"Search Google Flights for nonstop round-trip flights from LAX to JFK departing on 2025-08-15 and returning on 2025-08-22 for 1 adult in USD, and show me only results under $400.","exampleUseCases":[{"title":"Cheapest nonstop vacation flights","prompt":"Find me the cheapest nonstop round-trip flights from SFO to Miami leaving June 20th and coming back June 27th for 2 adults — show only prices under $350 per person in USD."},{"title":"Business travel airline filter","prompt":"Search for flights from JFK to LAX on 2025-09-10, one-way, for 1 adult — only show Delta or United Airlines flights, priced in USD."},{"title":"International round-trip budget search","prompt":"Look up round-trip flights from LHR to JFK departing 2025-11-01 and returning 2025-11-15 for 1 adult, in EUR, and filter to itineraries with at most 1 stop and a max price of 600."}],"resultDescription":"Returns a JSON object with a count of matched itineraries and an array of flight items, each containing flight ID, trip type, outbound date, arrival and departure airport codes and names, and result category. Only itineraries matching the specified filters (price, stops, airlines) are included.","failureModes":["Missing required fields (departure_id, arrival_id, outbound_date) result in a validation error","Invalid IATA airport codes return empty results or an error","Past or invalid dates yield no results","Overly restrictive filters (max_price too low, specific airlines with no service on route) return an empty items array — which is not charged","Google Flights rate limiting or layout changes may cause scraping failures — not charged if empty"],"whenToPreferThis":"Use this endpoint when you need structured, queryable flight data from Google Flights without managing a browser or scraping infrastructure yourself. It is ideal for AI agents that need to compare flights, filter by stops or price, or present itinerary options to users. Prefer this over raw web scraping when you want clean JSON output and pay only for successful, non-empty results.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T00:46:37.224Z","isFirstParty":false,"canonicalSlug":"google-flights-scraper-api-2db6bb12"}