{
  "openapi": "3.0.1",
  "info": {
    "title": "Expedia Reviews Scraper: Hotel Ratings, Responses",
    "description": "Scrape Expedia reviews of hotels and vacation rentals by link (Hotels.com reviews and Vrbo links too), property id, name or place, every review, no login. Each review: rating, text, stay, traveled with, liked, disliked, response from management. JSON, CSV, real-time API; pay per review.",
    "version": "0.1",
    "x-build-id": "dW37YX7XsNdIcxVg1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation_craft~expedia-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation_craft-expedia-reviews-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/automation_craft~expedia-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation_craft-expedia-reviews-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/automation_craft~expedia-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation_craft-expedia-reviews-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": {
          "startUrls": {
            "title": "Expedia links",
            "type": "array",
            "description": "Property links of Expedia (any country site, Orbitz, Travelocity, CheapTickets, Wotif; \"...h75198855.Hotel-Information\" or \".Hotel-Reviews\"), Hotels.com (/ho136900/ or .h<id>.), Vrbo (www.vrbo.com/1043021), Expedia app share links (expe.onelink.me) and Expedia search links (their properties in Expedia's order). Rows of another Actor's dataset work too: any object with a \"url\"; its \"userData\" comes back as \"customData\" on every row of that property.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "propertyIds": {
            "title": "Property ids",
            "type": "array",
            "description": "Expedia property ids (the number after \".h\" in a property link, for example 75198855). Hotels.com and Vrbo pages of the same property share it.",
            "items": {
              "type": "string"
            }
          },
          "hotelNames": {
            "title": "Hotel names",
            "type": "array",
            "description": "Hotel or rental names as Expedia shows them, with the city when the name is common (for example \"Hotel Monte Hermana Tokyo\"). A name is read only when exactly one property Expedia's search box suggests holds every word; otherwise a free row lists the candidates.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Places",
            "type": "array",
            "description": "City, neighbourhood or landmark names, read through Expedia's own search box (for example \"Paris, France\"); the reviews of the place's first properties in Expedia's order are read (see \"maxHotelsPerSearch\").",
            "items": {
              "type": "string"
            }
          },
          "propertyName": {
            "title": "Property name contains",
            "type": "string",
            "description": "Expedia's own property name filter for the places and search links of the run (for example \"Hilton\" with the place \"Belgium\"): only properties whose name holds it are listed."
          },
          "maxHotelsPerSearch": {
            "title": "Properties per place or search link",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many properties of each place or search link are read, in Expedia's order (1 to 500; 10 when left empty). Expedia shows about 500 properties per search."
          },
          "maxReviewsPerHotel": {
            "title": "Reviews per property",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "The most reviews read per property (0 reads every review Expedia shows; 100 when left empty)."
          },
          "maxItems": {
            "title": "Reviews per run",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "The most reviews the whole run delivers. One run keeps at most 300,000 reviews and 20,000 properties."
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "newest",
              "mostRelevant",
              "highest",
              "lowest"
            ],
            "type": "string",
            "description": "The order Expedia gives the reviews in (newest first when left empty). Expedia offers no oldest first order."
          },
          "reviewsFrom": {
            "title": "Posted on or after",
            "type": "string",
            "description": "Only reviews posted on or after this date: YYYY-MM-DD, or an age such as \"7 days\", \"2 weeks\", \"3 months\" or \"1 year\" counted back from the run's day. Newest first, the walk stops at the first older review."
          },
          "reviewsTo": {
            "title": "Posted on or before",
            "type": "string",
            "description": "Only reviews posted on or before this date: YYYY-MM-DD, or an age such as \"1 month\" counted back from the run's day. Newest first, the walk goes straight to the page where this date begins."
          },
          "travellerType": {
            "title": "Traveller type",
            "enum": [
              "business",
              "couples",
              "families",
              "familiesWithYoungChildren",
              "groups",
              "solo",
              "withPets"
            ],
            "type": "string",
            "description": "Expedia's own traveller type filter, one type (Expedia applies one at a time)."
          },
          "ratingBands": {
            "title": "Rating bands",
            "type": "array",
            "description": "Expedia's own rating bands, one or several (review scores are 10, 8, 6, 4 or 2 out of 10, one per band).",
            "items": {
              "type": "string",
              "enum": [
                "excellent",
                "good",
                "okay",
                "poor",
                "terrible"
              ],
              "enumTitles": [
                "Excellent (10 out of 10)",
                "Good (8)",
                "Okay (6)",
                "Poor (4)",
                "Terrible (2)"
              ]
            }
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Only reviews rated at least this (out of 10)."
          },
          "maxRating": {
            "title": "Maximum rating",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Only reviews rated at most this (out of 10). With \"minRating\", a range: 1 to 4 reads the poor and terrible reviews."
          },
          "withPhotosOnly": {
            "title": "With guest photos only",
            "type": "boolean",
            "description": "Expedia's own filter: only reviews that carry guest photos (about 2 percent of reviews)."
          },
          "withResponseOnly": {
            "title": "With a property response only",
            "type": "boolean",
            "description": "Only reviews the property answered."
          },
          "onlyWithText": {
            "title": "With text only",
            "type": "boolean",
            "description": "Leave out reviews that are a score alone (about a third of Expedia's reviews have no text)."
          },
          "minTextLength": {
            "title": "Minimum text length",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Only reviews whose title and text run to at least this many characters."
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Only reviews holding every word of this text in their title, text or liked and disliked themes (up to 100 characters, any case; checked on each review)."
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Two letter language codes (en, fr, de, ja ...): only reviews Expedia files under one of them. A review is filed under the site's language unless Expedia offers to translate it, which names its own language.",
            "items": {
              "type": "string"
            }
          },
          "site": {
            "title": "Expedia site",
            "enum": [
              "expedia",
              "expediaUk",
              "expediaCa",
              "expediaDe",
              "expediaIt",
              "expediaEs",
              "expediaNl",
              "expediaMx",
              "expediaSg",
              "expediaFr",
              "expediaAu",
              "expediaIn",
              "expediaJp",
              "expediaNz",
              "expediaIe",
              "expediaSe",
              "expediaAt",
              "expediaCh",
              "expediaBe",
              "expediaDk",
              "expediaNo",
              "expediaFi",
              "expediaBr",
              "expediaAr",
              "expediaKr",
              "expediaTw",
              "expediaHk",
              "expediaMy",
              "expediaTh",
              "expediaId",
              "expediaPh",
              "expediaVn",
              "expediaAe",
              "expediaSa",
              "orbitz",
              "cheaptickets",
              "travelocity",
              "travelocityCa",
              "wotif",
              "wotifNz"
            ],
            "type": "string",
            "description": "The Expedia Group site whose labels and date formats the rows carry (Expedia (United States) when left empty). A property's reviews are the same on every site."
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "reviews",
              "nested"
            ],
            "type": "string",
            "description": "One row per review (and one hotel row per property), or one row per property with its reviews inside (at most 500 a property; properties are then read one at a time)."
          },
          "hotelSummaryOnly": {
            "title": "Hotel summaries only",
            "type": "boolean",
            "description": "One row per property and no reviews: its guest rating, review count, rating histogram, category ratings and Expedia's AI review summary."
          },
          "includeHotelDetails": {
            "title": "Hotel details",
            "type": "boolean",
            "description": "Add the property's description, About sheet (amenities and policies), highlights, photos by category and videos to its hotel row, at no extra charge."
          },
          "maxHotelPhotos": {
            "title": "Hotel photos",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "With \"includeHotelDetails\", at most this many of the property's photos (every photo Expedia shows when left empty)."
          },
          "includeHelpfulVotes": {
            "title": "Helpful votes",
            "type": "boolean",
            "description": "Add each review's helpful vote count and its own language, read from a second list Expedia serves (newest first only; a few of the newest reviews are not on it and keep no count)."
          },
          "includeReviewMarkdown": {
            "title": "Review as Markdown",
            "type": "boolean",
            "description": "Add a \"markdown\" field to each review: its title, score, date, author, stay, text, liked and disliked themes and the property's responses, ready for a language model."
          },
          "categoryScoresOnEveryReview": {
            "title": "Category ratings on every review",
            "type": "boolean",
            "description": "Copy the property's category ratings (cleanliness, staff and service, amenities, condition) onto each review row."
          },
          "includeRawReview": {
            "title": "Raw review",
            "type": "boolean",
            "description": "Add the review exactly as Expedia served it (\"raw\") to each review row."
          },
          "outputFields": {
            "title": "Review fields to keep",
            "type": "array",
            "description": "Keep only these fields of each review row (for example rating, text, date, author); \"type\", \"id\", \"propertyId\", \"reviewId\" and \"customData\" are always kept. Empty keeps every field.",
            "items": {
              "type": "string"
            }
          },
          "maxConcurrency": {
            "title": "Properties at once",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "How many properties are read side by side (3 when left empty; one at a time with the nested format or helpful votes)."
          },
          "maxRequestRetries": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "How many times a request Expedia did not answer is asked again (3 when left empty)."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave empty: the run reads Expedia from its own address and, when Expedia refuses it, from one residential exit in the site's country (included in the price). You may give your own http://, https:// or socks5:// proxy links instead, or start on Apify's residential proxy."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}