{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Scraper API 💰$0.7/1k",
    "description": "💰$0.7/1k — Scrape Google Hotels: nightly & total prices, ratings, reviews, deals, star class, coordinates, address, phone & website. One structured row per property (JSON/CSV). Track price changes across runs, enrich every row from Google's own data. API + MCP for AI agents.",
    "version": "0.1",
    "x-build-id": "gfra7iCSQImmo1L33"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/blackfalcondata~google-hotels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-blackfalcondata-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/blackfalcondata~google-hotels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-blackfalcondata-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/blackfalcondata~google-hotels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-blackfalcondata-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": {
          "destination": {
            "title": "🏨 Destination",
            "type": "string",
            "description": "Where to search — a city, an area, or a landmark (e.g. Paris, or hotels near Times Square, New York)."
          },
          "checkIn": {
            "title": "📅 Check-in",
            "type": "string",
            "description": "Check-in date (YYYY-MM-DD)."
          },
          "checkOut": {
            "title": "Check-out",
            "type": "string",
            "description": "Check-out date (YYYY-MM-DD). Must be after check-in."
          },
          "adults": {
            "title": "👤 Adults",
            "minimum": 1,
            "type": "integer",
            "description": "Number of adult guests.",
            "default": 2
          },
          "childrenAges": {
            "title": "Children's ages",
            "type": "array",
            "description": "One age (0–17) per child — Google Hotels prices each child by age, so the list is also the number of children. Leave empty for adults only."
          },
          "market": {
            "title": "🌎 Market",
            "type": "string",
            "description": "Point-of-sale country (e.g. us, gb, de, jp). Google prices by this location, so it also decides the currency you see — the currency each hotel was priced in is reported on every record. There is no separate currency control: Google Hotels ignores one.",
            "default": "us"
          },
          "language": {
            "title": "🌐 Language",
            "type": "string",
            "description": "Language code (e.g., en, de, fr).",
            "default": "en"
          },
          "searches": {
            "title": "🗂️ Batch Searches",
            "type": "array",
            "description": "Search several destinations or date ranges in one run. Each entry takes the same fields as a single search: destination, checkIn, checkOut, and optionally market / language."
          },
          "minPrice": {
            "title": "💰 Min price (per night)",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep hotels priced at or above this amount per night. In the currency Google prices the search in (see each record's currency). Leave empty for no lower bound."
          },
          "maxPrice": {
            "title": "💰 Max price (per night)",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep hotels priced at or below this amount per night. Leave empty for no upper bound."
          },
          "minRating": {
            "title": "⭐ Min guest rating",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Only keep hotels with a guest rating at or above this value (0–5)."
          },
          "minHotelClass": {
            "title": "🏨 Min star class",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Only keep hotels of at least this star class (1–5)."
          },
          "propertyType": {
            "title": "🏷️ Property type contains",
            "type": "string",
            "description": "Only keep properties whose type matches this text (e.g. hotel, hostel, apartment, guest house). Case-insensitive. Leave empty for all types."
          },
          "sortBy": {
            "title": "↕️ Sort results by",
            "enum": [
              "relevance",
              "price_low",
              "price_high",
              "rating_high",
              "reviews_most"
            ],
            "type": "string",
            "description": "Order the output. 'Relevance' keeps Google's own ranking.",
            "default": "relevance"
          },
          "maxItems": {
            "title": "⚙️ Max Results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of hotels to return across the whole run. Leave empty for unlimited."
          },
          "includeReviews": {
            "title": "🗣️ Include full property details",
            "type": "boolean",
            "description": "Collect each hotel's full detail profile: the full street address, phone and Google Maps link, room types (with bed configuration and photos), the neighbourhood write-up, nearby rated landmarks, and richer review data (guest highlights, per-source review counts, positive/negative sentiment). Note the overall score, star breakdown and guest sentiment by category are already included for free on every hotel — this adds the deeper per-hotel detail. It does extra work per hotel, so runs take longer and it is billed as a separate per-hotel add-on. Leave off for prices and the free profile only.",
            "default": false
          },
          "excludeEmptyFields": {
            "title": "🧹 Exclude empty fields from output",
            "type": "boolean",
            "description": "Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards.",
            "default": false
          },
          "incremental": {
            "title": "🔁 Incremental tracking",
            "type": "boolean",
            "description": "Track NEW / UPDATED / EXPIRED hotels across runs (price-drop detection).",
            "default": false
          },
          "emitUnchanged": {
            "title": "♻️ Emit unchanged",
            "type": "boolean",
            "description": "Also output hotels whose price, rating and availability did not change since the last run.",
            "default": false
          },
          "stateKey": {
            "title": "🗝️ Tracking namespace",
            "type": "string",
            "description": "Optional. Pin a name to share one incremental tracking history across runs. Leave empty and each distinct search keeps its own isolated history automatically."
          },
          "telegramToken": {
            "title": "🔑 Telegram Bot Token",
            "type": "string",
            "description": "Telegram bot token (from @BotFather). Required for Telegram notifications."
          },
          "telegramChatId": {
            "title": "💬 Telegram Chat ID",
            "type": "string",
            "description": "Telegram chat or channel ID where alerts are sent."
          },
          "discordWebhookUrl": {
            "title": "🎮 Discord Webhook URL",
            "type": "string",
            "description": "Discord incoming webhook URL."
          },
          "slackWebhookUrl": {
            "title": "💼 Slack Webhook URL",
            "type": "string",
            "description": "Slack incoming webhook URL."
          },
          "webhookUrl": {
            "title": "🪝 Generic Webhook URL",
            "type": "string",
            "description": "Universal escape hatch for n8n / Make / Zapier / custom HTTP backends. Receives a JSON POST per run."
          },
          "notificationLimit": {
            "title": "📊 Max Items Per Notification",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of hotels included in each notification message (1–20).",
            "default": 5
          },
          "notifyOnlyChanges": {
            "title": "🔄 Notify Only New/Updated",
            "type": "boolean",
            "description": "When Incremental tracking is on, only notify for NEW and UPDATED hotels.",
            "default": false
          },
          "appConnector": {
            "title": "📤 Send results to a connected app",
            "type": "string",
            "description": "Optional. Pick a connected app under Settings → API & Integrations to receive your results. A run-summary is written to the connected app; support is best-effort as Apify expands its connector catalog."
          },
          "mcpIssueTeam": {
            "title": "🏷️ Issue tracker team",
            "type": "string",
            "description": "Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}