{
  "openapi": "3.0.1",
  "info": {
    "title": "Free Google Hotels Scraper — Search + Prices",
    "description": "A Google Hotels scraper that returns structured JSON for hotel search, plus a one-call detail mode that pulls per-room rates and the full Booking.com / Expedia / Hotels.com / Trip.com / Agoda OTA price comparison Google Hotels shows on its property pages.",
    "version": "0.2",
    "x-build-id": "QdbcOppsMtrTpvUXl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s-r~free-google-hotels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s-r-free-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/s-r~free-google-hotels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-s-r-free-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/s-r~free-google-hotels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-s-r-free-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": {
          "query": {
            "title": "Query",
            "type": "string",
            "description": "Place to search hotels in (city, neighbourhood, landmark, or 'hotels in <x>'). Required unless `queries` is given."
          },
          "place_id": {
            "title": "Place id",
            "type": "string",
            "description": "Google place id (0x…:0x…). Skips place resolution when supplied."
          },
          "checkin": {
            "title": "Checkin",
            "type": "string",
            "description": "Check-in date, YYYY-MM-DD. Give checkin and checkout together; without dates Google's default stay window is used."
          },
          "checkout": {
            "title": "Checkout",
            "type": "string",
            "description": "Check-out date, YYYY-MM-DD. Must be after checkin."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Number of adults (1-8); affects room pricing.",
            "default": 2
          },
          "children": {
            "title": "Children",
            "type": "array",
            "description": "Ages of children (0-17); affects room pricing.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "ISO-4217 currency code for prices.",
            "default": "EUR"
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "ISO-3166 country to search from (residential exit). Google prices differ per country of the exit IP."
          },
          "max_results": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Hotels per query (1-20; Google renders 20 per search page). With include_prices or include_details, keep max_results × (extra fetches per hotel) at or below 40 for complete enrichment; the rest stays unenriched and `partial` is set."
          },
          "include_prices": {
            "title": "Include prices",
            "type": "boolean",
            "description": "Per hotel: each booking site's rate for the dates, room, free-cancellation and deeplink (one extra fetch per hotel).",
            "default": false
          },
          "include_details": {
            "title": "Include details",
            "type": "boolean",
            "description": "Per hotel: per-room matrix (room types), OTA price ladder, grouped amenity categories, review breakdown, descriptions (one extra fetch per hotel). Prices here reflect Google's entity-page default window; for date-accurate booking-site rates use include_prices.",
            "default": false
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Accepted for compatibility and echoed back. Hotel data is parsed from Google's English interface, so names, amenities and descriptions are returned in English.",
            "default": "en"
          },
          "queries": {
            "title": "Queries",
            "type": "array",
            "description": "Alias van query (oude actor): meerdere zoekopdrachten in één run, na elkaar binnen het tijdbudget. Elk item krijgt search_query.",
            "items": {
              "type": "string"
            }
          },
          "max_results_per_query": {
            "title": "Max results per query",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Alias van max_results (oude actor). Boven 20 wordt stil afgetopt: Google rendert 20 hotels per pagina.",
            "default": 20
          },
          "hl": {
            "title": "Hl",
            "type": "string",
            "description": "Alias van language (oude actor).",
            "default": "en"
          },
          "gl": {
            "title": "Gl",
            "type": "string",
            "description": "Alias van country (oude actor).",
            "default": "us"
          },
          "fetch_details": {
            "title": "Fetch details",
            "type": "boolean",
            "description": "Alias van include_details (oude actor).",
            "default": false
          },
          "detail_concurrency": {
            "title": "Detail concurrency",
            "type": "integer",
            "description": "Genegeerd (oude actor); de verrijking loopt met een vaste parallelliteit binnen het tijdbudget.",
            "default": 5
          },
          "use_cookies": {
            "title": "Use cookies",
            "type": "boolean",
            "description": "Genegeerd (oude actor); consent-cookies gaan altijd mee.",
            "default": true
          },
          "use_proxy": {
            "title": "Use proxy",
            "type": "boolean",
            "description": "Genegeerd (oude actor); elke fetch gaat via een residentiële exit.",
            "default": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}