{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Flights Scraper: Fares, Price Calendar & Price Drops",
    "description": "Google Flights fares, flights, fares by date, cheapest destinations and booking sellers for any route. Keeps each fare's history and can return only fares that fell. One-way, round trip, multi-city. From $0.80 per 1,000 flights. No login.",
    "version": "0.1",
    "x-build-id": "chlBg5gzepulQSqxe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/locaihost~google-flights/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-locaihost-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/locaihost~google-flights/runs": {
      "post": {
        "operationId": "runs-sync-locaihost-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/locaihost~google-flights/run-sync": {
      "post": {
        "operationId": "run-sync-locaihost-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",
        "properties": {
          "origin": {
            "title": "From",
            "type": "string",
            "description": "Airport code (SIN), several codes (JFK,EWR), or a city name (New York)."
          },
          "destination": {
            "title": "To",
            "type": "string",
            "description": "Airport code or city name. Write \"anywhere\" to get the cheapest destinations from the origin."
          },
          "departureDate": {
            "title": "Departure date",
            "type": "string",
            "description": "YYYY-MM-DD, or a relative date such as \"+30 days\", \"+2 weeks\" or \"tomorrow\". Empty means 30 days from today."
          },
          "returnDate": {
            "title": "Return date (round trip)",
            "type": "string",
            "description": "Leave empty for a one-way trip. YYYY-MM-DD or a relative date such as \"+37 days\"."
          },
          "flightUrl": {
            "title": "Or paste a Google Flights link",
            "type": "string",
            "description": "Optional. Paste the address of a Google Flights search (it contains \"tfs=\"). Its route, dates, cabin and passengers replace the four fields above; filters and other options below still apply."
          },
          "maxResults": {
            "title": "Flights per list",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Most flights returned per route and direction, 1 to 500.",
            "default": 100
          },
          "onlyPriceDrops": {
            "title": "Only fares that fell since the last run",
            "type": "boolean",
            "description": "Every run remembers each fare. With this on, a run returns (and charges) only flights, dates and destinations whose fare is lower than last time. Good for a daily schedule.",
            "default": false
          },
          "minDropPercent": {
            "title": "Smallest drop to report (%)",
            "minimum": 0,
            "maximum": 99,
            "type": "integer",
            "description": "With the option above: ignore drops smaller than this.",
            "default": 0
          },
          "routes": {
            "title": "Several routes in one run",
            "type": "array",
            "description": "A list of routes, each {\"origin\",\"destination\",\"departureDate\",\"returnDate\"}. Up to 50. Used in addition to the route above."
          },
          "multiCity": {
            "title": "Multi-city trip",
            "type": "array",
            "description": "Legs of one trip priced together, each {\"origin\",\"destination\",\"date\"}, for example London to Paris, then Paris to Rome."
          },
          "returnFlightsFor": {
            "title": "Return flights for the top outbound flights",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Round trips: for how many of the first outbound flights the matching return flights are listed (0 to 20). Each one is another request.",
            "default": 1
          },
          "calendarDays": {
            "title": "Fares by date: days ahead",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Adds one row per departure day with the lowest fare, for this many days from the departure date (0 to 365). 0 turns it off.",
            "default": 0
          },
          "calendarOnly": {
            "title": "Fares by date only",
            "type": "boolean",
            "description": "Skip the flight list and return only the fares by date.",
            "default": false
          },
          "bookingOptions": {
            "title": "Booking sellers and their prices",
            "type": "boolean",
            "description": "For the first flights, list who sells the ticket (airline or agency) and at what price.",
            "default": false
          },
          "maxBookingItineraries": {
            "title": "Flights to get sellers for",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "1 to 20.",
            "default": 3
          },
          "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": "Aged 2 to 11.",
            "default": 0
          },
          "infantsInSeat": {
            "title": "Infants in a seat",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Under 2, own seat.",
            "default": 0
          },
          "infantsOnLap": {
            "title": "Infants on a lap",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Under 2, on an adult's lap.",
            "default": 0
          },
          "cabin": {
            "title": "Cabin",
            "enum": [
              "economy",
              "premium-economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Cabin class.",
            "default": "economy"
          },
          "maxStops": {
            "title": "Stops",
            "enum": [
              "any",
              "0",
              "1",
              "2"
            ],
            "type": "string",
            "description": "Most stops allowed.",
            "default": "any"
          },
          "includeAirlines": {
            "title": "Only these airlines",
            "type": "array",
            "description": "Two-character airline codes (BA, SQ) or alliances (ONEWORLD, SKYTEAM, STAR_ALLIANCE).",
            "items": {
              "type": "string"
            }
          },
          "excludeAirlines": {
            "title": "Not these airlines",
            "type": "array",
            "description": "Two-character airline codes to leave out.",
            "items": {
              "type": "string"
            }
          },
          "maxPrice": {
            "title": "Highest price",
            "minimum": 1,
            "type": "integer",
            "description": "In the chosen currency."
          },
          "maxDurationHours": {
            "title": "Longest trip (hours)",
            "minimum": 1,
            "type": "integer",
            "description": "Total travel time per direction."
          },
          "minLayoverMinutes": {
            "title": "Shortest layover (minutes)",
            "minimum": 0,
            "type": "integer",
            "description": "Leave out flights with a shorter connection."
          },
          "maxLayoverMinutes": {
            "title": "Longest layover (minutes)",
            "minimum": 0,
            "type": "integer",
            "description": "Leave out flights with a longer connection."
          },
          "departureTimeFrom": {
            "title": "Depart from hour",
            "minimum": 0,
            "maximum": 23,
            "type": "integer",
            "description": "0 to 23."
          },
          "departureTimeTo": {
            "title": "Depart until hour",
            "minimum": 0,
            "maximum": 23,
            "type": "integer",
            "description": "0 to 23, this hour included."
          },
          "arrivalTimeFrom": {
            "title": "Arrive from hour",
            "minimum": 0,
            "maximum": 23,
            "type": "integer",
            "description": "0 to 23."
          },
          "arrivalTimeTo": {
            "title": "Arrive until hour",
            "minimum": 0,
            "maximum": 23,
            "type": "integer",
            "description": "0 to 23, this hour included."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "best",
              "cheapest",
              "fastest",
              "departure",
              "arrival",
              "emissions"
            ],
            "type": "string",
            "description": "Order of each flight list.",
            "default": "best"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Three-letter code, for example USD, EUR, SGD.",
            "default": "USD"
          },
          "market": {
            "title": "Country (point of sale)",
            "type": "string",
            "description": "Two-letter country code. Fares and sellers can differ by country.",
            "default": "US"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language of airport and airline names, for example en, de, pt-BR.",
            "default": "en"
          },
          "browserFallback": {
            "title": "Use a browser if the fast route is refused",
            "type": "boolean",
            "description": "Slower and uses more compute. Only needed if runs report being blocked.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. The default connection works for most runs."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}