{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Hotels Price Scraper — OTA Rate Parity Monitor",
    "description": "Scrape daily hotel prices on Google Hotels comparing Official Site vs OTAs (Booking.com, Expedia, Agoda, Hotels.com, Vio.com), compute exact rate parity gaps, and trigger delta alerts when an OTA undercuts your direct rate. Ultra-fast proxy-free HTTP engine (256 MB RAM).",
    "version": "1.0",
    "x-build-id": "KwMUMb9c7ONj3mjEv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vesper_studio~google-hotels-rate-parity-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vesper_studio-google-hotels-rate-parity-monitor",
        "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/vesper_studio~google-hotels-rate-parity-monitor/runs": {
      "post": {
        "operationId": "runs-sync-vesper_studio-google-hotels-rate-parity-monitor",
        "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/vesper_studio~google-hotels-rate-parity-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-vesper_studio-google-hotels-rate-parity-monitor",
        "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": [
          "queriesOrHotelUrls"
        ],
        "properties": {
          "queriesOrHotelUrls": {
            "title": "Hotels (Name + City) or Google Travel URLs",
            "type": "array",
            "description": "List of hotel names + cities (e.g. 'Pullman Paris Tour Eiffel', 'Marriott Marquis Times Square New York') or direct Google Travel Hotel URLs (https://www.google.com/travel/hotels/entity/...).",
            "default": [
              "Pullman Paris Tour Eiffel"
            ],
            "items": {
              "type": "string"
            }
          },
          "checkInDate": {
            "title": "Check-in Date (YYYY-MM-DD)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Starting check-in date in YYYY-MM-DD format. Leave empty on scheduled runs to automatically start 7 days from today.",
            "default": ""
          },
          "nights": {
            "title": "Length of Stay (Nights)",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of nights per stay check (checkOut = checkIn + nights).",
            "default": 1
          },
          "scanNextDays": {
            "title": "Rolling Horizon (Days to Scan)",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of consecutive check-in dates to scan starting from checkInDate (1 = single date, 7 / 14 / 30 = multi-day parity calendar scan).",
            "default": 1
          },
          "adults": {
            "title": "Adults per Room",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "Number of adult guests for room rate lookup.",
            "default": 2
          },
          "currency": {
            "title": "Display Currency",
            "enum": [
              "EUR",
              "USD",
              "GBP",
              "CHF",
              "CAD",
              "AUD",
              "JPY",
              "AED",
              "SGD"
            ],
            "type": "string",
            "description": "ISO 4217 currency code passed to Google Hotels (curr parameter).",
            "default": "EUR"
          },
          "countryCode": {
            "title": "Point of Sale Country (gl)",
            "enum": [
              "fr",
              "us",
              "gb",
              "de",
              "es",
              "it",
              "ch",
              "ca",
              "au",
              "jp",
              "ae",
              "sg"
            ],
            "type": "string",
            "description": "Two-letter country code (Google Hotels 'gl' parameter) controlling regional OTA visibility and point-of-sale pricing.",
            "default": "fr"
          },
          "language": {
            "title": "Interface Language (hl)",
            "enum": [
              "en",
              "fr",
              "de",
              "es",
              "it",
              "ja"
            ],
            "type": "string",
            "description": "Language code (Google Hotels 'hl' parameter) for hotel metadata and provider labels.",
            "default": "en"
          },
          "maxHotelsPerQuery": {
            "title": "Max Hotels per Search Query",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Keep at 1 for exact hotel rate parity checks. Increase (up to 20) only if passing destination queries like '5 star hotels Paris' to monitor a whole comp-set.",
            "default": 1
          },
          "onlyParityAlerts": {
            "title": "Delta Mode: Only Parity Violations & Changes (onlyParityAlerts)",
            "type": "boolean",
            "description": "When enabled, persists previous parity snapshots in Key-Value Store and outputs/alerts ONLY when an OTA undercuts the Official Site (new violation, new cheapest OTA, or deeper undercut than the prior run).",
            "default": false
          },
          "minParityGapPercent": {
            "title": "Minimum Undercut Threshold (%)",
            "minimum": 0,
            "maximum": 90,
            "type": "number",
            "description": "Minimum positive parityGapPercent required to flag isParityViolation=true (e.g. 2.0 ignores tiny currency rounding differences).",
            "default": 0
          },
          "webhookUrl": {
            "title": "Alert Webhook URL (Discord / Slack / n8n / Make)",
            "type": "string",
            "description": "Optional HTTPS webhook URL triggered whenever parity violations are detected in the run."
          },
          "maxConcurrency": {
            "title": "Max Concurrent Requests",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Maximum concurrent HTTP requests to Google Travel endpoints.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration (Optional)",
            "type": "object",
            "description": "Disabled by default. Chrome TLS impersonation + consent cookies work directly for typical schedules; enable Apify Proxy only if running high-volume multi-property sweeps from datacenter IPs.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}