# Expedia Hotel & Flight Scraper (`rl1987/expedia-api-scraper`) Actor

Scrapes Expedia hotel search with prices, ratings, amenities, photos and guest reviews, plus flight search with fares and journeys, from the Expedia mobile GraphQL API. Read-only public travel data.

- **URL**: https://apify.com/rl1987/expedia-api-scraper.md
- **Developed by:** [R.L.](https://apify.com/rl1987) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 hotels

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## 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

## Expedia Hotel & Flight Scraper 🏨✈️ — hotel prices, ratings, amenities, photos, guest reviews and flight fares

**Expedia Hotel & Flight Scraper** — Scrapes Expedia hotel search with prices, ratings, amenities, photos and guest reviews, plus flight search with fares and journeys, from the Expedia mobile GraphQL API. Read-only public travel data. It reads Expedia's own API directly, so it's **fast, reliable and complete** — no flaky HTML parsing, no headless browser. Export to **JSON, CSV, Excel, or an API**.

***

#### Hotel prices are display strings

Expedia returns a price as text (`"$1,154 total"`), never a number. Records keep that original
string in `price_display` **and** a parsed numeric `price_total` with `currency`, so rows sort
correctly without losing the "total"/per-night wording — which changes what the number means.

#### Optional extras

- **`includeDetails`** — amenities, photo gallery, rating and fees. One extra API call per hotel,
  so it is slower; a failure on one hotel never loses that hotel's row.
- **`includeReviews`** — recent guest reviews with score, date and author.

Some properties genuinely have no rating summary; those rows carry `rating: null` rather than a
fabricated value.

### ✨ Why use this Expedia Hotel & Flight Scraper?

- 🟢 **No code required** — set your input, click **Start**, download your data.
- ⚡ **Fast & accurate** — reads Expedia's own private API and returns structured JSON, not scraped HTML.
- 🧾 **Rich, structured data** — every field below, clean and ready to use.
- 🏨 **Deep hotel detail on demand** — amenities, the full photo gallery, rating and mandatory
  fees, fetched only when you ask for them.
- 💬 **Guest reviews** — text, score, date, author and stay length per review.
- ✈️ **Flights too** — switch `searchType` to `flights` for fares, airlines and journey times.
- 💸 **Transparent pay-per-result pricing** — pay only for the rows you get.
- 📤 **Export anywhere** — JSON, CSV, Excel, XML, or pull it live via the Apify API.

***

### 🎯 What can you do with Expedia data?

- **Market & competitor research** — analyse Expedia products at scale.
- **Price & availability monitoring** — track changes over time.
- **Data science & trend analysis** — build clean datasets.
- **Lead generation & enrichment** — feed Expedia data into your own tools.

***

### 📥 What data does the Expedia Hotel & Flight Scraper extract?

Each row includes: `type`, `destination`, `region_id`, `checkin`, `checkout`, `hotel_id`, `hotel_name`, `url`, `price_display`, `price_total`, `currency`, `image`, `rating`, `rating_text` …and more. See the full **Data table** below.

***

### 🚀 How to scrape Expedia (3 steps)

1. **Set your input** — provide `searchType` or `destination` (see the table below; defaults work out of the box).
2. **Pick options** — filters, a `proxyConfiguration`, and a `maxItems` cap.
3. **Run & export** — click **Start**, then download the dataset as JSON/CSV/Excel or fetch it via the API.

***

### ⚙️ Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `searchType` | enum | `hotels` | Hotels or flights. — one of `hotels`, `flights` |
| `destination` | string | `Copenhagen` | For hotels: a city or area name, e.g. "Copenhagen". For flights: the destination airport IATA code, e.g. JFK. |
| `origin` | string | – | Origin airport IATA code, e.g. SEA. Ignored for hotel searches. |
| `checkIn` | string | – | Hotel check-in, or flight departure date. Pick a date or use a relative value like "30 days". Empty = 30 days from today. |
| `checkOut` | string | – | Hotel check-out, or flight return date (leave empty for one-way). Empty for hotels = 3 nights after check-in. |
| `adults` | integer | `2` | Number of adult guests or passengers. |
| `includeDetails` | boolean | `false` | Fetch amenities, photo gallery, rating and fees for each hotel. Slower and costs one extra API call per hotel. |
| `includeReviews` | boolean | `false` | Attach recent guest reviews to each hotel. |
| `reviewsPerHotel` | integer | `5` | How many guest reviews to attach when reviews are enabled. |
| `maxItems` | integer | `100` | 0 = all results. |
| `proxyConfiguration` | object | Apify Proxy | Route requests through a proxy (Apify Proxy by default). |

#### Example input

```jsonc
{
  "searchType": "hotels",
  "destination": "Copenhagen",
  "adults": 2,
  "includeDetails": false,
  "includeReviews": false,
  "reviewsPerHotel": 5,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

***

### 📤 Output

Each result is a JSON object like this:

```jsonc
{
  "type": "hotel",
  "destination": "Copenhagen City Centre, Copenhagen, Hovedstaden, Denmark",
  "region_id": "6051779",
  "checkin": "2026-09-24",
  "checkout": "2026-09-27",
  "hotel_id": "25382",
  "hotel_name": "Radisson Collection Royal Hotel, Copenhagen",
  "url": "https://www.expedia.com/h25382.Hotel-Information",
  "price_display": "$1,277 total",
  "price_total": 1277.0,
  "currency": "USD",
  "image": "https://mediaim.expedia.com/lodging/1000000/30000/25400/25382/a5ccf8c1.jpg",
  "rating": null,
  "rating_text": null,
  "review_count": null,
  "amenities": null,
  "images": null,
  "fees": null,
  "reviews": null,
  "origin": null,
  "departure_date": null,
  "return_date": null,
  "airlines": null,
  "duration_minutes": null,
  "stops": null,
  "offer_id": null
}
```

***

### 🧾 Data table

| Field | Type | Description |
| --- | --- | --- |
| `type` | text | Record type |
| `destination` | text | Destination |
| `region_id` | text | Region ID |
| `checkin` | text | Check-in |
| `checkout` | text | Check-out |
| `hotel_id` | text | Hotel ID |
| `hotel_name` | text | Hotel |
| `url` | link | URL |
| `price_display` | text | Price (as shown) |
| `price_total` | number | Price |
| `currency` | text | Currency |
| `image` | image | Image |
| `rating` | number | Rating |
| `rating_text` | text | Rating text |
| `review_count` | number | Reviews |
| `amenities` | array | Amenities |
| `images` | array | Photos |
| `fees` | text | Fees |
| `reviews` | array | Guest reviews |
| `origin` | text | Origin |
| `departure_date` | text | Departure date |
| `return_date` | text | Return date |
| `airlines` | array | Airlines |
| `duration_minutes` | number | Duration (min) |
| `stops` | number | Stops |
| `offer_id` | text | Offer ID |

***

### 💰 Pricing — pay per result

This actor uses **pay-per-event** pricing: you pay only for the rows it delivers.

| You scrape | Price |
| --- | --- |
| **Record** | **$2.00 per 1,000 rows** |

***

### 🔌 Use the Expedia Hotel & Flight Scraper via API

Run it programmatically with the [Apify API](https://docs.apify.com/api/v2):

```bash
curl -X POST "https://api.apify.com/v2/acts/expedia-api-scraper/runs?token=YOUR_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
  "searchType": "hotels",
  "destination": "Copenhagen",
  "adults": 2,
  "includeDetails": false,
  "includeReviews": false,
  "reviewsPerHotel": 5,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}'
