Google Flights Price Search
Pricing
from $25.00 / 1,000 flight searches
Google Flights Price Search
Search Google Flights for a route and dates and get prices, airlines, times, stops and durations.
Google Flights Price Search
Pricing
from $25.00 / 1,000 flight searches
Search Google Flights for a route and dates and get prices, airlines, times, stops and durations.
You can access the Google Flights Price Search programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in API & Integrations in Apify Console.
{ "openapi": "3.0.1", "info": { "version": "0.2", "x-build-id": "NpYAXCafEz4S16qWj" }, "servers": [ { "url": "https://api.apify.com/v2" } ], "paths": { "/acts/monarchsenpai~google-flights-price-search/run-sync-get-dataset-items": { "post": { "operationId": "run-sync-get-dataset-items-monarchsenpai-google-flights-price-search", "x-openai-isConsequential": false, "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.", "tags": [ "Run Actor" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/inputSchema" } } } }, "parameters": [ { "name": "token", "in": "query", "required": true, "schema": { "type": "string" }, "description": "Enter your Apify token here" } ], "responses": { "200": { "description": "OK" } } } }, "/acts/monarchsenpai~google-flights-price-search/runs": { "post": { "operationId": "runs-sync-monarchsenpai-google-flights-price-search", "x-openai-isConsequential": false, "summary": "Executes an Actor and returns information about the initiated run in response.", "tags": [ "Run Actor" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/inputSchema" } } } }, "parameters": [ { "name": "token", "in": "query", "required": true, "schema": { "type": "string" }, "description": "Enter your Apify token here" } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/runsResponseSchema" } } } } } } }, "/acts/monarchsenpai~google-flights-price-search/run-sync": { "post": { "operationId": "run-sync-monarchsenpai-google-flights-price-search", "x-openai-isConsequential": false, "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.", "tags": [ "Run Actor" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/inputSchema" } } } }, "parameters": [ { "name": "token", "in": "query", "required": true, "schema": { "type": "string" }, "description": "Enter your Apify token here" } ], "responses": { "200": { "description": "OK" } } } } }, "components": { "schemas": { "inputSchema": { "type": "object", "required": [ "departureAirports", "arrivalAirports", "outboundDate" ], "properties": { "departureAirports": { "title": "From", "type": "string", "description": "Airport code, e.g. FRA. For several airports separate with commas: FRA,MUC,BER. Google city IDs such as /m/0156q (all Berlin airports) also work." }, "arrivalAirports": { "title": "To", "type": "string", "description": "Airport code, e.g. COK. Several airports: COK,TRV." }, "outboundDate": { "title": "Departure date", "type": "string", "description": "Day you fly out (YYYY-MM-DD)." }, "returnDate": { "title": "Return date (optional)", "type": "string", "description": "Day you fly back. Leave empty for a one-way trip." }, "outboundDateTo": { "title": "Latest departure date (optional)", "type": "string", "description": "Flexible dates: also search every departure day after \"Departure date\" up to this day. Example: Departure date Aug 1 + Latest departure date Aug 8 searches Aug 1–8. Each date combination is one search." }, "returnDateTo": { "title": "Latest return date (optional)", "type": "string", "description": "Also search every return day after \"Return date\" up to this day. Example: Return date Sep 14 + Latest return date Sep 16 searches Sep 14–16." }, "adults": { "title": "Adults", "minimum": 1, "maximum": 9, "type": "integer", "description": "Number of adult passengers.", "default": 1 }, "children": { "title": "Children (optional)", "minimum": 0, "maximum": 8, "type": "integer", "description": "Children aged 2–11.", "default": 0 }, "infantsInSeat": { "title": "Infants in own seat (optional)", "minimum": 0, "maximum": 8, "type": "integer", "description": "Infants under 2 with their own seat.", "default": 0 }, "infantsOnLap": { "title": "Infants on lap (optional)", "minimum": 0, "maximum": 8, "type": "integer", "description": "Infants under 2 sitting on an adult's lap.", "default": 0 }, "travelClass": { "title": "Cabin class", "enum": [ "economy", "premium_economy", "business", "first" ], "type": "string", "description": "Cabin class to search.", "default": "economy" }, "maxStops": { "title": "Stops", "enum": [ "any", "nonstop", "max_1", "max_2" ], "type": "string", "description": "Maximum number of stops.", "default": "any" }, "maxPrice": { "title": "Max price (optional)", "minimum": 1, "type": "integer", "description": "Hide flights above this price, in the chosen currency." }, "maxDurationHours": { "title": "Max travel time in hours (optional)", "minimum": 1, "type": "integer", "description": "Hide itineraries longer than this, layovers included." }, "includeAirlines": { "title": "Only these airlines (optional)", "type": "string", "description": "2-letter airline codes separated by commas, e.g. QR,EY. Alliances: STAR_ALLIANCE, SKYTEAM, ONEWORLD." }, "excludeAirlines": { "title": "Exclude airlines (optional)", "type": "string", "description": "2-letter airline codes to leave out, e.g. AI. Ignored when \"Only these airlines\" is filled." }, "carryOnBags": { "title": "Carry-on bags", "minimum": 0, "type": "integer", "description": "Prices will include fees for this many carry-on bags.", "default": 0 }, "sortBy": { "title": "Sort by", "enum": [ "price", "top", "duration", "departure_time", "arrival_time", "emissions" ], "type": "string", "description": "How Google orders the results.", "default": "price" }, "showMoreFlights": { "title": "Include all flights", "type": "boolean", "description": "Same as clicking \"View more flights\" on Google. Recommended for finding the cheapest fare.", "default": true }, "deepSearch": { "title": "Deep search", "type": "boolean", "description": "Slower, but results match the Google Flights website exactly.", "default": false }, "currency": { "title": "Currency", "type": "string", "description": "3-letter code, e.g. EUR, USD, INR.", "default": "USD" }, "country": { "title": "Country", "type": "string", "description": "2-letter country code Google prices from, e.g. us, de, in.", "default": "us" }, "language": { "title": "Language", "type": "string", "description": "Language of airport and airline names, e.g. en, de.", "default": "en" }, "maxResults": { "title": "Max results per search", "minimum": 1, "maximum": 500, "type": "integer", "description": "How many flights to save for each date combination, cheapest first.", "default": 100 }, "fetchReturnFlights": { "title": "Fetch return flights", "type": "boolean", "description": "Round trips list outbound flights first. Turn on to also get the return-flight options for the cheapest outbound flights. 1 extra search per outbound flight.", "default": false }, "returnFlightsForTop": { "title": "…for the cheapest N outbound flights", "minimum": 1, "maximum": 20, "type": "integer", "description": "How many outbound flights get return options.", "default": 3 }, "fetchBookingOptions": { "title": "Fetch booking options", "type": "boolean", "description": "Where to buy each ticket and the final price. For round trips, \"Fetch return flights\" must be on too. 1 extra search per itinerary.", "default": false }, "bookingOptionsForTop": { "title": "…for the cheapest N itineraries", "minimum": 1, "maximum": 20, "type": "integer", "description": "How many itineraries get booking options.", "default": 3 }, "multiCityJson": { "title": "Multi-city trip (optional)", "type": "string", "description": "Only for trips with more than two legs. When filled, From / To / dates above are ignored. Example: [{\"departure_id\":\"FRA\",\"arrival_id\":\"COK\",\"date\":\"2027-08-01\"},{\"departure_id\":\"TRV\",\"arrival_id\":\"FRA\",\"date\":\"2027-09-15\"}]" }, "apiKey": { "title": "Your SerpApi API key (optional)", "type": "string", "description": "Leave empty to use this Actor's built-in key (charged per search, see Pricing). Or enter your own key from https://serpapi.com/manage-api-key — searches then use your SerpApi plan and this Actor does not charge per search." } } }, "runsResponseSchema": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "actId": { "type": "string" }, "userId": { "type": "string" }, "startedAt": { "type": "string", "format": "date-time", "example": "2025-01-08T00:00:00.000Z" }, "finishedAt": { "type": "string", "format": "date-time", "example": "2025-01-08T00:00:00.000Z" }, "status": { "type": "string", "example": "READY" }, "meta": { "type": "object", "properties": { "origin": { "type": "string", "example": "API" }, "userAgent": { "type": "string" } } }, "stats": { "type": "object", "properties": { "inputBodyLen": { "type": "integer", "example": 2000 }, "rebootCount": { "type": "integer", "example": 0 }, "restartCount": { "type": "integer", "example": 0 }, "resurrectCount": { "type": "integer", "example": 0 }, "computeUnits": { "type": "integer", "example": 0 } } }, "options": { "type": "object", "properties": { "build": { "type": "string", "example": "latest" }, "timeoutSecs": { "type": "integer", "example": 300 }, "memoryMbytes": { "type": "integer", "example": 1024 }, "diskMbytes": { "type": "integer", "example": 2048 } } }, "buildId": { "type": "string" }, "defaultKeyValueStoreId": { "type": "string" }, "defaultDatasetId": { "type": "string" }, "defaultRequestQueueId": { "type": "string" }, "buildNumber": { "type": "string", "example": "1.0.0" }, "containerUrl": { "type": "string" }, "usage": { "type": "object", "properties": { "ACTOR_COMPUTE_UNITS": { "type": "integer", "example": 0 }, "DATASET_READS": { "type": "integer", "example": 0 }, "DATASET_WRITES": { "type": "integer", "example": 0 }, "KEY_VALUE_STORE_READS": { "type": "integer", "example": 0 }, "KEY_VALUE_STORE_WRITES": { "type": "integer", "example": 1 }, "KEY_VALUE_STORE_LISTS": { "type": "integer", "example": 0 }, "REQUEST_QUEUE_READS": { "type": "integer", "example": 0 }, "REQUEST_QUEUE_WRITES": { "type": "integer", "example": 0 }, "DATA_TRANSFER_INTERNAL_GBYTES": { "type": "integer", "example": 0 }, "DATA_TRANSFER_EXTERNAL_GBYTES": { "type": "integer", "example": 0 }, "PROXY_RESIDENTIAL_TRANSFER_GBYTES": { "type": "integer", "example": 0 }, "PROXY_SERPS": { "type": "integer", "example": 0 }, "PROXY_UNBLOCKER_UNITS": { "type": "integer", "example": 0 } } }, "usageTotalUsd": { "type": "number", "example": 0.00005 }, "usageUsd": { "type": "object", "properties": { "ACTOR_COMPUTE_UNITS": { "type": "integer", "example": 0 }, "DATASET_READS": { "type": "integer", "example": 0 }, "DATASET_WRITES": { "type": "integer", "example": 0 }, "KEY_VALUE_STORE_READS": { "type": "integer", "example": 0 }, "KEY_VALUE_STORE_WRITES": { "type": "number", "example": 0.00005 }, "KEY_VALUE_STORE_LISTS": { "type": "integer", "example": 0 }, "REQUEST_QUEUE_READS": { "type": "integer", "example": 0 }, "REQUEST_QUEUE_WRITES": { "type": "integer", "example": 0 }, "DATA_TRANSFER_INTERNAL_GBYTES": { "type": "integer", "example": 0 }, "DATA_TRANSFER_EXTERNAL_GBYTES": { "type": "integer", "example": 0 }, "PROXY_RESIDENTIAL_TRANSFER_GBYTES": { "type": "integer", "example": 0 }, "PROXY_SERPS": { "type": "integer", "example": 0 }, "PROXY_UNBLOCKER_UNITS": { "type": "integer", "example": 0 } } } } } } } } }}OpenAPI is a standard for designing and describing RESTful APIs, allowing developers to define API structure, endpoints, and data formats in a machine-readable way. It simplifies API development, integration, and documentation.
OpenAPI is effective when used with AI agents and GPTs by standardizing how these systems interact with various APIs, for reliable integrations and efficient communication.
By defining machine-readable API specifications, OpenAPI allows AI models like GPTs to understand and use varied data sources, improving accuracy. This accelerates development, reduces errors, and provides context-aware responses, making OpenAPI a core component for AI applications.
You can download the OpenAPI definitions for Google Flights Price Search from the options below:
If you’d like to learn more about how OpenAPI powers GPTs, read our blog post.
You can also check out our other API clients: