{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Scraper | Stay Prices & Offers",
    "description": "Export Google Hotels and vacation rentals with prices for selected dates, occupancy and currency. Get room offers, property details, reviews and photo links.",
    "version": "0.1",
    "x-build-id": "Ij8OOCj88luVZwYGn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/danthedataman~google-hotels-stay-ledger/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-danthedataman-google-hotels-stay-ledger",
        "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/danthedataman~google-hotels-stay-ledger/runs": {
      "post": {
        "operationId": "runs-sync-danthedataman-google-hotels-stay-ledger",
        "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/danthedataman~google-hotels-stay-ledger/run-sync": {
      "post": {
        "operationId": "run-sync-danthedataman-google-hotels-stay-ledger",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "details",
              "reviews",
              "photos",
              "autocomplete"
            ],
            "type": "string",
            "description": "search, details, reviews, photos or autocomplete."
          },
          "queries": {
            "title": "Queries",
            "type": "array",
            "description": "Batch destination searches; exact hotel names in direct modes; prefixes in autocomplete.",
            "items": {
              "type": "string"
            }
          },
          "hotelUrls": {
            "title": "Hotel Urls",
            "type": "array",
            "description": "Google Hotels entity URLs/tokens, Google Maps place/CID URLs, Place IDs or Maps short links.",
            "items": {
              "type": "string"
            }
          },
          "hotelNames": {
            "title": "Hotel Names",
            "type": "array",
            "description": "Batch exact hotel names. Ambiguous names produce ERRORS; use a property URL or Place ID.",
            "items": {
              "type": "string"
            }
          },
          "checkInDate": {
            "title": "Check In Date",
            "type": "string",
            "description": "ISO date or today, tomorrow, +Ndays/weeks/months/years; UTC. Omitted: tomorrow."
          },
          "checkOutDate": {
            "title": "Check Out Date",
            "type": "string",
            "description": "ISO or relative date. Omitted: one day after check-in."
          },
          "stays": {
            "title": "Stays",
            "type": "array",
            "description": "Batch objects with checkInDate, checkOutDate, adults, childrenAges and rooms; omitted uses top-level stay, [] does no work."
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Three-letter currency code. Returned price context must match."
          },
          "languageCode": {
            "title": "Language Code",
            "type": "string",
            "description": "Google language code such as en, fr or pt-BR.",
            "default": "en"
          },
          "countryCode": {
            "title": "Country Code",
            "type": "string",
            "description": "Two-letter Google market code such as us or fr.",
            "default": "us"
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Adult occupancy per stay; 1–50.",
            "default": 2
          },
          "childrenAges": {
            "title": "Children Ages",
            "type": "array",
            "description": "Child ages in years, each 0–17; at most 50 children.",
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 17
            },
            "default": []
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Rooms per stay; 1–8.",
            "default": 1
          },
          "sweepDays": {
            "title": "Sweep Days",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "Add daily shifted stays through this offset; 0 means only the original stay, maximum 60.",
            "default": 0
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum billable rows per input and stay; 0 drains source within time/charge budget."
          },
          "maxPages": {
            "title": "Max Pages",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum source pages per input/stay or nested review collection; 0 drains within time/charge budget.",
            "default": 0
          },
          "includeUnpriced": {
            "title": "Include unpriced hotels",
            "type": "boolean",
            "description": "Emit and bill hotels without returned offers (or without a nightly card price in cards mode). Otherwise omit and count them in COVERAGE. Applies when includePrices is true.",
            "default": false
          },
          "includePrices": {
            "title": "Include Prices",
            "type": "boolean",
            "description": "Return selected-stay prices from OTA sources/rooms or search cards. False leaves price fields null and offers empty.",
            "default": true
          },
          "offerLevel": {
            "title": "Offer Level",
            "enum": [
              "rooms",
              "sources",
              "cards"
            ],
            "type": "string",
            "description": "rooms includes room-level offers; sources selects source-level rates; cards returns destination search cards and list prices without property hydration. cards requires search mode with no exact hotel targets, nested reviews or cancellation-only rates.",
            "default": "rooms"
          },
          "maxOffers": {
            "title": "Max Offers",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Cap nested offers per hotel; 0 includes all source-returned offers, maximum 500.",
            "default": 0
          },
          "includeReviews": {
            "title": "Include Reviews",
            "type": "boolean",
            "description": "Include nested reviews in hotel rows; standalone reviews mode emits one row per review.",
            "default": false
          },
          "maxReviews": {
            "title": "Max Reviews",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Nested review cap; 0 drains within page/time budgets, maximum 5000.",
            "default": 20
          },
          "reviewSort": {
            "title": "Review Sort",
            "enum": [
              "helpful",
              "recent",
              "highest",
              "lowest"
            ],
            "type": "string",
            "description": "Source review ordering.",
            "default": "helpful"
          },
          "reviewCategory": {
            "title": "Review Category",
            "type": "string",
            "description": "Source review topic filter, such as Service or Bar.",
            "default": ""
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "price",
              "rating",
              "reviewCount"
            ],
            "type": "string",
            "description": "Google search ordering: relevance, price, rating or reviewCount.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Min Price",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Minimum numeric nightly price in selected currency; 0 disables.",
            "default": 0
          },
          "maxPrice": {
            "title": "Max Price",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Maximum numeric nightly price in selected currency; 0 disables.",
            "default": 0
          },
          "minRating": {
            "title": "Min Rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Minimum Google guest rating on a five-point scale; 0 disables.",
            "default": 0
          },
          "hotelClass": {
            "title": "Hotel Class",
            "type": "array",
            "description": "Allowed hotel star classes, integers 1–5.",
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5
            },
            "default": []
          },
          "amenities": {
            "title": "Amenities",
            "type": "array",
            "description": "Google amenity filter labels listed below; Google search classification. Direct targets ignore filters.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "propertyKinds": {
            "title": "Property Kinds",
            "type": "array",
            "description": "Allowed hotel/vacationRental families; [] does no work.",
            "items": {
              "type": "string",
              "enum": [
                "hotel",
                "vacationRental"
              ]
            },
            "default": [
              "hotel",
              "vacationRental"
            ]
          },
          "propertyTypes": {
            "title": "Property Types",
            "type": "array",
            "description": "Google search subtype IDs 1–24; [] allows all. Applies to destination searches.",
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 24
            },
            "default": []
          },
          "minBedrooms": {
            "title": "Min Bedrooms",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Minimum source-reported rental bedrooms; 0 disables.",
            "default": 0
          },
          "minBathrooms": {
            "title": "Min Bathrooms",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Minimum source-reported rental bathrooms; 0 disables.",
            "default": 0
          },
          "freeCancellationOnly": {
            "title": "Free Cancellation Only",
            "type": "boolean",
            "description": "Require a returned offer with freeCancellation=true; requires includePrices.",
            "default": false
          },
          "specialOffers": {
            "title": "Special Offers",
            "type": "boolean",
            "description": "Require a source-marked deal; requires includePrices.",
            "default": false
          },
          "maxRetriesPerRequest": {
            "title": "Max Retries Per Request",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Ordinary request attempts including first, 1–8. Default direct blocks have the separate cap of ten datacenter fallback attempts.",
            "default": 3
          },
          "maxRunSeconds": {
            "title": "Max Run Seconds",
            "minimum": 1,
            "maximum": 86400,
            "type": "integer",
            "description": "HTTP work budget in seconds; 1–86400. Partial results remain in dataset, unfinished work in ERRORS.",
            "default": 270
          },
          "rotateAfterRequests": {
            "title": "Rotate After Requests",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Retire proxy session after N reads; 0 disables proactive rotation.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional Apify proxy configuration. Omitted uses anonymous direct egress with block-triggered datacenter fallback; explicit configurations are honoured. No automatic residential fallback."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}