Google Flights avatar

Google Flights

Try for free

3 days trial then $12.00/month - No credit card required now

Go to Store
Google Flights

Google Flights

canadesk/google-flights
Try for free

3 days trial then $12.00/month - No credit card required now

Find the cheapest deals with Google Flight. It's fast and costs little!

You can access the Google Flights programmatically from your own applications by using the Apify API. You can choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1{
2  "openapi": "3.0.1",
3  "info": {
4    "version": "1.4",
5    "x-build-id": "AG68SvTDrhdvsUsWZ"
6  },
7  "servers": [
8    {
9      "url": "https://api.apify.com/v2"
10    }
11  ],
12  "paths": {
13    "/acts/canadesk~google-flights/run-sync-get-dataset-items": {
14      "post": {
15        "operationId": "run-sync-get-dataset-items-canadesk-google-flights",
16        "x-openai-isConsequential": false,
17        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
18        "tags": [
19          "Run Actor"
20        ],
21        "requestBody": {
22          "required": true,
23          "content": {
24            "application/json": {
25              "schema": {
26                "$ref": "#/components/schemas/inputSchema"
27              }
28            }
29          }
30        },
31        "parameters": [
32          {
33            "name": "token",
34            "in": "query",
35            "required": true,
36            "schema": {
37              "type": "string"
38            },
39            "description": "Enter your Apify token here"
40          }
41        ],
42        "responses": {
43          "200": {
44            "description": "OK"
45          }
46        }
47      }
48    },
49    "/acts/canadesk~google-flights/runs": {
50      "post": {
51        "operationId": "runs-sync-canadesk-google-flights",
52        "x-openai-isConsequential": false,
53        "summary": "Executes an Actor and returns information about the initiated run in response.",
54        "tags": [
55          "Run Actor"
56        ],
57        "requestBody": {
58          "required": true,
59          "content": {
60            "application/json": {
61              "schema": {
62                "$ref": "#/components/schemas/inputSchema"
63              }
64            }
65          }
66        },
67        "parameters": [
68          {
69            "name": "token",
70            "in": "query",
71            "required": true,
72            "schema": {
73              "type": "string"
74            },
75            "description": "Enter your Apify token here"
76          }
77        ],
78        "responses": {
79          "200": {
80            "description": "OK",
81            "content": {
82              "application/json": {
83                "schema": {
84                  "$ref": "#/components/schemas/runsResponseSchema"
85                }
86              }
87            }
88          }
89        }
90      }
91    },
92    "/acts/canadesk~google-flights/run-sync": {
93      "post": {
94        "operationId": "run-sync-canadesk-google-flights",
95        "x-openai-isConsequential": false,
96        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
97        "tags": [
98          "Run Actor"
99        ],
100        "requestBody": {
101          "required": true,
102          "content": {
103            "application/json": {
104              "schema": {
105                "$ref": "#/components/schemas/inputSchema"
106              }
107            }
108          }
109        },
110        "parameters": [
111          {
112            "name": "token",
113            "in": "query",
114            "required": true,
115            "schema": {
116              "type": "string"
117            },
118            "description": "Enter your Apify token here"
119          }
120        ],
121        "responses": {
122          "200": {
123            "description": "OK"
124          }
125        }
126      }
127    }
128  },
129  "components": {
130    "schemas": {
131      "inputSchema": {
132        "type": "object",
133        "required": [
134          "operation",
135          "departureIATA",
136          "arrivalIATA",
137          "departureDate",
138          "currency"
139        ],
140        "properties": {
141          "operation": {
142            "title": "Process",
143            "enum": [
144              "sa",
145              "gfn",
146              "gfi"
147            ],
148            "type": "string",
149            "description": "",
150            "default": "gfi"
151          },
152          "departureIATA": {
153            "title": "Departure - Airport",
154            "type": "string",
155            "description": ""
156          },
157          "departureDate": {
158            "title": "Departure - Date",
159            "type": "string",
160            "description": "Format: YYYY-MM-DD.",
161            "default": "2025-06-18"
162          },
163          "departureDateRng": {
164            "title": "Departure - Date (Range)",
165            "type": "string",
166            "description": "Format: YYYY-MM-DD."
167          },
168          "arrivalIATA": {
169            "title": "Arrival - Airport",
170            "type": "array",
171            "description": "",
172            "items": {
173              "type": "string"
174            }
175          },
176          "arrivalDate": {
177            "title": "Return - Date",
178            "type": "string",
179            "description": "Leave empty for One-way trips. Format: YYYY-MM-DD."
180          },
181          "arrivalDateRng": {
182            "title": "Return - Date (Range)",
183            "type": "string",
184            "description": "Leave empty for One-way trips, or fixed return dates. Format: YYYY-MM-DD."
185          },
186          "adults": {
187            "title": "Passengers - Number of Adults",
188            "minimum": 1,
189            "maximum": 9,
190            "type": "integer",
191            "description": "",
192            "default": 1
193          },
194          "children": {
195            "title": "Passengers - Number of Children",
196            "minimum": 0,
197            "maximum": 8,
198            "type": "integer",
199            "description": "Aged 2-11",
200            "default": 0
201          },
202          "seatclass": {
203            "title": "Misc. - Cabin Type",
204            "enum": [
205              "1",
206              "2",
207              "3",
208              "4"
209            ],
210            "type": "string",
211            "description": "",
212            "default": "1"
213          },
214          "stops": {
215            "title": "Misc. - Stops",
216            "enum": [
217              "0",
218              "1",
219              "2",
220              "3"
221            ],
222            "type": "string",
223            "description": "",
224            "default": "0"
225          },
226          "alliances": {
227            "title": "Misc. - Alliances",
228            "enum": [
229              "ALL",
230              "STAR_ALLIANCE",
231              "SKYTEAM",
232              "ONEWORLD"
233            ],
234            "type": "string",
235            "description": "Filters out airlines that are not part of the alliance.",
236            "default": "ALL"
237          },
238          "airlines": {
239            "title": "Misc. - Airlines",
240            "type": "string",
241            "description": "Only returns results for that specific airline, and overrides alliances. Format: ALL or 2-letters IATA code."
242          },
243          "maxPrice": {
244            "title": "Misc. - Maximum price",
245            "minimum": 0,
246            "maximum": 99999,
247            "type": "integer",
248            "description": "Per ticket. Leave empty otherwise.",
249            "default": 0
250          },
251          "currency": {
252            "title": "Misc. - Currency",
253            "enum": [
254              "USD",
255              "EUR",
256              "CAD",
257              "ADP",
258              "AED",
259              "AFA",
260              "AFN",
261              "ALK",
262              "ALL",
263              "AMD",
264              "ANG",
265              "AOA",
266              "AOK",
267              "AON",
268              "AOR",
269              "ARA",
270              "ARP",
271              "ARS",
272              "ARY",
273              "ATS",
274              "AUD",
275              "AWG",
276              "AYM",
277              "AZM",
278              "AZN",
279              "BAD",
280              "BAM",
281              "BBD",
282              "BDT",
283              "BEC",
284              "BEF",
285              "BEL",
286              "BGJ",
287              "BGK",
288              "BGL",
289              "BGN",
290              "BHD",
291              "BIF",
292              "BMD",
293              "BND",
294              "BOB",
295              "BOP",
296              "BOV",
297              "BRB",
298              "BRC",
299              "BRE",
300              "BRL",
301              "BRN",
302              "BRR",
303              "BSD",
304              "BTN",
305              "BUK",
306              "BWP",
307              "BYB",
308              "BYN",
309              "BYR",
310              "BZD",
311              "CDF",
312              "CHC",
313              "CHE",
314              "CHF",
315              "CHW",
316              "CLF",
317              "CLP",
318              "CNX",
319              "CNY",
320              "COP",
321              "COU",
322              "CRC",
323              "CSD",
324              "CSJ",
325              "CSK",
326              "CUC",
327              "CUP",
328              "CVE",
329              "CYP",
330              "CZK",
331              "DDM",
332              "DEM",
333              "DJF",
334              "DKK",
335              "DOP",
336              "DZD",
337              "ECS",
338              "ECV",
339              "EEK",
340              "EGP",
341              "ERN",
342              "ESA",
343              "ESB",
344              "ESP",
345              "ETB",
346              "FIM",
347              "FJD",
348              "FKP",
349              "FRF",
350              "GBP",
351              "GEK",
352              "GEL",
353              "GHC",
354              "GHP",
355              "GHS",
356              "GIP",
357              "GMD",
358              "GNE",
359              "GNF",
360              "GNS",
361              "GQE",
362              "GRD",
363              "GTQ",
364              "GWE",
365              "GWP",
366              "GYD",
367              "HKD",
368              "HNL",
369              "HRD",
370              "HRK",
371              "HTG",
372              "HUF",
373              "IDR",
374              "IEP",
375              "ILP",
376              "ILR",
377              "ILS",
378              "INR",
379              "IQD",
380              "IRR",
381              "ISJ",
382              "ISK",
383              "ITL",
384              "JMD",
385              "JOD",
386              "JPY",
387              "KES",
388              "KGS",
389              "KHR",
390              "KMF",
391              "KPW",
392              "KRW",
393              "KWD",
394              "KYD",
395              "KZT",
396              "LAJ",
397              "LAK",
398              "LBP",
399              "LKR",
400              "LRD",
401              "LSL",
402              "LSM",
403              "LTL",
404              "LTT",
405              "LUC",
406              "LUF",
407              "LUL",
408              "LVL",
409              "LVR",
410              "LYD",
411              "MAD",
412              "MDL",
413              "MGA",
414              "MGF",
415              "MKD",
416              "MLF",
417              "MMK",
418              "MNT",
419              "MOP",
420              "MRO",
421              "MTL",
422              "MTP",
423              "MUR",
424              "MVQ",
425              "MVR",
426              "MWK",
427              "MXN",
428              "MXP",
429              "MXV",
430              "MYR",
431              "MZE",
432              "MZM",
433              "MZN",
434              "NAD",
435              "NGN",
436              "NIC",
437              "NIO",
438              "NLG",
439              "NOK",
440              "NPR",
441              "NZD",
442              "OMR",
443              "PAB",
444              "PEH",
445              "PEI",
446              "PEN",
447              "PES",
448              "PGK",
449              "PHP",
450              "PKR",
451              "PLN",
452              "PLZ",
453              "PTE",
454              "PYG",
455              "QAR",
456              "RHD",
457              "ROK",
458              "ROL",
459              "RON",
460              "RSD",
461              "RUB",
462              "RUR",
463              "RWF",
464              "SAR",
465              "SBD",
466              "SCR",
467              "SDD",
468              "SDG",
469              "SDP",
470              "SEK",
471              "SGD",
472              "SHP",
473              "SIT",
474              "SKK",
475              "SLL",
476              "SOS",
477              "SRD",
478              "SRG",
479              "SSP",
480              "STD",
481              "SUR",
482              "SVC",
483              "SYP",
484              "SZL",
485              "THB",
486              "TJR",
487              "TJS",
488              "TMM",
489              "TMT",
490              "TND",
491              "TOP",
492              "TPE",
493              "TRL",
494              "TRY",
495              "TTD",
496              "TWD",
497              "TZS",
498              "UAH",
499              "UAK",
500              "UGS",
501              "UGW",
502              "UGX",
503              "USN",
504              "USS",
505              "UYI",
506              "UYN",
507              "UYP",
508              "UYU",
509              "UZS",
510              "VEB",
511              "VEF",
512              "VNC",
513              "VND",
514              "VUV",
515              "WST",
516              "XAF",
517              "XAG",
518              "XAU",
519              "XBA",
520              "XBB",
521              "XBC",
522              "XBD",
523              "XCD",
524              "XDR",
525              "XEU",
526              "XFO",
527              "XFU",
528              "XOF",
529              "XPD",
530              "XPF",
531              "XPT",
532              "XRE",
533              "XSU",
534              "XTS",
535              "XUA",
536              "XXX",
537              "YDD",
538              "YER",
539              "YUD",
540              "YUM",
541              "YUN",
542              "ZAL",
543              "ZAR",
544              "ZMK",
545              "ZMW",
546              "ZRN",
547              "ZRZ",
548              "ZWC",
549              "ZWD",
550              "ZWL",
551              "ZWN",
552              "ZWR"
553            ],
554            "type": "string",
555            "description": "",
556            "default": "USD"
557          },
558          "locale": {
559            "title": "Misc. - Language",
560            "enum": [
561              "en-US",
562              "de-AT",
563              "de-CH",
564              "de-DE",
565              "de-LI",
566              "en-AU",
567              "en-CA",
568              "en-GB",
569              "en-IN",
570              "en-NZ",
571              "en-ZA",
572              "es-AR",
573              "es-ES",
574              "es-MX",
575              "es-US",
576              "fr-CA",
577              "fr-CH",
578              "fr-FR",
579              "it-CH",
580              "it-IT",
581              "pt-BR",
582              "pt-PT",
583              "zh-CN",
584              "zh-HK",
585              "zh-TW"
586            ],
587            "type": "string",
588            "description": "May influence results.",
589            "default": "en-US"
590          },
591          "maximum": {
592            "title": "Settings - Maximum requests",
593            "minimum": 1,
594            "maximum": 10,
595            "type": "integer",
596            "description": "1 request = 1 flight",
597            "default": 3
598          },
599          "retries": {
600            "title": "Settings - Maximum retries",
601            "minimum": 1,
602            "maximum": 3,
603            "type": "integer",
604            "description": "",
605            "default": 1
606          },
607          "delay": {
608            "title": "Settings - Delay",
609            "minimum": 1,
610            "maximum": 30,
611            "type": "integer",
612            "description": "Waiting time between requests.",
613            "default": 3
614          },
615          "proxy": {
616            "title": "Proxy configuration",
617            "type": "object",
618            "description": "Select proxies to be used by your crawler."
619          }
620        }
621      },
622      "runsResponseSchema": {
623        "type": "object",
624        "properties": {
625          "data": {
626            "type": "object",
627            "properties": {
628              "id": {
629                "type": "string"
630              },
631              "actId": {
632                "type": "string"
633              },
634              "userId": {
635                "type": "string"
636              },
637              "startedAt": {
638                "type": "string",
639                "format": "date-time",
640                "example": "2025-01-08T00:00:00.000Z"
641              },
642              "finishedAt": {
643                "type": "string",
644                "format": "date-time",
645                "example": "2025-01-08T00:00:00.000Z"
646              },
647              "status": {
648                "type": "string",
649                "example": "READY"
650              },
651              "meta": {
652                "type": "object",
653                "properties": {
654                  "origin": {
655                    "type": "string",
656                    "example": "API"
657                  },
658                  "userAgent": {
659                    "type": "string"
660                  }
661                }
662              },
663              "stats": {
664                "type": "object",
665                "properties": {
666                  "inputBodyLen": {
667                    "type": "integer",
668                    "example": 2000
669                  },
670                  "rebootCount": {
671                    "type": "integer",
672                    "example": 0
673                  },
674                  "restartCount": {
675                    "type": "integer",
676                    "example": 0
677                  },
678                  "resurrectCount": {
679                    "type": "integer",
680                    "example": 0
681                  },
682                  "computeUnits": {
683                    "type": "integer",
684                    "example": 0
685                  }
686                }
687              },
688              "options": {
689                "type": "object",
690                "properties": {
691                  "build": {
692                    "type": "string",
693                    "example": "latest"
694                  },
695                  "timeoutSecs": {
696                    "type": "integer",
697                    "example": 300
698                  },
699                  "memoryMbytes": {
700                    "type": "integer",
701                    "example": 1024
702                  },
703                  "diskMbytes": {
704                    "type": "integer",
705                    "example": 2048
706                  }
707                }
708              },
709              "buildId": {
710                "type": "string"
711              },
712              "defaultKeyValueStoreId": {
713                "type": "string"
714              },
715              "defaultDatasetId": {
716                "type": "string"
717              },
718              "defaultRequestQueueId": {
719                "type": "string"
720              },
721              "buildNumber": {
722                "type": "string",
723                "example": "1.0.0"
724              },
725              "containerUrl": {
726                "type": "string"
727              },
728              "usage": {
729                "type": "object",
730                "properties": {
731                  "ACTOR_COMPUTE_UNITS": {
732                    "type": "integer",
733                    "example": 0
734                  },
735                  "DATASET_READS": {
736                    "type": "integer",
737                    "example": 0
738                  },
739                  "DATASET_WRITES": {
740                    "type": "integer",
741                    "example": 0
742                  },
743                  "KEY_VALUE_STORE_READS": {
744                    "type": "integer",
745                    "example": 0
746                  },
747                  "KEY_VALUE_STORE_WRITES": {
748                    "type": "integer",
749                    "example": 1
750                  },
751                  "KEY_VALUE_STORE_LISTS": {
752                    "type": "integer",
753                    "example": 0
754                  },
755                  "REQUEST_QUEUE_READS": {
756                    "type": "integer",
757                    "example": 0
758                  },
759                  "REQUEST_QUEUE_WRITES": {
760                    "type": "integer",
761                    "example": 0
762                  },
763                  "DATA_TRANSFER_INTERNAL_GBYTES": {
764                    "type": "integer",
765                    "example": 0
766                  },
767                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
768                    "type": "integer",
769                    "example": 0
770                  },
771                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
772                    "type": "integer",
773                    "example": 0
774                  },
775                  "PROXY_SERPS": {
776                    "type": "integer",
777                    "example": 0
778                  }
779                }
780              },
781              "usageTotalUsd": {
782                "type": "number",
783                "example": 0.00005
784              },
785              "usageUsd": {
786                "type": "object",
787                "properties": {
788                  "ACTOR_COMPUTE_UNITS": {
789                    "type": "integer",
790                    "example": 0
791                  },
792                  "DATASET_READS": {
793                    "type": "integer",
794                    "example": 0
795                  },
796                  "DATASET_WRITES": {
797                    "type": "integer",
798                    "example": 0
799                  },
800                  "KEY_VALUE_STORE_READS": {
801                    "type": "integer",
802                    "example": 0
803                  },
804                  "KEY_VALUE_STORE_WRITES": {
805                    "type": "number",
806                    "example": 0.00005
807                  },
808                  "KEY_VALUE_STORE_LISTS": {
809                    "type": "integer",
810                    "example": 0
811                  },
812                  "REQUEST_QUEUE_READS": {
813                    "type": "integer",
814                    "example": 0
815                  },
816                  "REQUEST_QUEUE_WRITES": {
817                    "type": "integer",
818                    "example": 0
819                  },
820                  "DATA_TRANSFER_INTERNAL_GBYTES": {
821                    "type": "integer",
822                    "example": 0
823                  },
824                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
825                    "type": "integer",
826                    "example": 0
827                  },
828                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
829                    "type": "integer",
830                    "example": 0
831                  },
832                  "PROXY_SERPS": {
833                    "type": "integer",
834                    "example": 0
835                  }
836                }
837              }
838            }
839          }
840        }
841      }
842    }
843  }
844}

Google Flights OpenAPI definition

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:

Developer
Maintained by Community

Actor Metrics

  • 16 monthly users

  • 3 stars

  • 94% runs succeeded

  • Created in Jan 2024

  • Modified 2 months ago

Categories