{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Flights Scraper",
    "description": "Google Flights scraper API for flight prices and itineraries on the routes and dates you choose, one-way or round trip: fare, airlines, flight numbers, times, stops, layovers and emissions, plus Google's price outlook. Filters for stops, airlines, price, times and layovers. $0.047 per 1,000 flights.",
    "version": "0.2",
    "x-build-id": "pT4DSuWFI4EURtvIl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dami_studio~google-flights-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dami_studio-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/dami_studio~google-flights-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dami_studio-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/dami_studio~google-flights-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dami_studio-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",
        "properties": {
          "origin": {
            "title": "From",
            "type": "string",
            "description": "Airport or city code, such as JFK, LHR or NYC. Several codes, separated by commas, are searched together the way Google Flights does (JFK, EWR)."
          },
          "destination": {
            "title": "To",
            "type": "string",
            "description": "Airport or city code, such as LAX, CDG or LON. Several codes, separated by commas, are searched together."
          },
          "departureDate": {
            "title": "Departure date",
            "type": "string",
            "description": "Written YYYY-MM-DD, for example 2026-12-10, or +14 for 14 days from the day the run starts. Leave it empty and the run searches 30 days from today."
          },
          "returnDate": {
            "title": "Return date",
            "type": "string",
            "description": "For a round trip, written YYYY-MM-DD or +21 (days from the day the run starts). Leave it empty for one way. Round-trip prices cover both ways."
          },
          "tripLengthDays": {
            "title": "Trip length (days)",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "For a round trip without a return date: come back this many days after leaving. With an empty departure date, a scheduled run keeps searching the same trip a month ahead."
          },
          "departureDateTo": {
            "title": "Last departure date",
            "type": "string",
            "description": "Search every day from the departure date up to this one, at most 31 days, to compare fares day by day. On a round trip the trip length stays the same. Written YYYY-MM-DD or +40 (days from the day the run starts)."
          },
          "routes": {
            "title": "More routes",
            "type": "array",
            "description": "One search per line, written like JFK-LAX 2026-12-10, with a second date for a round trip: LHR-JFK 2026-12-10 2026-12-17. A date can be +14 (days from the day the run starts); a line with no date searches 30 days ahead. Up to 100 searches a run in all.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Google Flights links",
            "type": "array",
            "description": "Links copied from the address bar after a search on Google Flights has loaded. Each is searched as it is, with the filters below applied to its flights.",
            "items": {
              "type": "string"
            }
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Travellers aged 12 and over. Prices are for the whole party.",
            "default": 1
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Children aged 2 to 11, with a seat.",
            "default": 0
          },
          "cabinClass": {
            "title": "Cabin",
            "enum": [
              "economy",
              "premium_economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "The cabin to price.",
            "default": "economy"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Prices in this currency, a three-letter code such as USD, EUR, GBP or JPY.",
            "default": "USD"
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Search as a visitor from this country, a two-letter code such as US, GB or DE. Fares and the airlines shown can differ by country.",
            "default": "US"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language for airport and airline names, such as en, de or pt-BR.",
            "default": "en"
          },
          "maxStops": {
            "title": "Stops",
            "enum": [
              "any",
              "0",
              "1",
              "2"
            ],
            "type": "string",
            "description": "The most stops on each way of the trip.",
            "default": "any"
          },
          "airlines": {
            "title": "Only these airlines",
            "type": "array",
            "description": "Two-character airline codes, such as DL, BA or U2. Every flight of a trip has to be on one of them.",
            "items": {
              "type": "string"
            }
          },
          "excludeAirlines": {
            "title": "Not these airlines",
            "type": "array",
            "description": "Two-character airline codes. A trip with any flight on one of them is left out.",
            "items": {
              "type": "string"
            }
          },
          "maxPrice": {
            "title": "Highest price",
            "minimum": 1,
            "type": "number",
            "description": "Leave out trips that cost more, in the currency above, for the whole party."
          },
          "maxDurationHours": {
            "title": "Longest journey (hours)",
            "minimum": 1,
            "maximum": 72,
            "type": "number",
            "description": "Leave out trips that take longer, layovers included, for each way."
          },
          "departureTimeRange": {
            "title": "Leaving between",
            "type": "string",
            "description": "Outbound departure window in local time, written HH:MM-HH:MM, such as 06:00-12:00. A window like 22:00-06:00 runs past midnight."
          },
          "arrivalTimeRange": {
            "title": "Arriving between",
            "type": "string",
            "description": "Outbound arrival window in local time, written HH:MM-HH:MM."
          },
          "returnDepartureTimeRange": {
            "title": "Return leaving between",
            "type": "string",
            "description": "For the return flights (see \"Return flights for\"), written HH:MM-HH:MM."
          },
          "returnArrivalTimeRange": {
            "title": "Return arriving between",
            "type": "string",
            "description": "For the return flights, written HH:MM-HH:MM."
          },
          "minLayoverMinutes": {
            "title": "Shortest layover (minutes)",
            "minimum": 0,
            "maximum": 1440,
            "type": "integer",
            "description": "Leave out trips with a connection shorter than this."
          },
          "maxLayoverMinutes": {
            "title": "Longest layover (minutes)",
            "minimum": 0,
            "maximum": 1440,
            "type": "integer",
            "description": "Leave out trips with a connection longer than this."
          },
          "connectingAirports": {
            "title": "Connect only in",
            "type": "array",
            "description": "Airport codes. Trips with a stop elsewhere are left out; non-stop trips stay.",
            "items": {
              "type": "string"
            }
          },
          "excludeConnectingAirports": {
            "title": "Never connect in",
            "type": "array",
            "description": "Airport codes. Trips that stop in any of them are left out.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "best",
              "price",
              "fastest",
              "departure",
              "arrival",
              "emissions"
            ],
            "type": "string",
            "description": "The order of each search's flights. \"Google's order\" puts Google's best flights first.",
            "default": "best"
          },
          "maxFlightsPerSearch": {
            "title": "Flights per search",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "The most flights to return from each search, after the filters and the order.",
            "default": 100
          },
          "returnFlightsFor": {
            "title": "Return flights for",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "On a round trip, also list the return flights for this many of the first outbound flights, with the total price of each pair. Each return flight is one more row. 0 lists outbound flights only.",
            "default": 0
          },
          "includePriceHistory": {
            "title": "Price history",
            "type": "boolean",
            "description": "Add Google's price graph for the search to every outbound row: one figure a day for about the last 60 days.",
            "default": false
          },
          "maxItems": {
            "title": "Flights in all",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The most flights in the whole run. Leave it empty for no total limit."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional: your own proxies. Runs work without them."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}