{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Flights",
    "description": "Find the cheapest deals with Google Flight. It's fast and costs little!",
    "version": "1.4",
    "x-build-id": "6ClJRiPjmrA173YXj"
  },
  "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": [
          "operation",
          "departureIATA",
          "arrivalIATA",
          "departureDate",
          "currency"
        ],
        "properties": {
          "operation": {
            "title": "Process",
            "enum": [
              "sa",
              "gfn",
              "gfi"
            ],
            "type": "string",
            "description": "",
            "default": "gfi"
          },
          "departureIATA": {
            "title": "Departure - Airport",
            "type": "string",
            "description": ""
          },
          "departureDate": {
            "title": "Departure - Date",
            "type": "string",
            "description": "Format: YYYY-MM-DD.",
            "default": "2025-06-18"
          },
          "departureDateRng": {
            "title": "Departure - Date (Range)",
            "type": "string",
            "description": "Format: YYYY-MM-DD."
          },
          "arrivalIATA": {
            "title": "Arrival - Airport",
            "type": "array",
            "description": "",
            "items": {
              "type": "string"
            }
          },
          "arrivalDate": {
            "title": "Return - Date",
            "type": "string",
            "description": "Leave empty for One-way trips. 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": "Misc. - Cabin Type",
            "enum": [
              "1",
              "2",
              "3",
              "4"
            ],
            "type": "string",
            "description": "",
            "default": "1"
          },
          "stops": {
            "title": "Misc. - Stops",
            "enum": [
              "0",
              "1",
              "2",
              "3"
            ],
            "type": "string",
            "description": "",
            "default": "0"
          },
          "alliances": {
            "title": "Misc. - 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": "Misc. - Maximum price",
            "minimum": 0,
            "maximum": 99999,
            "type": "integer",
            "description": "Per ticket. Leave empty otherwise.",
            "default": 0
          },
          "currency": {
            "title": "Misc. - 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": "Misc. - 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"
          },
          "maximum": {
            "title": "Settings - Maximum requests",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "1 request = 1 flight",
            "default": 3
          },
          "retries": {
            "title": "Settings - Maximum retries",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "",
            "default": 1
          },
          "delay": {
            "title": "Settings - Delay",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Waiting time between requests.",
            "default": 3
          },
          "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}