{
  "openapi": "3.0.1",
  "info": {
    "title": "Expedia Scraper: Hotels, Prices, Ratings and Reviews",
    "description": "Scrape Expedia hotels by destination and dates: name, star rating, guest rating, reviews count, price per night and total with taxes, amenities, area, address, coordinates and link. Reviews mode returns guest reviews. Hotels.com search links work. No login.",
    "version": "0.1",
    "x-build-id": "zRhFF55DtgOrw1tMT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/themineworks~expedia-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-themineworks-expedia-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/themineworks~expedia-scraper/runs": {
      "post": {
        "operationId": "runs-sync-themineworks-expedia-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/themineworks~expedia-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-themineworks-expedia-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": {
          "mode": {
            "title": "What to get",
            "enum": [
              "hotels",
              "reviews"
            ],
            "type": "string",
            "description": "hotels: one row per hotel with prices for your dates. reviews: one row per guest review of the hotels found (or of the hotel links and ids you give).",
            "default": "hotels"
          },
          "destinations": {
            "title": "Destinations",
            "type": "array",
            "description": "Cities, areas or landmarks, one per line, as you would type them in the Expedia search box. Example: London, New York, Bali, Times Square. Each destination is one search. You can also give an Expedia region id such as 2114.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Expedia or Hotels.com links (optional)",
            "type": "array",
            "description": "Search links copied from your browser, for example https://www.expedia.com/Hotel-Search?regionId=2114&startDate=2026-12-10&endDate=2026-12-12&adults=2 (their dates and adults are used), or hotel links such as https://www.expedia.com/London-Hotels-Strand-Palace-Hotel.h179.Hotel-Information.",
            "items": {
              "type": "string"
            }
          },
          "hotelIds": {
            "title": "Expedia hotel ids (optional)",
            "type": "array",
            "description": "Expedia hotel ids, one per line: the number after .h in a hotel link, e.g. 179. Useful for price tracking of fixed hotels and for reviews.",
            "items": {
              "type": "string"
            }
          },
          "checkIn": {
            "title": "Check-in date",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "YYYY-MM-DD. Empty: 30 days from today. A past date moves to 30 days from today."
          },
          "checkOut": {
            "title": "Check-out date",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "YYYY-MM-DD. Empty: 2 nights after check-in. At most 28 nights."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 14,
            "type": "integer",
            "description": "Guests aged 18 or more, 1 to 14.",
            "default": 2
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Rooms to book; the adults are split across them.",
            "default": 1
          },
          "site": {
            "title": "Site",
            "enum": [
              "expedia.com",
              "expedia.co.uk",
              "expedia.ca",
              "expedia.com.au",
              "expedia.co.in",
              "expedia.com.sg",
              "expedia.fr",
              "expedia.es",
              "expedia.mx"
            ],
            "type": "string",
            "description": "Which Expedia country site to read prices from; each shows its own currency and links. Hotels.com sells the same hotels under the same hotel ids: paste Hotels.com search links in startUrls and they are read through Expedia.",
            "default": "expedia.com"
          },
          "currency": {
            "title": "Currency (optional)",
            "type": "string",
            "description": "Three letter code such as USD, EUR or GBP. Empty: the site's own currency."
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "RECOMMENDED",
              "PRICE_LOW_TO_HIGH",
              "PRICE_HIGH_TO_LOW",
              "REVIEW",
              "PROPERTY_CLASS",
              "DISTANCE"
            ],
            "type": "string",
            "description": "Order of the search results.",
            "default": "RECOMMENDED"
          },
          "maxItems": {
            "title": "Max hotels per destination",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "The most hotels to return for each destination or search link, 1 to 1,000. Expedia lists about 500 for a big city. In reviews mode this is how many hotels per destination get their reviews read.",
            "default": 50
          },
          "includeDetails": {
            "title": "Add star rating and full address",
            "type": "boolean",
            "description": "On: each hotel's own record is read too, for the star rating, street address, postal code, country and the top amenities. Off: rows come from the search only (no star rating), which is faster. Same price either way.",
            "default": true
          },
          "maxReviewsPerHotel": {
            "title": "Max reviews per hotel (reviews mode)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Reviews mode only: the most reviews to return per hotel, 1 to 5,000.",
            "default": 50
          },
          "reviewsSort": {
            "title": "Review order (reviews mode)",
            "enum": [
              "MOST_RELEVANT",
              "NEWEST",
              "HIGHEST_RATING",
              "LOWEST_RATING"
            ],
            "type": "string",
            "description": "Reviews mode only: which reviews come first.",
            "default": "MOST_RELEVANT"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Expedia refuses datacenter IPs, so Apify residential proxy is the default. Leave it as it is.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}