```

Or with the Apify CLI: `apify call expedia-api-scraper -i input.json -o`.

***

### ❓ FAQ

**Do I need an account or API key for Expedia Hotel & Flight?**

No. The actor talks to Expedia's public/mobile API for you — you only need an Apify account.

**Do I need a proxy?**

A proxy is recommended for reliable runs; set `proxyConfiguration` (Residential is safest for geo-restricted or bot-protected sites).

**What export formats are supported?**

JSON, CSV, Excel, XML, JSONL, RSS, or live via the Apify API and dataset endpoints.

**Is scraping this legal?**

You are responsible for how you use the data. Scrape only public product data and comply with Expedia's Terms and applicable law (e.g. GDPR/CCPA for personal data).

***

### 🛠️ How it works

The actor impersonates Expedia's official app/site and calls its private API the same way the app does, then normalises each response into the flat record above. No browser, no HTML scraping — just clean, structured data.

***

### 📌 Good to know

- Scrape only public product data and respect Expedia's Terms of Service and robots policy.
- For personal data, comply with GDPR/CCPA and applicable law — you are the data controller.
- Fields can be `null` when Expedia doesn't expose them for a given record.

***

### ⭐ Found this useful?

Give the **Expedia Hotel & Flight Scraper** a star on Apify and check out my other `apify-*-api-scraper` actors.

# Actor input Schema

## `searchType` (type: `string`):

Pick what to scrape. The fields below are grouped by mode — fill in the group that matches your choice.

## `destination` (type: `string`):

HOTELS MODE. A place name, e.g. "Copenhagen" or "Copenhagen City Centre". Resolved through Expedia's own location search.

## `checkIn` (type: `string`):

Check-in date. Pick a date or use a relative value like "30 days". Empty = 30 days from today.

## `checkOut` (type: `string`):

Check-out date. Empty = 3 nights after check-in.

## `includeDetails` (type: `boolean`):

Fetch amenities, photo gallery, rating and fees per hotel. One extra API call each, so slower.

## `includeReviews` (type: `boolean`):

Attach recent guest reviews to each hotel.

## `reviewsPerHotel` (type: `integer`):

How many guest reviews to attach when reviews are enabled.

## `flightOrigin` (type: `string`):

FLIGHTS MODE. Origin airport IATA code, e.g. SEA.

## `flightDestination` (type: `string`):

Destination airport IATA code, e.g. JFK.

## `departureDate` (type: `string`):

Outbound date. Pick a date or use a relative value like "30 days". Empty = 30 days from today.

## `returnDate` (type: `string`):

Return date. Leave empty for a one-way search.

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

Adult guests (hotels) or passengers (flights).

## `maxItems` (type: `integer`):

0 = all results.

## `proxyConfiguration` (type: `object`):

Route requests through a proxy (Apify Proxy by default).

## Actor input object example

```json
{
  "searchType": "hotels",
  "destination": "Copenhagen",
  "includeDetails": false,
  "includeReviews": false,
  "reviewsPerHotel": 5,
  "adults": 2,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (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 = {
    "destination": "Copenhagen",
    "checkIn": "",
    "checkOut": "",
    "flightOrigin": "",
    "flightDestination": "",
    "departureDate": "",
    "returnDate": "",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rl1987/expedia-api-scraper").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 = {
    "destination": "Copenhagen",
    "checkIn": "",
    "checkOut": "",
    "flightOrigin": "",
    "flightDestination": "",
    "departureDate": "",
    "returnDate": "",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("rl1987/expedia-api-scraper").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 '{
  "destination": "Copenhagen",
  "checkIn": "",
  "checkOut": "",
  "flightOrigin": "",
  "flightDestination": "",
  "departureDate": "",
  "returnDate": "",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call rl1987/expedia-api-scraper --silent --output-dataset

```

## MCP server setup

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

```

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/ESZl7Jho36RKkmXnt/builds/Sz9Xm9eyqcuvpLDfb/openapi.json
