{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Scraper",
    "description": "Google Hotels scraper for hotel prices on your dates by city, hotel name or link: nightly rate, stay total, taxes and fees, rating and class, plus every booking site's price (Booking.com, Expedia, Agoda, the hotel's own site). Price calendar across check-in dates. No API key.",
    "version": "0.1",
    "x-build-id": "B5STlXShrBKhhkImL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pumpkinapi~google-hotels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pumpkinapi-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/pumpkinapi~google-hotels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-pumpkinapi-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/pumpkinapi~google-hotels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-pumpkinapi-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": {
          "locations": {
            "title": "Places",
            "type": "array",
            "description": "Where to look for hotels, one per line, as you would type it on Google Hotels: a city (Lisbon), a district (Shibuya Tokyo), a landmark (hotels near Times Square), a region (Algarve) or one hotel by name (Hotel Pacai Vilnius). Use this, Hotel links, or both.",
            "items": {
              "type": "string"
            }
          },
          "hotelUrls": {
            "title": "Hotel links",
            "type": "array",
            "description": "Google Hotels pages of the hotels you want, one per line, for example https://www.google.com/travel/hotels/entity/ChkIxubmxtqD3OVPGg0vZy8xMWptMG55YnE0EAE. Copy the address from the browser as it is. A row from this Actor holds the link in googleHotelsUrl and the id in hotelId; both work here. Each hotel comes with every booking site's offer.",
            "items": {
              "type": "string"
            }
          },
          "checkIn": {
            "title": "Check-in date",
            "type": "string",
            "description": "A date like 2026-12-14, or a distance from the day of the run like \"30 days\" or \"2 weeks\". A distance keeps a scheduled run from asking for a date that has passed.",
            "default": "30 days"
          },
          "checkOut": {
            "title": "Check-out date",
            "type": "string",
            "description": "A date like 2026-12-16, or a distance from the day of the run like \"32 days\". Empty means one night. Google prices stays of up to 30 nights."
          },
          "checkInDatesToScan": {
            "title": "Check-in dates to scan",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "1 checks only the check-in date. 30 also checks the 29 days after it with the same number of nights, which gives a price calendar. Every date is a separate row and a separate result.",
            "default": 1
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Adults in one room.",
            "default": 2
          },
          "childrenAges": {
            "title": "Children's ages",
            "type": "array",
            "description": "One age per child, 0 to 17, for example [8, 4]. Leave it empty unless you need it: with children Google has a price for far fewer hotels and booking sites, and hotels without a price come back as free rows.",
            "default": []
          },
          "currency": {
            "title": "Currency",
            "pattern": "^[A-Za-z]{3}$",
            "type": "string",
            "description": "The currency of every price, as a three-letter code such as USD, EUR, GBP or JPY. Google converts the booking sites' prices.",
            "default": "USD"
          },
          "maxHotelsPerLocation": {
            "title": "Hotels per place",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many properties to take from each place. Google lists 20 per page and repeats some on later pages, so the Actor reads pages until it has this many different properties or Google has no new ones. Google's list for one place ends after about 700 to 850 different properties.",
            "default": 100
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "lowest_price",
              "highest_rating",
              "most_reviewed"
            ],
            "type": "string",
            "description": "The order Google lists the properties in.",
            "default": "relevance"
          },
          "includeOffers": {
            "title": "Every booking site's price",
            "type": "boolean",
            "description": "Also open each hotel's page and save the price of every booking site (Booking.com, Expedia, Agoda, the hotel's own site and others) with its link, plus the address, the phone and the amenities. One more request per hotel, so the run takes longer. The price per hotel stays the same.",
            "default": false
          },
          "minPrice": {
            "title": "Minimum price per night",
            "minimum": 0,
            "type": "integer",
            "description": "Only properties at this nightly price or more, in the chosen currency."
          },
          "maxPrice": {
            "title": "Maximum price per night",
            "minimum": 0,
            "type": "integer",
            "description": "Only properties at this nightly price or less, in the chosen currency."
          },
          "minRating": {
            "title": "Guest rating",
            "enum": [
              "any",
              "3.5",
              "4",
              "4.5"
            ],
            "type": "string",
            "description": "Only properties with at least this Google guest rating.",
            "default": "any"
          },
          "hotelClass": {
            "title": "Hotel class",
            "type": "array",
            "description": "Only hotels with these star ratings. Empty means any.",
            "items": {
              "type": "string",
              "enum": [
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "2-star",
                "3-star",
                "4-star",
                "5-star"
              ]
            },
            "default": []
          },
          "amenities": {
            "title": "Amenities",
            "type": "array",
            "description": "Only properties that have all of these.",
            "items": {
              "type": "string",
              "enum": [
                "free_wifi",
                "free_breakfast",
                "free_parking",
                "parking",
                "pool",
                "indoor_pool",
                "outdoor_pool",
                "hot_tub",
                "spa",
                "fitness_center",
                "restaurant",
                "bar",
                "room_service",
                "air_conditioned",
                "airport_shuttle",
                "beach_access",
                "kid_friendly",
                "pet_friendly",
                "casino"
              ],
              "enumTitles": [
                "Free Wi-Fi",
                "Free breakfast",
                "Free parking",
                "Parking",
                "Pool",
                "Indoor pool",
                "Outdoor pool",
                "Hot tub",
                "Spa",
                "Fitness center",
                "Restaurant",
                "Bar",
                "Room service",
                "Air-conditioned",
                "Airport shuttle",
                "Beach access",
                "Kid-friendly",
                "Pet-friendly",
                "Casino"
              ]
            },
            "default": []
          },
          "freeCancellation": {
            "title": "Free cancellation",
            "type": "boolean",
            "description": "Only properties with a free cancellation offer for these dates.",
            "default": false
          },
          "specialOffers": {
            "title": "Special offers",
            "type": "boolean",
            "description": "Only properties Google marks with a deal.",
            "default": false
          },
          "ecoCertified": {
            "title": "Eco-certified",
            "type": "boolean",
            "description": "Only properties with an eco certification.",
            "default": false
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language of names, descriptions and labels, as a code such as en, de, fr or pt-BR.",
            "default": "en"
          },
          "country": {
            "title": "Country",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "The market Google prices for, as a two-letter code such as us, gb or de. Taxes in the price do not follow it: Google decides that by where the request comes from, and on Apify servers prices come before taxes.",
            "default": "us"
          },
          "maxItems": {
            "title": "Results per run",
            "minimum": 1,
            "type": "integer",
            "description": "The run stops after saving this many priced rows in total.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}