{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Travel Scraper: Flights, Hotels & Vacation Rentals",
    "description": "Scrape Google Flights, Google Hotels and vacation rentals in one run: every itinerary with price, stops, layovers, CO2 and return flights; hotels and rentals with nightly price, rating, class, bedrooms and every booking site's offer. Price insights included. Fast HTTP scraper, no browser.",
    "version": "0.1",
    "x-build-id": "lNMME3uLbDnTZhY1y"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nextgensda~google-travel/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nextgensda-google-travel",
        "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/nextgensda~google-travel/runs": {
      "post": {
        "operationId": "runs-sync-nextgensda-google-travel",
        "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/nextgensda~google-travel/run-sync": {
      "post": {
        "operationId": "run-sync-nextgensda-google-travel",
        "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": {
          "flights": {
            "title": "Flight searches",
            "type": "array",
            "description": "One search per entry: <code>{\"origin\": \"JFK\", \"destination\": \"LAX\", \"departureDate\": \"2026-12-20\", \"returnDate\": \"2026-12-27\"}</code>. Airport or city codes (JFK, LON, NYC); leave <code>returnDate</code> out for one way. Each entry can override the options below: <code>adults</code>, <code>children</code>, <code>infantsOnLap</code>, <code>infantsInSeat</code>, <code>cabin</code>, <code>maxStops</code>, <code>airlines</code>, <code>excludeAirlines</code>."
          },
          "returnFlightsFor": {
            "title": "Return flights for the cheapest outbounds",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Round trips: Google lists outbound flights first, priced as round-trip totals. For the N cheapest outbounds, also fetch their return flights (each priced as the round-trip total for that pair). 0 = outbounds only.",
            "default": 1
          },
          "fullFlightList": {
            "title": "Every flight",
            "type": "boolean",
            "description": "The whole list (~90-150 on busy routes) rather than Google's first ~35 (top flights + others).",
            "default": true
          },
          "bookingOptionsFor": {
            "title": "Booking options for the cheapest itineraries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "For the N cheapest itineraries of each flight search (round trips: each outbound with its cheapest return), where to book them: the airlines and travel agencies Google lists (Expedia, Trip.com, CheapOair, ...), each with its price, fare and booking link. Starts a Chrome once per run: needs at least 1 GB of memory (set it in the run options). 0 = off.",
            "default": 0
          },
          "priceGraphDays": {
            "title": "Price graph (days)",
            "minimum": 0,
            "maximum": 330,
            "type": "integer",
            "description": "Google's price graph: the cheapest price for each departure date over this many days around the search's date (round trips: same trip length). Up to 330 days. Starts a Chrome once per run, like booking options: needs at least 1 GB of memory. 0 = off.",
            "default": 0
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Prices are totals for all travellers.",
            "default": 1
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Aged 2-11.",
            "default": 0
          },
          "infantsOnLap": {
            "title": "Infants on lap",
            "minimum": 0,
            "maximum": 4,
            "type": "integer",
            "description": "Under 2, one per adult.",
            "default": 0
          },
          "infantsInSeat": {
            "title": "Infants in seat",
            "minimum": 0,
            "maximum": 4,
            "type": "integer",
            "description": "Under 2, with their own seat.",
            "default": 0
          },
          "cabin": {
            "title": "Cabin",
            "enum": [
              "economy",
              "premium-economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Seat class.",
            "default": "economy"
          },
          "maxStops": {
            "title": "Max stops",
            "minimum": 0,
            "maximum": 2,
            "type": "integer",
            "description": "0 = nonstop only. Empty = any."
          },
          "airlines": {
            "title": "Only these airlines",
            "type": "array",
            "description": "IATA codes, e.g. <code>B6</code>, <code>DL</code>.",
            "items": {
              "type": "string"
            }
          },
          "excludeAirlines": {
            "title": "Not these airlines",
            "type": "array",
            "description": "IATA codes to leave out.",
            "items": {
              "type": "string"
            }
          },
          "maxFlightsPerSearch": {
            "title": "Max flights per search",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Per list (outbounds, and each set of return flights).",
            "default": 200
          },
          "hotels": {
            "title": "Hotel searches",
            "type": "array",
            "description": "One search per entry: <code>{\"place\": \"Paris\", \"checkin\": \"2026-12-10\", \"checkout\": \"2026-12-12\"}</code>. A city, area or address."
          },
          "rentals": {
            "title": "Vacation rental searches",
            "type": "array",
            "description": "Same as hotel searches: <code>{\"place\": \"Barcelona\", \"checkin\": \"2026-12-10\", \"checkout\": \"2026-12-12\"}</code>."
          },
          "hotelDetails": {
            "title": "Booking options and details",
            "type": "boolean",
            "description": "Open each hotel's or rental's page: every booking site's offer (official site, Booking.com, Expedia, ...), address, phone, nearby places and category ratings. One more request per property, charged as hotel-details instead of hotel / rental.",
            "default": false
          },
          "maxHotelsPerSearch": {
            "title": "Max hotels per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hotels or rentals per search, page after page (18 a page). Popular cities have thousands.",
            "default": 20
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "ISO code, e.g. USD, EUR, GBP.",
            "default": "USD"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "e.g. en, de, fr.",
            "default": "en"
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "The market Google prices for (ISO code).",
            "default": "US"
          },
          "maxItems": {
            "title": "Max rows in total",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Flights, hotels and rentals (price-insight rows don't count).",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify's US residential proxy is the default. Hotel prices follow the currency above; a few can follow the exit's country.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}