{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Scraper: Prices, Ratings & Offers (No Browser)",
    "description": "Scrape Google Hotels by destination or hotel name: nightly and total price, star and guest ratings, amenities, photos and location. Optional per-provider offers with direct booking links. Plain HTTP, no browser. From $1.50 per 1,000 hotels.",
    "version": "0.1",
    "x-build-id": "v9rIZpIAZ8Y07fLPh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/subimpact~google-hotels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-subimpact-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/subimpact~google-hotels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-subimpact-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/subimpact~google-hotels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-subimpact-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": {
          "queries": {
            "title": "Search queries",
            "maxItems": 100,
            "type": "array",
            "description": "Destinations or hotel names to search on Google Hotels, one query per line. Examples: hotels in Paris, hotels in New York, Hotel d'Orsay Paris. Each query returns the first page of results, and more pages up to maxResultsPerQuery. Maximum 100 queries.",
            "items": {
              "type": "string"
            }
          },
          "checkInDate": {
            "title": "Check-in date",
            "type": "string",
            "description": "First night of the stay in YYYY-MM-DD format. Leave empty to use today + 30 days. It must not be in the past and must be within 330 days of today."
          },
          "checkOutDate": {
            "title": "Check-out date",
            "type": "string",
            "description": "Check-out date in YYYY-MM-DD format. Leave empty to use check-in + 2 nights. A stay can be from 1 to 30 nights."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of adults on the booking (1-10).",
            "default": 2
          },
          "childrenAges": {
            "title": "Children ages",
            "maxItems": 6,
            "uniqueItems": false,
            "type": "array",
            "description": "Ages of children staying, as a JSON array of integers 0-17, for example [8, 12]. Up to 6 children. Google uses the ages to price family rooms.",
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 17
            },
            "default": []
          },
          "currency": {
            "title": "Currency (ISO 4217)",
            "type": "string",
            "description": "Three-letter currency code for all prices, e.g. USD, GBP, EUR, MYR. Google Hotels accepts 71 codes; an unsupported code fails the run before any request. The code sets the numeric prices; display text is kept as Google renders it.",
            "default": "USD"
          },
          "language": {
            "title": "Language (hl)",
            "type": "string",
            "description": "Google interface language, e.g. en, de or en-GB. It controls labels such as the hotel class text.",
            "default": "en"
          },
          "countryCode": {
            "title": "Country code (gl)",
            "type": "string",
            "description": "Two-letter Google country setting, e.g. us, gb, fr. It affects which booking providers Google shows. With the default direct connection Google may also include providers for the server's own country; set this plus a proxy in the desired country for a local provider mix.",
            "default": "us"
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "lowest_price",
              "highest_rating",
              "most_reviewed"
            ],
            "type": "string",
            "description": "How Google orders the results.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Minimum price per night",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Optional lower bound per night in the chosen currency. Leave empty for no minimum."
          },
          "maxPrice": {
            "title": "Maximum price per night",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Optional upper bound per night in the chosen currency. Leave empty for no maximum."
          },
          "minGuestRating": {
            "title": "Minimum guest rating",
            "enum": [
              "3.5",
              "4.0",
              "4.5"
            ],
            "type": "string",
            "description": "Optional minimum guest review score. Leave empty for any rating."
          },
          "hotelClass": {
            "title": "Hotel class (stars)",
            "maxItems": 4,
            "uniqueItems": true,
            "type": "array",
            "description": "Optional star ratings to include, as a JSON array such as [4, 5]. Allowed values are 2, 3, 4 and 5. Leave empty for all classes.",
            "items": {
              "type": "integer",
              "minimum": 2,
              "maximum": 5
            }
          },
          "amenityFilters": {
            "title": "Amenity filter IDs (advanced)",
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "Advanced: Google amenity filter IDs as a JSON array of integers. These IDs use a different numbering from the amenityCodes in the output, so there is no friendly list yet. Leave empty unless you know the IDs you need.",
            "items": {
              "type": "integer",
              "minimum": 0
            }
          },
          "freeCancellationOnly": {
            "title": "Free cancellation only",
            "type": "boolean",
            "description": "Only show stays with free cancellation.",
            "default": false
          },
          "ecoCertifiedOnly": {
            "title": "Eco-certified only",
            "type": "boolean",
            "description": "Only show hotels Google marks as eco-certified.",
            "default": false
          },
          "propertyKinds": {
            "title": "Property kinds",
            "uniqueItems": true,
            "type": "array",
            "description": "Restrict rows to hotels and/or vacation rentals. Allowed values: hotel, vacation_rental. Leave empty for both.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerQuery": {
            "title": "Max hotels per query",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Upper bound on new hotels delivered for each query. Google returns about 18-20 new properties per page, and the run stops paging at this number.",
            "default": 20
          },
          "maxResults": {
            "title": "Max hotels per run",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Global cost ceiling: the run stops after this many hotel rows across all queries. At $0.0015 per hotel, 100 rows cost about $0.15. Error and empty diagnostic rows do not count.",
            "default": 100
          },
          "includeOffers": {
            "title": "Include per-provider offers ($)",
            "type": "boolean",
            "description": "Fetch each hotel's property page for provider prices, room rates and the direct booking link. Costs one extra request per hotel and an extra $0.0025 per hotel with at least one offer. Off by default.",
            "default": false
          },
          "maxOffersHotels": {
            "title": "Max hotels with offers",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Cap on property-page fetches per run when includeOffers is on. Hotels over the cap are delivered without offers and are not charged the offers event.",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Without it the actor tries a direct connection first and switches to the Apify datacenter proxy after a block. Set a residential proxy in the same country as countryCode if Google blocks datacenter IPs or you need the local booking-provider mix. Offers never force residential proxy; they follow this same setting."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}