{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Travel Hotels Scraper: Hotel Prices & Flight Fares",
    "description": "Get Google Hotels prices or Google Flights fares for a trip, e.g. hotels in Paris next weekend or New York to London flights. About $0.0035 per hotel, $0.0018 per flight. Hotel price comparison across booking sites, rating, reviews; airline, times, stops, CO2. Airfare and hotel price tracker.",
    "version": "1.0",
    "x-build-id": "jHg77nyLY0TK0S6i0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moggedhq~google-hotels-flights-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moggedhq-google-hotels-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/moggedhq~google-hotels-flights-scraper/runs": {
      "post": {
        "operationId": "runs-sync-moggedhq-google-hotels-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/moggedhq~google-hotels-flights-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-moggedhq-google-hotels-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": {
          "searchType": {
            "title": "What to search",
            "enum": [
              "hotels",
              "flights"
            ],
            "type": "string",
            "description": "Hotels (fill in Location) or flights (fill in From and To). If you leave Location empty and fill in From and To, the Actor searches flights.",
            "default": "hotels"
          },
          "location": {
            "title": "Location (hotels)",
            "type": "string",
            "description": "City, area, address or landmark, written as you would on Google Hotels: \"Paris\", \"Manhattan, New York\", \"hotels near the Eiffel Tower\", \"resorts in Cancun\"."
          },
          "locations": {
            "title": "More locations (optional)",
            "type": "array",
            "description": "Search several places in one run, one per line. Max results applies to each location.",
            "items": {
              "type": "string"
            }
          },
          "checkIn": {
            "title": "Check-in date",
            "type": "string",
            "description": "YYYY-MM-DD or a relative date such as \"+30 days\". Empty = 30 days from today, so scheduled runs always look ahead."
          },
          "checkOut": {
            "title": "Check-out date",
            "type": "string",
            "description": "YYYY-MM-DD. Empty = check-in plus Nights."
          },
          "nights": {
            "title": "Nights (when check-out is empty)",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Length of stay used when no check-out date is given. Google allows up to 30 nights.",
            "default": 2
          },
          "minPrice": {
            "title": "Minimum price per night",
            "minimum": 0,
            "type": "integer",
            "description": "In the chosen currency. Leave empty for no minimum."
          },
          "maxPrice": {
            "title": "Maximum price per night",
            "minimum": 0,
            "type": "integer",
            "description": "In the chosen currency, for example 200. Leave empty for no maximum."
          },
          "minRating": {
            "title": "Minimum guest rating",
            "enum": [
              "any",
              "3.5",
              "4",
              "4.5"
            ],
            "type": "string",
            "description": "Only hotels rated at least this on Google (out of 5).",
            "default": "any"
          },
          "hotelClass": {
            "title": "Hotel class (stars)",
            "type": "array",
            "description": "Only hotels of these star classes. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "2-star",
                "3-star",
                "4-star",
                "5-star"
              ]
            }
          },
          "amenities": {
            "title": "Must have amenities",
            "type": "array",
            "description": "Only hotels that have all of these, as Google Hotels' own filters.",
            "items": {
              "type": "string",
              "enum": [
                "free wi-fi",
                "free breakfast",
                "free parking",
                "parking",
                "pool",
                "indoor pool",
                "outdoor pool",
                "spa",
                "fitness center",
                "restaurant",
                "bar",
                "room service",
                "pet-friendly",
                "kid-friendly",
                "air-conditioned",
                "wheelchair accessible",
                "beach access",
                "all-inclusive available",
                "ev charger"
              ],
              "enumTitles": [
                "Free Wi-Fi",
                "Free breakfast",
                "Free parking",
                "Parking",
                "Pool",
                "Indoor pool",
                "Outdoor pool",
                "Spa",
                "Fitness center",
                "Restaurant",
                "Bar",
                "Room service",
                "Pet-friendly",
                "Kid-friendly",
                "Air-conditioned",
                "Wheelchair accessible",
                "Beach access",
                "All-inclusive available",
                "EV charger"
              ]
            }
          },
          "sortBy": {
            "title": "Sort hotels by",
            "enum": [
              "relevance",
              "lowest_price",
              "highest_rating",
              "most_reviewed"
            ],
            "type": "string",
            "description": "Google Hotels' own sort orders.",
            "default": "relevance"
          },
          "includeBookingSites": {
            "title": "Prices per booking site, address and phone",
            "type": "boolean",
            "description": "For each hotel, also get every booking site's price (Booking.com, Expedia, Hotels.com, the hotel's own site and others), free-cancellation dates, street address, phone and ratings from other sites. Same price per hotel; turn off for faster runs.",
            "default": true
          },
          "includeVacationRentals": {
            "title": "Include vacation rentals",
            "type": "boolean",
            "description": "Google mixes some apartments and houses into hotel results. Off = hotels, B&Bs, hostels and other lodging only.",
            "default": false
          },
          "from": {
            "title": "From (flights)",
            "type": "string",
            "description": "Airport or city code (JFK, LHR, NYC, LON) or a city name (New York, Cape Town)."
          },
          "to": {
            "title": "To (flights)",
            "type": "string",
            "description": "Airport or city code (CDG, NRT, PAR) or a city name (Paris, Tokyo)."
          },
          "departDate": {
            "title": "Departure date",
            "type": "string",
            "description": "YYYY-MM-DD or \"+30 days\". Empty = 30 days from today."
          },
          "returnDate": {
            "title": "Return date (round trip)",
            "type": "string",
            "description": "Leave empty for one way. With a return date, prices are round-trip totals and each row is an outbound flight."
          },
          "cabin": {
            "title": "Cabin class",
            "enum": [
              "economy",
              "premium_economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Seat class to price.",
            "default": "economy"
          },
          "stops": {
            "title": "Stops",
            "enum": [
              "any",
              "nonstop",
              "one_stop_or_fewer",
              "two_stops_or_fewer"
            ],
            "type": "string",
            "description": "Maximum number of stops.",
            "default": "any"
          },
          "flightSort": {
            "title": "Sort flights by",
            "enum": [
              "best",
              "cheapest",
              "fastest"
            ],
            "type": "string",
            "description": "Best keeps Google's own order (its \"best flights\" first).",
            "default": "best"
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Guests for hotels or passengers for flights. Empty = 2 for hotels, 1 for flights."
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Number of children (0 to 8).",
            "default": 0
          },
          "childrenAges": {
            "title": "Children's ages (hotels)",
            "type": "array",
            "description": "One age per child, 0 to 17. Missing ages count as 8.",
            "items": {
              "type": "string"
            }
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "CAD",
              "AUD",
              "NZD",
              "JPY",
              "CNY",
              "INR",
              "ZAR",
              "AED",
              "SAR",
              "QAR",
              "KWD",
              "BHD",
              "OMR",
              "JOD",
              "ILS",
              "EGP",
              "MAD",
              "TRY",
              "CHF",
              "SEK",
              "NOK",
              "DKK",
              "ISK",
              "PLN",
              "CZK",
              "HUF",
              "RON",
              "BGN",
              "RSD",
              "MKD",
              "BAM",
              "ALL",
              "MDL",
              "UAH",
              "GEL",
              "AMD",
              "AZN",
              "KZT",
              "RUB",
              "BYN",
              "HKD",
              "TWD",
              "KRW",
              "SGD",
              "MYR",
              "IDR",
              "THB",
              "PHP",
              "VND",
              "PKR",
              "BRL",
              "MXN",
              "ARS",
              "CLP",
              "COP",
              "PEN",
              "CRC",
              "DOP",
              "JMD",
              "BSD",
              "BMD",
              "AWG",
              "PAB",
              "CUP",
              "XPF",
              "DZD",
              "LBP",
              "IRR",
              "HRK"
            ],
            "type": "string",
            "description": "Prices are shown in this currency.",
            "default": "USD"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Most hotels per location, or most flight itineraries. You pay per result, so this also caps the cost: 100 hotels = $0.35, 50 flights = $0.09. Free Apify plans get up to 20 results per run.",
            "default": 20
          },
          "country": {
            "title": "Country (Google region)",
            "type": "string",
            "description": "Two-letter country code for the Google region, which can change which booking sites appear. Default us.",
            "default": "us"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy is used by default; blocked requests are retried on new IPs automatically.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}