{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Scraper - destination search",
    "description": "Reliable Google Hotels data as clean JSON: names, ratings, total prices, deals, booking links. Plain HTTP, honest run summaries. Google Flights companion.",
    "version": "0.1",
    "x-build-id": "qO5Afb6nfO6URecip"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/t2solutions~google-hotels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-t2solutions-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/t2solutions~google-hotels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-t2solutions-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/t2solutions~google-hotels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-t2solutions-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",
        "required": [
          "jobs"
        ],
        "properties": {
          "jobs": {
            "title": "Search jobs",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "Add one job per destination (1..100). Each job is one Google Hotels search; the actor fetches up to `maxHotels` rows for it and charges one `result` per delivered hotel row.",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "title": "Job type",
                  "type": "string",
                  "default": "search",
                  "enum": [
                    "search"
                  ],
                  "editor": "select",
                  "description": "Only `search` is supported in v1."
                },
                "destination": {
                  "title": "Destination",
                  "type": "string",
                  "editor": "textfield",
                  "minLength": 1,
                  "maxLength": 200,
                  "description": "City or region query as you would type it into Google Hotels, e.g. `Paris`, `New York`, `Ho Chi Minh City`. Include the qualifier for ambiguous names — `ho chi minh` alone can resolve to the person instead of the city."
                },
                "checkIn": {
                  "title": "Check-in date",
                  "type": "string",
                  "editor": "datepicker",
                  "dateType": "absolute",
                  "description": "Optional ISO date (YYYY-MM-DD). Recorded as input intent and passed to Google in the URL; Google's server-rendered results currently do not apply URL dates and serve their own default stay — rows always carry the displayed stay, `staySpecified` records whether these dates were set, and `nights` shows the stay actually priced."
                },
                "checkOut": {
                  "title": "Check-out date",
                  "type": "string",
                  "editor": "datepicker",
                  "dateType": "absolute",
                  "description": "Optional ISO date (YYYY-MM-DD). Set together with check-in; as with check-in, Google's server-rendered results currently serve their own default stay regardless (see the check-in description)."
                },
                "guests": {
                  "title": "Guests",
                  "type": "integer",
                  "editor": "number",
                  "default": 2,
                  "minimum": 1,
                  "maximum": 16,
                  "description": "Number of guests (1..16). Out-of-range values are clamped to the range."
                },
                "rooms": {
                  "title": "Rooms",
                  "type": "integer",
                  "editor": "number",
                  "default": 1,
                  "minimum": 1,
                  "maximum": 8,
                  "description": "Number of rooms (1..8). Out-of-range values are clamped to the range."
                },
                "maxHotels": {
                  "title": "Max hotels",
                  "type": "integer",
                  "editor": "number",
                  "default": 100,
                  "minimum": 1,
                  "maximum": 5000,
                  "description": "Per-job cap on hotel rows (1..5000). The actor-level cap is 5000 rows per run."
                },
                "enrichDetails": {
                  "title": "Enrich details",
                  "type": "boolean",
                  "editor": "checkbox",
                  "default": false,
                  "description": "Fetch each hotel's detail page for address, amenities, review detail and provider prices. Off by default; adds roughly 7 minutes of extra fetches per enriched run."
                }
              },
              "required": [
                "destination"
              ]
            }
          },
          "failSafeDeadlineMinutes": {
            "title": "Fail-safe deadline (minutes)",
            "maximum": 59,
            "type": "integer",
            "description": "Wall-clock deadline below the platform timeout. On expiry the actor flushes the rows already fetched, writes a RUN_SUMMARY with state `timed_out`/`partial`, and exits cleanly instead of being killed. A value ≤ 0 means the deadline is already reached (fail-fast, recorded as `timed_out`); values above 59 are clamped to 59.",
            "default": 55
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}