{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Scraper",
    "description": "A scraper that extracts hotel listings from Google Travel search pages. It collects hotel names, prices, ratings, locations, amenities, and booking links from dynamic Google Hotels results for travel analysis, price comparison, and market research.",
    "version": "0.2",
    "x-build-id": "ebVtrL7XRo0a6s3ES"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapeai~google-hotels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapeai-google-hotels-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/scrapeai~google-hotels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapeai-google-hotels-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/scrapeai~google-hotels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapeai-google-hotels-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": {
          "startUrls": {
            "title": "Target Start URLs",
            "type": "array",
            "description": "Live public target URLs to request first. These can be replaced at run time.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "title": "URL",
                  "description": "Absolute live target URL.",
                  "type": "string"
                }
              },
              "required": [
                "url"
              ]
            },
            "default": [
              {
                "url": "https://www.google.com/travel/search?q=hotels%20in%20Austin&hl=en&gl=us&curr=USD"
              }
            ]
          },
          "endUrls": {
            "title": "Target End URLs",
            "type": "array",
            "description": "Optional live target boundary URLs. They are fetched after start URLs and are kept separate in output.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "title": "URL",
                  "description": "Absolute live target URL.",
                  "type": "string"
                }
              },
              "required": [
                "url"
              ]
            },
            "default": []
          },
          "query": {
            "title": "Search Query",
            "type": "string",
            "description": "Target query used by a derived source URL when the actor supports query search.",
            "default": "hotels in Austin"
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of live records to return. Production default/prefill is 50; maximum is 50. Local input.json stays capped at 10.",
            "default": 10
          },
          "maxRequestRetries": {
            "title": "Max Request Retries",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Number of retries for a live target request.",
            "default": 1
          },
          "requestTimeoutSecs": {
            "title": "Request Timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Maximum time to wait for one live target request.",
            "default": 25
          },
          "maxPages": {
            "title": "Maximum Live Pages",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum live listing/API pages to request, including discovered next pages.",
            "default": 1
          },
          "crawlDetails": {
            "title": "Fetch Detail Pages",
            "type": "boolean",
            "description": "Fetch hotel detail pages after the search. The listing already includes hotel names, ratings, reviews, prices and amenities, so this is off by default.",
            "default": false
          },
          "maxDetailPages": {
            "title": "Maximum Detail Pages",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum same-site detail URLs to fetch per run.",
            "default": 5
          },
          "detailConcurrency": {
            "title": "Detail Concurrency",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum number of live detail requests in flight at once.",
            "default": 4
          },
          "browserFallback": {
            "title": "Browser DOM Fallback",
            "type": "boolean",
            "description": "If the direct live request is blocked or returns a JavaScript shell, render the same target in a local headless browser and parse the live DOM.",
            "default": true
          },
          "proxyEnabled": {
            "title": "Enable Apify Proxy",
            "type": "boolean",
            "description": "If the direct live request fails without a clear access challenge, retry once through the configured Apify datacenter proxy.",
            "default": true
          },
          "targetInput": {
            "title": "Original Target Input",
            "type": "object",
            "description": "Optional source-specific fields copied from this actor input schema. URL/query values are normalized by this actor.",
            "properties": {
              "queries": {
                "title": "Searches",
                "type": "array",
                "description": "One search per line, as you would type it into Google Hotels: a place (\"hotels in Glasgow\", \"Lisbon\"), an area (\"hotels near Times Square\") or a property name.",
                "prefill": [
                  "hotels in Glasgow"
                ]
              },
              "checkIn": {
                "title": "Check-in date",
                "type": "string",
                "description": "YYYY-MM-DD. Leave empty for the next Friday."
              },
              "checkOut": {
                "title": "Check-out date",
                "type": "string",
                "description": "YYYY-MM-DD. Leave empty for two nights after check-in."
              },
              "adults": {
                "title": "Adults",
                "type": "integer",
                "description": "Number of adult guests (1–20).",
                "default": 2
              },
              "currency": {
                "title": "Currency",
                "type": "string",
                "description": "ISO 4217 code for the prices, e.g. USD, EUR, GBP, AUD.",
                "default": "USD"
              },
              "maxResults": {
                "title": "Max results per search",
                "type": "integer",
                "description": "Stop after this many hotels for each search. Google shows about 18 per page.",
                "default": 10
              },
              "minRating": {
                "title": "Minimum rating",
                "type": "number",
                "description": "Only keep hotels rated at least this (0–5). Applied to the results Google returns."
              },
              "minPrice": {
                "title": "Min nightly price",
                "type": "number",
                "description": "Only keep hotels with a nightly price at or above this, in the selected currency."
              },
              "maxPrice": {
                "title": "Max nightly price",
                "type": "number",
                "description": "Only keep hotels with a nightly price at or below this, in the selected currency."
              },
              "language": {
                "title": "Language",
                "type": "string",
                "description": "Google interface language (hl), e.g. en, de, fr, es. Amenity names follow this language.",
                "default": "en"
              },
              "country": {
                "title": "Country",
                "type": "string",
                "description": "Google market (gl), a two-letter country code such as us, gb, de.",
                "default": "us"
              },
              "proxyConfiguration": {
                "title": "Proxy",
                "type": "object",
                "description": "Apify datacenter proxies work for Google Travel. Switch to RESIDENTIAL if runs start hitting captcha pages.",
                "default": {
                  "useApifyProxy": true
                },
                "prefill": {
                  "useApifyProxy": true
                }
              }
            },
            "default": {},
            "additionalProperties": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}