{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Search API - Prices & Booking Sources",
    "description": "Search Google Hotels prices, ratings, amenities and locations. Paginate without duplicates, export CSV-ready hotel rows, and compare booking-site offers.",
    "version": "1.0",
    "x-build-id": "dNaAPKJ9cCZGDU2A6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gauravlabs~google-hotels-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gauravlabs-google-hotels-api",
        "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/gauravlabs~google-hotels-api/runs": {
      "post": {
        "operationId": "runs-sync-gauravlabs-google-hotels-api",
        "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/gauravlabs~google-hotels-api/run-sync": {
      "post": {
        "operationId": "run-sync-gauravlabs-google-hotels-api",
        "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": [
          "checkInDate",
          "checkOutDate"
        ],
        "properties": {
          "query": {
            "title": "Destination — e.g. Paris hotels",
            "type": "string",
            "description": "Use Paris hotels, Delhi hotels, Dubai hotels or Tokyo hotels. Simple city queries work best."
          },
          "checkInDate": {
            "title": "Check-in date",
            "type": "string",
            "description": "YYYY-MM-DD or relative to today, e.g. +14d. Today or later."
          },
          "checkOutDate": {
            "title": "Check-out date",
            "type": "string",
            "description": "YYYY-MM-DD or relative to today, e.g. +16d. Must be after check-in."
          },
          "outputMode": {
            "title": "Dataset format",
            "enum": [
              "summary",
              "hotels"
            ],
            "type": "string",
            "description": "hotels gives one export-ready row per hotel. summary preserves the original search response. OUTPUT always contains the full result.",
            "default": "summary"
          },
          "maxPages": {
            "title": "Maximum search pages",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Auto-pagination cap. Each successfully retrieved page is charged once. Default 1; up to 50.",
            "default": 1
          },
          "maxHotels": {
            "title": "Maximum unique hotels",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop after this many unique hotels; multiple pages may be required.",
            "default": 20
          },
          "includeBookingSources": {
            "title": "Retrieve booking-site prices",
            "type": "boolean",
            "description": "Fetch per-vendor offers after listing. Each successful hotel detail lookup adds one request charge.",
            "default": false
          },
          "maxDetails": {
            "title": "Maximum booking-site lookups",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Limits extra detail requests when booking-site prices are enabled.",
            "default": 5
          },
          "detailToken": {
            "title": "Property detail token",
            "type": "string",
            "description": "Optional token from a previous listing result. When supplied, retrieves booking offers for that property."
          },
          "hl": {
            "title": "Language",
            "type": "string",
            "description": "Language code for returned content, e.g. en.",
            "default": "en"
          },
          "gl": {
            "title": "Country",
            "type": "string",
            "description": "Country code used for local results, e.g. us.",
            "default": "us"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Currency code for prices, e.g. USD.",
            "default": "USD"
          },
          "sortBy": {
            "title": "Sort by",
            "minimum": 0,
            "maximum": 13,
            "type": "integer",
            "description": "0: relevance, 3: lowest price, 8: highest rating, 13: most reviewed.",
            "default": 0
          },
          "minPrice": {
            "title": "Minimum nightly price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum nightly price in the selected currency."
          },
          "maxPrice": {
            "title": "Maximum nightly price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum nightly price in the selected currency."
          },
          "rating": {
            "title": "Minimum rating",
            "minimum": 7,
            "maximum": 9,
            "type": "integer",
            "description": "Optional minimum rating: 7, 8, or 9."
          },
          "hotelClass": {
            "title": "Hotel classes",
            "type": "string",
            "description": "Optional comma-separated star ratings, for example 4,5."
          },
          "amenities": {
            "title": "Amenities",
            "type": "string",
            "description": "Optional comma-separated amenity codes, for example 22 for a pool."
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "string",
            "description": "Optional comma-separated property type codes; use 12 for vacation rentals."
          },
          "freeCancellation": {
            "title": "Free cancellation",
            "type": "boolean",
            "description": "Only return properties with free cancellation.",
            "default": false
          },
          "ecoCertified": {
            "title": "Eco-certified",
            "type": "boolean",
            "description": "Only return eco-certified properties.",
            "default": false
          },
          "specialOffers": {
            "title": "Special offers",
            "type": "boolean",
            "description": "Only return properties with special offers.",
            "default": false
          },
          "nextPageToken": {
            "title": "Next page token",
            "type": "string",
            "description": "Optional pagination token from the previous listing response."
          },
          "limit": {
            "title": "Result limit",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum listing results to return (1-20).",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}