{
  "openapi": "3.0.1",
  "info": {
    "title": "Travel & Hotel Intelligence",
    "description": "A unified Apify actor that scrapes hotel and short-let pricing from Airbnb, Booking.com, Google Hotels, and Trivago, returning all records in a single normalized schema. This tool is designed for rate shopping, price-comparison dashboards, and revenue-management feeds.",
    "version": "0.0",
    "x-build-id": "ii4ZS62fLxCPGlWNo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moving_beacon-owner1~travel-hotel-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moving_beacon-owner1-travel-hotel-intelligence",
        "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/moving_beacon-owner1~travel-hotel-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-moving_beacon-owner1-travel-hotel-intelligence",
        "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/moving_beacon-owner1~travel-hotel-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-moving_beacon-owner1-travel-hotel-intelligence",
        "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": {
          "platform": {
            "title": "Platform",
            "enum": [
              "airbnb",
              "booking-search",
              "booking-calendar",
              "google",
              "trivago"
            ],
            "type": "string",
            "description": "Which scraper to run. Auto-detected from URL if omitted."
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "List of listing / search URLs. Required for Airbnb listing mode, Booking.com (both modes), Trivago (single).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchUrl": {
            "title": "Airbnb search URL",
            "type": "string",
            "description": "Airbnb search results URL — listings will be harvested by walking pagination."
          },
          "startUrl": {
            "title": "Trivago search URL",
            "type": "string",
            "description": "Trivago search results URL — sets destination + filters; pricing is replayed via API."
          },
          "location": {
            "title": "Google Hotels — location",
            "type": "string",
            "description": "Free-text destination (e.g. 'London', 'Paris 5th arr.')."
          },
          "numberOfLinks": {
            "title": "Airbnb — listings to collect",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of unique /rooms/ URLs to harvest from the Airbnb search results.",
            "default": 20
          },
          "checkInDate": {
            "title": "First check-in date",
            "type": "string",
            "description": "YYYY-MM-DD. Defaults to today. Used by the Airbnb scraper as the first of `numberOfDays` rolling start dates."
          },
          "startDate": {
            "title": "Booking search — start date",
            "type": "string",
            "description": "YYYY-MM-DD. Defaults to today. First check-in date for the Booking.com search scraper."
          },
          "numberOfDays": {
            "title": "Number of consecutive check-in dates (Airbnb)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "How many rolling start dates to query. With stayNights=1 this maps 1:1 to nights; with stayNights>1 each window slides one day forward.",
            "default": 30
          },
          "days": {
            "title": "Number of consecutive days (Booking search / Trivago)",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "How many consecutive check-in dates to scan for the Booking search and Trivago scrapers.",
            "default": 7
          },
          "stayNights": {
            "title": "Stay length (nights)",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Number of nights per booking window (Airbnb only). Booking and Trivago always use 1 night.",
            "default": 1
          },
          "targetMonth": {
            "title": "Booking calendar — target month",
            "type": "string",
            "description": "Calendar pagination stops once this month is reached. Format 'YYYY-MM' or 'December 2026'."
          },
          "pages": {
            "title": "Google Hotels — pages",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many pages of Google Travel results to paginate through.",
            "default": 5
          },
          "hotelClass": {
            "title": "Google Hotels — star filter",
            "enum": [
              "any",
              "class_2",
              "class_3",
              "class_4",
              "class_5"
            ],
            "type": "string",
            "description": "Restrict Google Travel results to hotels of the given star rating, or 'any' for no filter.",
            "default": "any"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "ISO code (USD, GBP, EUR, …). Used both as a fetch parameter and a fallback when parsing price strings.",
            "default": "USD"
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Number of adults in the booking party (Airbnb and Booking search).",
            "default": 2
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Number of children in the booking party (Airbnb only).",
            "default": 0
          },
          "pets": {
            "title": "Pets",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Number of pets in the booking party (Airbnb only — affects nightly price on pet-friendly listings).",
            "default": 0
          },
          "concurrency": {
            "title": "Airbnb — concurrent API requests",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many Airbnb PDP API calls to run in parallel. Raise for speed, lower if you start seeing rate-limit errors.",
            "default": 6
          },
          "concurrentJobs": {
            "title": "Concurrent jobs",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many of the jobs[] entries to run in parallel. Each platform spins its own browser, so don't push this high.",
            "default": 1
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Recommended for Booking.com search mode at any meaningful volume.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}