Google Flights Scraper
Pricing
from $2.00 / 1,000 results
Google Flights Scraper
Scrapes Google Flights fares. Any route and dates, every cabin, full filter set, prices in the currency you choose, and per-leg detail including aircraft and CO2.
Google Flights Scraper
Pricing
from $2.00 / 1,000 results
Scrapes Google Flights fares. Any route and dates, every cabin, full filter set, prices in the currency you choose, and per-leg detail including aircraft and CO2.
You can access the Google Flights Scraper 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.0", "x-build-id": "IZc9hnkChtVfBZ6NB" }, "servers": [ { "url": "https://api.apify.com/v2" } ], "paths": { "/acts/mina_safwat~google-flights-scraper/run-sync-get-dataset-items": { "post": { "operationId": "run-sync-get-dataset-items-mina_safwat-google-flights-scraper", "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/mina_safwat~google-flights-scraper/runs": { "post": { "operationId": "runs-sync-mina_safwat-google-flights-scraper", "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/mina_safwat~google-flights-scraper/run-sync": { "post": { "operationId": "run-sync-mina_safwat-google-flights-scraper", "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": [ "origin", "destination" ], "properties": { "origin": { "title": "Origin airport", "type": "string", "description": "3-letter IATA code of the departure airport, e.g. \"JFK\", \"LHR\", \"CAI\"." }, "destination": { "title": "Destination airport", "type": "string", "description": "3-letter IATA code of the arrival airport, e.g. \"LHR\"." }, "departure_date": { "title": "Departure date", "type": "string", "description": "YYYY-MM-DD, in the future and within the next year. Leave empty to search roughly a month from today." }, "return_date": { "title": "Return date", "type": "string", "description": "YYYY-MM-DD. Leave empty for a one-way search. With a return date, results are outbound itineraries priced for the complete round trip — that is how Google Flights presents them." }, "adults": { "title": "Adults", "minimum": 1, "maximum": 9, "type": "integer", "description": "Passengers aged 12 and over.", "default": 1 }, "children": { "title": "Children", "minimum": 0, "maximum": 8, "type": "integer", "description": "Passengers aged 2 to 11.", "default": 0 }, "infants_in_seat": { "title": "Infants in seat", "minimum": 0, "maximum": 8, "type": "integer", "description": "Under 2, occupying their own seat.", "default": 0 }, "infants_on_lap": { "title": "Infants on lap", "minimum": 0, "maximum": 8, "type": "integer", "description": "Under 2, travelling on an adult’s lap.", "default": 0 }, "seat_class": { "title": "Cabin", "enum": [ "Economy", "Premium economy", "Business", "First" ], "type": "string", "description": "Cabin to price. Higher cabins return fewer results on some routes.", "default": "Economy" }, "currency": { "title": "Currency", "enum": [ "USD", "EUR", "GBP", "AED", "ARS", "AUD", "BRL", "CAD", "CHF", "CLP", "CNY", "COP", "CZK", "DKK", "EGP", "HKD", "HUF", "IDR", "ILS", "INR", "ISK", "JPY", "KRW", "KWD", "MXN", "MYR", "NOK", "NZD", "PHP", "PKR", "PLN", "QAR", "RON", "RSD", "RUB", "SAR", "SEK", "SGD", "THB", "TRY", "TWD", "UAH", "VND", "ZAR" ], "type": "string", "description": "Currency all fares are converted to.", "default": "USD" }, "language": { "title": "Language", "enum": [ "en-US", "en-GB", "ar", "de", "es", "fr", "it", "ja", "ko", "nl", "pl", "pt-BR", "ru", "tr", "zh-CN" ], "type": "string", "description": "Language of airline and airport names in the output.", "default": "en-US" }, "max_results": { "title": "Max results", "minimum": 1, "type": "integer", "description": "Stops after this many itineraries.", "default": 50 }, "max_stops": { "title": "Max stops", "minimum": 0, "maximum": 3, "type": "integer", "description": "0 for non-stop only, 1 for up to one stop, and so on. Leave empty for any." }, "max_price": { "title": "Max price", "minimum": 1, "type": "integer", "description": "Highest fare to return, in the selected currency." }, "airlines": { "title": "Airlines", "type": "array", "description": "Restrict to these carriers by 2-letter IATA code, e.g. \"BA\", \"AF\". Alliance codes ONEWORLD, SKYTEAM, and STAR_ALLIANCE also work. Leave empty for all.", "default": [], "items": { "type": "string" } }, "carry_on_bags": { "title": "Carry-on bags", "minimum": 0, "maximum": 9, "type": "integer", "description": "Only show fares including this many carry-on bags.", "default": 0 }, "checked_bags": { "title": "Checked bags", "minimum": 0, "maximum": 9, "type": "integer", "description": "Only show fares including this many checked bags.", "default": 0 }, "earliest_departure_hour": { "title": "Earliest departure hour", "minimum": 0, "maximum": 23, "type": "integer", "description": "0-23, local time at the origin." }, "latest_departure_hour": { "title": "Latest departure hour", "minimum": 0, "maximum": 23, "type": "integer", "description": "0-23, local time at the origin." }, "earliest_arrival_hour": { "title": "Earliest arrival hour", "minimum": 0, "maximum": 23, "type": "integer", "description": "0-23, local time at the destination." }, "latest_arrival_hour": { "title": "Latest arrival hour", "minimum": 0, "maximum": 23, "type": "integer", "description": "0-23, local time at the destination." }, "max_duration_minutes": { "title": "Max trip duration (minutes)", "minimum": 30, "type": "integer", "description": "Total journey time per leg, including layovers." }, "min_layover_minutes": { "title": "Min layover (minutes)", "minimum": 0, "type": "integer", "description": "Reject connections shorter than this." }, "max_layover_minutes": { "title": "Max layover (minutes)", "minimum": 0, "type": "integer", "description": "Reject connections longer than this." }, "hide_self_transfer": { "title": "Hide self-transfer itineraries", "type": "boolean", "description": "Exclude separate tickets and self-transfers, where you re-check bags and bear the risk of a missed connection yourself.", "default": false }, "exclude_basic_economy": { "title": "Exclude basic economy", "type": "boolean", "description": "Drop the most restrictive fare class.", "default": false }, "less_emissions_only": { "title": "Lower emissions only", "type": "boolean", "description": "Only itineraries Google flags as below-average CO2 for the route.", "default": false }, "proxy_country": { "title": "Proxy countries", "type": "string", "description": "Comma-separated 2-letter codes, rotated across retries. Residential proxies are recommended — Google rate-limits datacentre IPs.", "default": "US,GB,DE,NL,FR" } } }, "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 } } }, "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 } } } } } } } } }}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 Scraper 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: