# Expedia Hotels 4.0 (`jupri/expedia-hotels`) Actor

💫 All-In-One Scraper for🟡 Expedia.com 🔴 Hotels.com and other hotel website variants.

- **URL**: https://apify.com/jupri/expedia-hotels.md
- **Developed by:** [cat](https://apify.com/jupri) (community)
- **Categories:** Travel, Real estate
- **Stats:** 674 total users, 4 monthly users, 3.5% runs succeeded, 21 bookmarks
- **User rating**: 3.00 out of 5 stars

## Pricing

$40.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#rental-actors

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Welcome to Hotels Expedia Scraper

![dont be sad readme is here](https://raw.githubusercontent.com/JupriGH/resources/main/cats/catframe.png)

### 🍂 About Expedia.com

<img src="https://upload.wikimedia.org/wikipedia/commons/3/3b/Expedia_Logo_2023.svg" height="48">

**Expedia.com** is an online [travel agency](https://en.wikipedia.org/wiki/Travel_agency "Travel agency") owned by [Expedia Group](https://en.wikipedia.org/wiki/Expedia_Group "Expedia Group"), based in [Seattle](https://en.wikipedia.org/wiki/Seattle "Seattle").[\[1\]](https://en.wikipedia.org/wiki/Expedia#cite_note-1) The [website](https://en.wikipedia.org/wiki/Website "Website") and [mobile app](https://en.wikipedia.org/wiki/Mobile_app "Mobile app") can be used to book [airline](https://en.wikipedia.org/wiki/Airline "Airline") tickets, [hotel](https://en.wikipedia.org/wiki/Hotel "Hotel") reservations, [car rentals](https://en.wikipedia.org/wiki/Car_rental "Car rental"), [cruise ships](https://en.wikipedia.org/wiki/Cruise_ship "Cruise ship"), and vacation packages. Expedia.com was launched on October 22, 1996 by [Microsoft](https://en.wikipedia.org/wiki/Microsoft "Microsoft").[\[2\]](https://en.wikipedia.org/wiki/Expedia#cite_note-2)

### 🍂 About Hotels.com

<img src="https://upload.wikimedia.org/wikipedia/commons/1/16/Hotels.com_Logo_2023.svg" height="48">

**Hotels.com,**  **L.P.**[\[1\]](https://en.wikipedia.org/wiki/Hotels.com#cite_note-1) is an American website for booking hotel rooms online and by telephone. The company has 85 websites in 34 languages, and lists over 325,000 hotels in approximately 19,000 locations. Its inventory includes hotels and B\&Bs, and some condos and other types of commercial lodging. Hotels.com was established in 1991 as the Hotel Reservations Network (HRN). In 2001, it became part of [Expedia, Inc.](https://en.wikipedia.org/wiki/Expedia_Group "Expedia Group") and in 2002, changed its name to Hotels.com. The company is operated by Hotels.com LP, a [limited partnership](https://en.wikipedia.org/wiki/Limited_partnership "Limited partnership")  [subsidiary](https://en.wikipedia.org/wiki/Subsidiary "Subsidiary") located in [Dallas, Texas](https://en.wikipedia.org/wiki/Dallas,_Texas "Dallas, Texas"), in the United States.

### 🍂 About Orbitz.com

<img src="https://upload.wikimedia.org/wikipedia/en/8/8f/Orbitz_logo.svg" height="48">

**Orbitz.com** is a [travel fare aggregator website](https://en.wikipedia.org/wiki/Travel_website#Fare_aggregators_and_metasearch_engines) and travel [metasearch engine](https://en.wikipedia.org/wiki/Metasearch_engine "Metasearch engine"). The website is owned by Orbitz Worldwide, Inc., a subsidiary of [Expedia Group](https://en.wikipedia.org/wiki/Expedia_Group "Expedia Group"). It is headquartered in the [Citigroup Center, Chicago, Illinois](https://en.wikipedia.org/wiki/Citigroup_Center_\(Chicago\) "Citigroup Center (Chicago)").[\[2\]](https://en.wikipedia.org/wiki/Orbitz#cite_note-2)

### 🍂 Tutorial

#### 🍃 Parameters

| Paramater | Type | Values | Description |
|-|-|-|-|
| `location` | ***string*** | location / coordinate / hotel IDs | Search specific location
| `limit` | ***integer*** | number | Limit number of results
| `check_in` | ***string*** | year-month-date | Check in date
| `check_out` | ***string*** | year-month-date | Check out date
| `includes` | ***object*** |  | Additional Data

#### 🍃 *`location` Possible Values :*

| Format | Example | Description |
|-|-|-|
| `<place>` | `Bali` | **Place Name**: City, Country.
| `region:<region_id>` | | **Region** by ID
| `LAT,LON` | | Map Center **Coordinate**
| `<EXPEDIA-ID>` | `3210004` | **Expedia** Hotel IDs
| `<HOTELS-ID>` | `ho1234005` | **Hotels.com** Hotel IDs

#### 🍃 Additional Data

| Paramater | Type | Description |
|-|-|-|
| `includes:description` | ***boolean*** | Property Descriptions
| `includes:policies` | ***boolean*** | Property Policies
| `includes:amenities` | ***boolean*** | Complete Amenities
| `includes:gallery` | ***boolean*** | Complete Gallery
| `includes:faq` | ***boolean*** | Frequently Asked Questions
| `includes:location` | ***boolean*** | Location and Nearby POI's
| `includes:landmarks` | ***boolean*** | Nearby Landmarks
| `includes:offers` | ***boolean*** | Room Offers (More Detail Prices)
| `includes:calendar` | ***boolean*** | Lowest prices in the past 24 hours
| `includes:availability` | ***boolean*** | Availability Calendar
| `includes:review` | ***boolean*** | Hotel Reviews

### 🍂 Examples

#### Example #1: search by location

```yaml
{
	"location": "Europe",
	"limit": 10,
	"check_in": "2022-11-20",
	"check_out": "2022-11-25",
	"hotelname": "Hyatt"
}
```

#### Example #2: search by coordinate (latitude, longitude)

```yaml
{
	"location": "-7.288445, 112.676966",
	"limit": 10
}
```

#### Example #3: search by by hotel IDs

Hotel ID is numeric, multiple ID separated by space.

```yaml
{
	"location": "40144880 4636465 15704071 9056295 88101078",
	"limit": 10
}
```

### 🍂 Support

<img src="https://apify-uploads-prod.s3.us-east-1.amazonaws.com/5SxZhwYwpknFk8ek9-cat.gif" width="240">

Feel free to [reach out](https://console.apify.com/actors/pK2iIKVVxERtpwXMy/issues) to the developer for any issues or suggestions for improvement.

# Actor input Schema

## `prompt` (type: `string`):

No description

## `location` (type: `array`):

💡 <b>Where are you going ?</b><li>City/Region Name <i><code>example: "Alaska"</code></i></li><li>Region ID <i><code>example: "region:6047843"</code></i></li><li>Coordinates (latitude, longitude) <i><code>example: "36.778259,-119.417931"</code></i></li><li>Expedia Hotel IDs (numeric) separated by spaces</li>

## `example` (type: `string`):

💡 Location INPUT Examples

## `limit` (type: `integer`):

💡 Number of results (per-query)

## `sort` (type: `string`):

💡 Sorting by

## `site` (type: `string`):

💡 Region/Currency

## `language` (type: `string`):

💡 example: <code>en\_GB</code>

## `map_viewer` (type: `boolean`):

No description

## `includes:all` (type: `boolean`):

💡 Check All

## `includes:description` (type: `boolean`):

💡 Property Descriptions

## `includes:policies` (type: `boolean`):

💡 Property Policies

## `includes:amenities` (type: `boolean`):

💡 Complete Amenities

## `includes:faq` (type: `boolean`):

💡 Frequently Asked Questions

## `includes:location` (type: `boolean`):

💡 Location and Nearby Point of Interests

## `includes:landmarks` (type: `boolean`):

💡 Nearby Landmarks

## `includes:offers` (type: `boolean`):

💡 Room Offers

## `includes:calendar` (type: `boolean`):

💡 Lowest prices in the past 24 hours

## `includes:availability` (type: `integer`):

💡 Availability Calendar. Date range: TODAY until specific number of months ahead.

## `includes:gallery` (type: `string`):

💡 Complete Gallery

## `includes:review` (type: `boolean`):

💡 Reviews summary

## `includes:review_count` (type: `integer`):

💡 Number of Reviews <i><code>(default=3)</code></i>. To Filters or Search within reviews, please use <b>Reviews Filters</b> below.

## `review_search` (type: `string`):

💡 Search reviews

## `review_sort` (type: `string`):

💡 Reviews sorting

## `review_type` (type: `string`):

💡 Reviews Traveler Type

## `category_search` (type: `string`):

No description

## `types` (type: `array`):

No description

## `styles` (type: `array`):

No description

## `hotelname` (type: `string`):

💡 Search by property name <i>(eg. Best Western)</i>

## `hotelbrand` (type: `array`):

💡 Brand ID (must be digits)

## `amenities` (type: `array`):

No description

## `room_view` (type: `string`):

No description

## `meals` (type: `array`):

No description

## `traveler` (type: `array`):

No description

## `access` (type: `array`):

No description

## `check_in` (type: `string`):

YYYY-MM-DD

## `check_out` (type: `string`):

YYYY-MM-DD

## `flex_days` (type: `integer`):

💡 Flexible search (± days)

## `flex_unit` (type: `string`):

💡 How long do you want to stay?

## `flex_weekend` (type: `boolean`):

No description

## `flex_months` (type: `array`):

💡 When do you want to travel? <i>(this year months)</i>

## `adults:0` (type: `integer`):

💡 Number of adults

## `children:0` (type: `string`):

No description

## `adults:1` (type: `integer`):

💡 Number of adults

## `children:1` (type: `string`):

No description

## `adults:2` (type: `integer`):

💡 Number of adults

## `children:2` (type: `string`):

No description

## `adults:3` (type: `integer`):

💡 Number of adults

## `children:3` (type: `string`):

No description

## `adults:4` (type: `integer`):

💡 Number of adults

## `children:4` (type: `string`):

No description

## `adults:5` (type: `integer`):

💡 Number of adults

## `children:5` (type: `string`):

No description

## `adults:6` (type: `integer`):

💡 Number of adults

## `children:6` (type: `string`):

No description

## `adults:7` (type: `integer`):

💡 Number of adults

## `children:7` (type: `string`):

No description

## `price_mode` (type: `string`):

No description

## `min_price` (type: `integer`):

No description

## `max_price` (type: `integer`):

No description

## `payment` (type: `array`):

No description

## `rewards.vip` (type: `boolean`):

💡 Top-rated stays with member perks

## `rewards.member_only` (type: `boolean`):

💡 Get instant savings when you become a member

## `rewards.discounted_property` (type: `boolean`):

No description

## `star` (type: `array`):

No description

## `rating` (type: `string`):

No description

## `dev_proxy_config` (type: `object`):

💡 <b>Supported protocol:</b><br><br><b>HTTP(S), SOCKS5</b><br><code>{http|socks5}://{user:pass}@{hostname|ip-address}:port</code><br><br><b>Example</b>: <code>socks5://example.com:9000</code>

## `dev_custom_headers` (type: `array`):

💡 Additional HTTP Headers

## `dev_custom_cookies` (type: `array`):

💡 Additional HTTP Cookies

## `dev_transform_fields` (type: `array`):

💡 <b>Transform the resulting output. Select only needed fields.</b><br><br>For nested object use <b>DOT</b>. For example: <pre>address.streetAddress</pre><br>For nested array use <b>NUMBER</b> <i>(index of array element starting from index=0)</i>. For example: <pre>images.0.url</pre>

## `dev_dataset_name` (type: `string`):

💡 <b>Save results into custom named Dataset, use mask to customize dataset name</b><br><br><code>{ACTOR} = actor name<br>{DATE} = date (YYYYMMDD)<br>{TIME} = time (HHMMSS)</code><br><br>This masks can be used to autogenerate Dataset Name.<br><br>example: <i><code>data-{DATE}</code></i><br>Depending on today date the dataset name will be: <code>data-20230603</code><i><br><br>default: <code>data-{ACTOR}-{DATE}-{TIME}</code></i>

## `dev_dataset_clear` (type: `boolean`):

Clear Dataset before insert/update.

## `dev_no_strip` (type: `boolean`):

💡 Keep/Save empty values <i><code>(NULL, FALSE, empty ARRAY, empty OBJECT, empty STRING)</code></i>

## `dev_fileupload` (type: `string`):

💡 Upload your file and copy & paste the URL somewhere.

## Actor input object example

```json
{
  "location": [
    "Bali"
  ],
  "limit": 5
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `extras` (type: `string`):

No description

## `results` (type: `string`):

No description

## `mapViewer` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "location": [
        "Bali"
    ],
    "limit": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("jupri/expedia-hotels").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "location": ["Bali"],
    "limit": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("jupri/expedia-hotels").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "location": [
    "Bali"
  ],
  "limit": 5
}' |
apify call jupri/expedia-hotels --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jupri/expedia-hotels"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/pK2iIKVVxERtpwXMy/builds/Y1gLl9jURE5pKg0N3/openapi.json
