Google Flights
Pricing
Pay per usage
Go to Apify Store
Google Flights
Find flight fares and schedules by airport name or IATA code, compare destinations and dates, and retrieve airport details.
Google Flights
Pricing
Pay per usage
Find flight fares and schedules by airport name or IATA code, compare destinations and dates, and retrieve airport details.
You can access the Google Flights 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": "2.8", "x-build-id": "WptnRqsOMQV53rQc1" }, "servers": [ { "url": "https://api.apify.com/v2" } ], "paths": { "/acts/canadesk~google-flights/run-sync-get-dataset-items": { "post": { "operationId": "run-sync-get-dataset-items-canadesk-google-flights", "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/canadesk~google-flights/runs": { "post": { "operationId": "runs-sync-canadesk-google-flights", "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/canadesk~google-flights/run-sync": { "post": { "operationId": "run-sync-canadesk-google-flights", "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": [ "departureIATA", "arrivalIATA" ], "properties": { "operation": { "title": "Process", "enum": [ "sa", "gfn", "gfi" ], "type": "string", "description": "", "default": "gfi" }, "departureIATA": { "title": "Departure - Airport", "type": "string", "description": "" }, "arrivalIATA": { "title": "Arrival - Airport", "type": "array", "description": "", "items": { "type": "string" } }, "departureDate": { "title": "Departure - Date", "type": "string", "description": "Departure date (YYYY-MM-DD). Leave empty to search 30 days from today." }, "arrivalDate": { "title": "Return - Date", "type": "string", "description": "Leave empty for One-way trips. Format: YYYY-MM-DD." }, "departureDateRng": { "title": "Departure - Date (Range)", "type": "string", "description": "Format: YYYY-MM-DD." }, "arrivalDateRng": { "title": "Return - Date (Range)", "type": "string", "description": "Leave empty for One-way trips, or fixed return dates. Format: YYYY-MM-DD." }, "adults": { "title": "Passengers - Number of Adults", "minimum": 1, "maximum": 9, "type": "integer", "description": "", "default": 1 }, "children": { "title": "Passengers - Number of Children", "minimum": 0, "maximum": 8, "type": "integer", "description": "Aged 2-11", "default": 0 }, "seatclass": { "title": "Cabin Type", "enum": [ "1", "2", "3", "4" ], "type": "string", "description": "", "default": "1" }, "maxResults": { "title": "Maximum total results", "minimum": 1, "type": "integer", "description": "Maximum real flight or airport results across all destinations and dates.", "default": 10000 }, "maximum": { "title": "Maximum flights per search", "minimum": 1, "maximum": 250, "type": "integer", "description": "Maximum flight options per destination and date pair.", "default": 3 }, "stops": { "title": "Stops", "enum": [ "0", "1", "2", "3" ], "type": "string", "description": "", "default": "0" }, "alliances": { "title": "Alliances", "enum": [ "ALL", "STAR_ALLIANCE", "SKYTEAM", "ONEWORLD" ], "type": "string", "description": "Filters out airlines that are not part of the alliance.", "default": "ALL" }, "airlines": { "title": "Misc. - Airlines", "type": "string", "description": "Only returns results for that specific airline, and overrides alliances. Format: ALL or 2-letters IATA code." }, "maxPrice": { "title": "Maximum price", "minimum": 0, "maximum": 99999, "type": "integer", "description": "Maximum source fare in the selected currency for the requested passengers. Zero means no price limit.", "default": 0 }, "currency": { "title": "Currency", "enum": [ "USD", "EUR", "CAD", "ADP", "AED", "AFA", "AFN", "ALK", "ALL", "AMD", "ANG", "AOA", "AOK", "AON", "AOR", "ARA", "ARP", "ARS", "ARY", "ATS", "AUD", "AWG", "AYM", "AZM", "AZN", "BAD", "BAM", "BBD", "BDT", "BEC", "BEF", "BEL", "BGJ", "BGK", "BGL", "BGN", "BHD", "BIF", "BMD", "BND", "BOB", "BOP", "BOV", "BRB", "BRC", "BRE", "BRL", "BRN", "BRR", "BSD", "BTN", "BUK", "BWP", "BYB", "BYN", "BYR", "BZD", "CDF", "CHC", "CHE", "CHF", "CHW", "CLF", "CLP", "CNX", "CNY", "COP", "COU", "CRC", "CSD", "CSJ", "CSK", "CUC", "CUP", "CVE", "CYP", "CZK", "DDM", "DEM", "DJF", "DKK", "DOP", "DZD", "ECS", "ECV", "EEK", "EGP", "ERN", "ESA", "ESB", "ESP", "ETB", "FIM", "FJD", "FKP", "FRF", "GBP", "GEK", "GEL", "GHC", "GHP", "GHS", "GIP", "GMD", "GNE", "GNF", "GNS", "GQE", "GRD", "GTQ", "GWE", "GWP", "GYD", "HKD", "HNL", "HRD", "HRK", "HTG", "HUF", "IDR", "IEP", "ILP", "ILR", "ILS", "INR", "IQD", "IRR", "ISJ", "ISK", "ITL", "JMD", "JOD", "JPY", "KES", "KGS", "KHR", "KMF", "KPW", "KRW", "KWD", "KYD", "KZT", "LAJ", "LAK", "LBP", "LKR", "LRD", "LSL", "LSM", "LTL", "LTT", "LUC", "LUF", "LUL", "LVL", "LVR", "LYD", "MAD", "MDL", "MGA", "MGF", "MKD", "MLF", "MMK", "MNT", "MOP", "MRO", "MTL", "MTP", "MUR", "MVQ", "MVR", "MWK", "MXN", "MXP", "MXV", "MYR", "MZE", "MZM", "MZN", "NAD", "NGN", "NIC", "NIO", "NLG", "NOK", "NPR", "NZD", "OMR", "PAB", "PEH", "PEI", "PEN", "PES", "PGK", "PHP", "PKR", "PLN", "PLZ", "PTE", "PYG", "QAR", "RHD", "ROK", "ROL", "RON", "RSD", "RUB", "RUR", "RWF", "SAR", "SBD", "SCR", "SDD", "SDG", "SDP", "SEK", "SGD", "SHP", "SIT", "SKK", "SLL", "SOS", "SRD", "SRG", "SSP", "STD", "SUR", "SVC", "SYP", "SZL", "THB", "TJR", "TJS", "TMM", "TMT", "TND", "TOP", "TPE", "TRL", "TRY", "TTD", "TWD", "TZS", "UAH", "UAK", "UGS", "UGW", "UGX", "USN", "USS", "UYI", "UYN", "UYP", "UYU", "UZS", "VEB", "VEF", "VNC", "VND", "VUV", "WST", "XAF", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "XCD", "XDR", "XEU", "XFO", "XFU", "XOF", "XPD", "XPF", "XPT", "XRE", "XSU", "XTS", "XUA", "XXX", "YDD", "YER", "YUD", "YUM", "YUN", "ZAL", "ZAR", "ZMK", "ZMW", "ZRN", "ZRZ", "ZWC", "ZWD", "ZWL", "ZWN", "ZWR" ], "type": "string", "description": "", "default": "USD" }, "locale": { "title": "Language", "enum": [ "en-US", "de-AT", "de-CH", "de-DE", "de-LI", "en-AU", "en-CA", "en-GB", "en-IN", "en-NZ", "en-ZA", "es-AR", "es-ES", "es-MX", "es-US", "fr-CA", "fr-CH", "fr-FR", "it-CH", "it-IT", "pt-BR", "pt-PT", "zh-CN", "zh-HK", "zh-TW" ], "type": "string", "description": "May influence results.", "default": "en-US" }, "includeOtherFlights": { "title": "Include other flights", "type": "boolean", "description": "Include additional flight options after Google's best flights.", "default": false }, "retries": { "title": "Maximum retries", "minimum": 1, "maximum": 3, "type": "integer", "description": "", "default": 1 }, "delay": { "title": "Delay", "minimum": 1, "maximum": 30, "type": "integer", "description": "Seconds between source requests.", "default": 3 }, "maxSearches": { "title": "Maximum searches", "minimum": 1, "maximum": 1000, "type": "integer", "description": "Maximum destination and date combinations to search.", "default": 1000 }, "proxy": { "title": "Proxy configuration", "type": "object", "description": "Select proxies to be used by your crawler." } } }, "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 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: