{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Prices Scraper — Rates by City and Dates",
    "description": "Google Hotels prices by city and dates: one row per hotel with its nightly price, class, rating, reviews, map point and Google Hotels link, plus every booking site's price on request. Any currency, any guests. No login, no start fee.",
    "version": "1.0",
    "x-build-id": "R8y8bzaBHbezTIJFa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyfetch~google-hotels-prices-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyfetch-google-hotels-prices-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/steadyfetch~google-hotels-prices-scraper/runs": {
      "post": {
        "operationId": "runs-sync-steadyfetch-google-hotels-prices-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/steadyfetch~google-hotels-prices-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-steadyfetch-google-hotels-prices-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": {
          "locations": {
            "title": "Places to search",
            "type": "array",
            "description": "One search per entry: a city, region or neighbourhood the way you would type it on Google Hotels — Chicago, Paris, France, Shibuya, Lake Tahoe — or a map point as latitude,longitude. Every entry uses the dates, guests and settings below. A place Google Hotels does not know is refused before anything is read, and nothing is charged for it.",
            "items": {
              "type": "string"
            }
          },
          "checkIn": {
            "title": "Check-in date",
            "type": "string",
            "description": "The first night, written YYYY-MM-DD. Left empty, prices are for two weeks from today. Today or later."
          },
          "checkOut": {
            "title": "Check-out date",
            "type": "string",
            "description": "Optional, YYYY-MM-DD, after the check-in date and at most 30 nights later. Left empty, the stay is \"Nights\" long."
          },
          "nights": {
            "title": "Nights",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many nights, when no check-out date is set. 1 to 30.",
            "default": 1
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "Adults in the room. Adults and children together can be at most 6.",
            "default": 2
          },
          "children": {
            "title": "Children's ages",
            "type": "array",
            "description": "Optional. One number per child, their age from 0 to 17 — [8, 12] is two children aged 8 and 12."
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "The currency prices are shown in, as a three-letter code: USD, EUR, GBP, JPY …",
            "default": "USD"
          },
          "maxHotels": {
            "title": "Max hotels per search",
            "minimum": 1,
            "maximum": 140,
            "type": "integer",
            "description": "The most hotels to deliver per place, in Google Hotels' own order. One Google Hotels search lists at most 140.",
            "default": 18
          },
          "includeRates": {
            "title": "Add each hotel's rate sheet",
            "type": "boolean",
            "description": "Also return, for every hotel delivered, its rate sheet: each booking site's nightly price, official-site and sponsored flags, free cancellation and the site's link. Charged as one Hotel rate sheet per hotel whose sheet holds at least one price.",
            "default": false
          },
          "hotels": {
            "title": "Hotels (rate sheets)",
            "type": "array",
            "description": "Optional. Google Hotels hotel links (google.com/travel/hotels/entity/…) or the hotelId from a row of this actor. Each gets its rate sheet for the dates and guests above: every booking site's price for that hotel.",
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "What to search for",
            "type": "string",
            "description": "The words in front of the place — hotels by default. Try resorts, hostels or boutique hotels.",
            "default": "hotels"
          },
          "sortBy": {
            "title": "Order",
            "type": "string",
            "description": "relevance (Google's own order, the default), lowest_price, highest_rating or most_reviewed.",
            "default": "relevance"
          },
          "stars": {
            "title": "Hotel class",
            "type": "array",
            "description": "Optional. Only hotels of these classes, like [4, 5]."
          },
          "minPrice": {
            "title": "Lowest nightly price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. In your currency, a whole number."
          },
          "maxPrice": {
            "title": "Highest nightly price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. In your currency, a whole number."
          },
          "freeCancellation": {
            "title": "Free cancellation only",
            "type": "boolean",
            "description": "Only hotels Google Hotels shows with free cancellation for these dates.",
            "default": false
          },
          "market": {
            "title": "Search from (country)",
            "type": "string",
            "description": "The country the search is made from, as a two-letter code (US, GB, DE …). It decides which booking sites answer, never where the hotels are.",
            "default": "US"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "The language of hotel names and texts, as a code: en, de, es, fr …",
            "default": "en"
          },
          "maxRunSeconds": {
            "title": "Max run seconds",
            "minimum": 30,
            "type": "integer",
            "description": "Optional. Stop collecting after this many seconds; hotels already read are still delivered."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}