Skip to content

About

Scrape Expedia hotel search results with a simple API. Get hotels and vacation rentals with total and nightly prices, guest ratings, property classes, amenities, and booking options for any destination, dates, and guests, with Expedia's filters and sorting on 35 Expedia domains.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Expedia Hotels Scraper

Scrape Expedia hotel search results with SerpApi's Expedia Hotels API. Search the hotels and vacation rentals of a destination on Expedia, i.e., a city, a region, a neighborhood, an address, or a landmark, for your dates and guests, sorted by price, distance from downtown, guest rating, or property class, with Expedia's filters for nightly price, guest rating, property class, type of stay, property types, amenities, accessibility features, meal plans, free cancellation, and paying later, and its other filters, like neighborhoods and brands, on 35 Expedia domains. Get each property's ID, name, link, location, property class, guest rating and number of reviews, amenities, total and average nightly prices with the prices before discounts, dates, rooms left at the price, booking options, badges, whether it's an ad, GPS coordinates, and photos, with the filters of the search and the IDs and counts of their options, and the range of nightly prices.

How to scrape Expedia hotels

Search Expedia hotels with a simple GET request:

https://serpapi.com/search?engine=expedia_hotels&q=New+York&check_in_date=2027-03-12&check_out_date=2027-03-14&api_key=SERPAPI_API_KEY
  • q is the destination: anything you'd use in a regular Expedia search, e.g., a city, a region, a neighborhood, an address, or a landmark, such as New York, Austin, TX, or Eiffel Tower. Instead of q, you can set region_id to Expedia's ID of the destination, e.g., 2621 for New York or 2734 for Paris, France. One of them is required.
  • api_key is your SerpApi API key. Replace SERPAPI_API_KEY with it.
  • check_in_date and check_out_date set the dates of the stay, e.g., 2027-03-12 and 2027-03-14, to price every property for the same stay.
  • adults and children_ages set the guests, e.g., adults=1, or children_ages=5,9 for children of 5 and 9. Without them, the search is for 2 adults.
  • sort_by sets the order of the results: recommended (default), price_low_to_high, price_high_to_low, distance, guest_rating, or property_class.
  • min_price, max_price, rating, hotel_class, stay_type, property_types, amenities, accessibility_features, and meal_plans work like the filters of Expedia, e.g., hotel_class=4,5, amenities=spa,pet_friendly, or meal_plans=all_inclusive. free_cancellation and pay_later set to true only show the properties that are fully refundable or that you can reserve now and pay later.
  • include_filters set to true adds Expedia's filters of the search to the response, with the IDs of their options, which facet applies, e.g., facet=hotel_brand:28 for Courtyard hotels or facet=multi_neighborhood_group:6142503 for SoHo in New York.
  • expedia_domain and currency set the language and the currency of the results, e.g., expedia.co.uk for British English and prices in GBP, or currency=MXN.
  • page gets the next pages of results. Each page has up to 100 properties.

A search needs q or region_id. Without either, the API returns 400 and "Either q or region_id should be specified." The dates must be set together and can't be in the past: check_in_date alone returns "Missing check_out_date parameter.", and a past date "check_in_date cannot be in the past." Without dates, Expedia prices a 1-night stay two weeks ahead, e.g., from December 11 to 12, 2026, for a search on November 27, 2026. Dates too far ahead don't return an error: a check-in on 2028-06-01 returned prices for 2 nights from 2026-11-27, the day of the search, so check the check_in_date and check_out_date of the results.

price is the total price of the stay, and price_per_night its average price per night, which leaves out taxes and fees on expedia.com: Hotel Indigo Lower East Side New York by IHG was $437 for 2 nights with taxes and fees, and $151 per night without them. On expedia.co.uk, expedia.fr, and expedia.de, price_per_night is the total divided by the nights, e.g., £212 and £106 for 2 nights. min_price and max_price filter price_per_night: min_price=150&max_price=250 returned properties at $151 to $250 per night, and $381 to $654 for the 2 nights. price_low_to_high and price_high_to_low sort by price.

Like on Expedia, some properties are ads, with sponsored set to true: 16 of the 100 properties on the first page for New York with the default sort, and none with the other sorts or on the next pages. Some ads repeat a property listed elsewhere on the page, e.g., Hotel Indigo Lower East Side New York by IHG was both the first property, as an ad, and the 27th, so skip the ads to get Expedia's ranking, and deduplicate properties by property_id.

Register at SerpApi to get your API key, and keep it private.

Playground

Try the request live in the SerpApi Playground.

Expedia Hotels API results in the SerpApi Playground

Code examples

The code examples read your API key from the SERPAPI_API_KEY environment variable:

export SERPAPI_API_KEY="SERPAPI_API_KEY"

Each example searches Expedia for hotels in New York from March 12 to 14, 2027, and prints the number of results, followed by the average nightly price, total price, and name of each property on the first page.

curl integration

Send the request with curl, which prints the full JSON response:

curl --get https://serpapi.com/search \
 --data-urlencode engine="expedia_hotels" \
 --data-urlencode q="New York" \
 --data-urlencode check_in_date="2027-03-12" \
 --data-urlencode check_out_date="2027-03-14" \
 --data-urlencode api_key="$SERPAPI_API_KEY"

JavaScript integration

Install the SerpApi JavaScript library and set your project to use ES modules:

npm install serpapi
npm pkg set type=module

Create an index.js file:

import { getJson } from "serpapi";

const results = await getJson({
  engine: "expedia_hotels",
  api_key: process.env.SERPAPI_API_KEY,
  q: "New York",
  check_in_date: "2027-03-12",
  check_out_date: "2027-03-14",
});

console.log(results.search_information?.total_results);
for (const hotel of results.organic_results ?? []) {
  console.log(hotel.price_per_night ?? "", hotel.price ?? "", hotel.title);
}

Run it with node index.js.

Python integration

Install the SerpApi Python library:

pip install serpapi

Create a main.py file:

import os
import serpapi

client = serpapi.Client(api_key=os.getenv("SERPAPI_API_KEY"))
results = client.search({
    "engine": "expedia_hotels",
    "q": "New York",
    "check_in_date": "2027-03-12",
    "check_out_date": "2027-03-14",
})

print(results.get("search_information", {}).get("total_results"))
for hotel in results.get("organic_results", []):
    print(hotel.get("price_per_night"), hotel.get("price"), hotel["title"])

Run it with python main.py.

Ruby integration

Install the SerpApi Ruby library:

gem install serpapi

Create a main.rb file:

require "serpapi"

client = SerpApi::Client.new(engine: "expedia_hotels", api_key: ENV.fetch("SERPAPI_API_KEY"))
results = client.search(q: "New York", check_in_date: "2027-03-12", check_out_date: "2027-03-14")

puts results.dig(:search_information, :total_results)
results.fetch(:organic_results, []).each do |hotel|
  puts "#{hotel[:price_per_night]} #{hotel[:price]} #{hotel[:title]}"
end

client.close

Run it with ruby main.rb.

PHP integration

Install the SerpApi PHP library:

composer require serpapi/serpapi-php

Create an index.php file:

<?php
require 'vendor/autoload.php';

use SerpApi\Client;

$client = new Client(getenv('SERPAPI_API_KEY'), 'expedia_hotels');
$results = $client->search([
  'q' => 'New York',
  'check_in_date' => '2027-03-12',
  'check_out_date' => '2027-03-14',
]);

echo ($results->search_information->total_results ?? '') . PHP_EOL;
foreach ($results->organic_results ?? [] as $hotel) {
  echo ($hotel->price_per_night ?? '') . ' ' . ($hotel->price ?? '') . ' ' . $hotel->title . PHP_EOL;
}

Run it with php index.php.

Go integration

Create a Go module and install the SerpApi Go library:

go mod init example.com/expedia
go get github.com/serpapi/serpapi-golang

Create a main.go file:

package main

import (
	"fmt"
	"os"

	"github.com/serpapi/serpapi-golang"
)

func main() {
	setting := serpapi.NewSerpApiClientSetting(os.Getenv("SERPAPI_API_KEY"))
	setting.Engine = "expedia_hotels"
	client := serpapi.NewClient(setting)

	results, err := client.Search(map[string]string{
		"q":              "New York",
		"check_in_date":  "2027-03-12",
		"check_out_date": "2027-03-14",
	})
	if err != nil {
		panic(err)
	}

	info, _ := results["search_information"].(map[string]interface{})
	fmt.Println(info["total_results"])
	hotels, _ := results["organic_results"].([]interface{})
	for _, item := range hotels {
		hotel := item.(map[string]interface{})
		fmt.Println(hotel["price_per_night"], hotel["price"], hotel["title"])
	}
}

Run it with go run ..

Rust integration

Create a Cargo project and add the SerpApi Rust library and Tokio:

cargo new expedia && cd expedia
cargo add serpapi tokio --features tokio/full

Replace src/main.rs with:

use serpapi::serpapi::Client;
use std::collections::HashMap;
use std::env;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let mut default = HashMap::new();
    default.insert("api_key".to_string(), env::var("SERPAPI_API_KEY")?);
    default.insert("engine".to_string(), "expedia_hotels".to_string());
    let client = Client::new(default)?;

    let mut parameter = HashMap::new();
    parameter.insert("q".to_string(), "New York".to_string());
    parameter.insert("check_in_date".to_string(), "2027-03-12".to_string());
    parameter.insert("check_out_date".to_string(), "2027-03-14".to_string());

    let results = client.search(parameter).await?;
    println!("{}", results["search_information"]["total_results"]);
    if let Some(hotels) = results["organic_results"].as_array() {
        for hotel in hotels {
            println!(
                "{} {} {}",
                hotel["price_per_night"].as_str().unwrap_or_default(),
                hotel["price"].as_str().unwrap_or_default(),
                hotel["title"].as_str().unwrap_or_default()
            );
        }
    }
    Ok(())
}

Run it with cargo run.

Other programming languages

Official libraries are also available for Java, .NET, Swift, and C++. See SerpApi integrations for setup guides, or use a simple GET request from any programming language.

Errors

Failed requests return an HTTP error status and a JSON body with an error message. The most common are 401 for an invalid API key, 400 for a search without q or region_id, and 429 when you exceed your hourly throughput limit or run out of searches. Invalid values also return 400, e.g., "check_in_date cannot be in the past.", "Unsupported cheapest sort_by parameter.", "Unsupported values for amenities parameter: jacuzzi", or "Unsupported EUR currency parameter for expedia.com. Supported currencies: USD, ARS, CLP, CNY, COP, EGP, ISK, MXN, PEN, ZAR." See API status and error codes for the full list.

A search without results still returns 200, with search_metadata.status set to Success, search_information.organic_results_state set to Fully empty, and the error "Expedia hasn't returned any results for this query.", so check for error before reading organic_results. This happens for a destination Expedia doesn't recognize, e.g., qwxzzyplkvv or region_id=999999999999, and for a page after the last, e.g., page 7 for New York. When no property matches the filters, e.g., with max_price=10, there's no error: organic_results_state is Non-matching results only, total_results is 0, and the properties that don't match all the filters are in non_matching_properties.

Output formats: JSON and Markdown

Choose structured JSON for applications or Markdown for LLMs and AI agents:

  • JSON is the default output and is useful when you need individual result fields.
  • Add output=md to receive Markdown instead, which is more token-efficient.

Markdown is plain text, not JSON: YAML front matter with the search metadata and parameters, followed by the number of results, the destination, and its region ID, a table of the properties with each of their fields, with the title linked to Expedia, the thumbnail as an image, and the GPS coordinates in latitude and longitude columns, a table of the properties that don't match all the filters, if any, and links to the other pages in Markdown. With include_filters, it also has the ends of the nightly price range and a table of the options of each filter, with their counts, prices, descriptions, IDs, and whether they're selected, and links to the search with each option in Markdown. The prices as numbers, in the extracted_ fields, the images of each property, and the histogram of the nightly prices are only in the JSON response. Read the response body as text instead of parsing it.

Client Markdown request
curl --data-urlencode output="md"
Python client.search({..., "output": "md"})
PHP $client->md([...])
Go client.Md(map[string]string{...})
Rust client.md(parameter).await?

If your SDK doesn't have a Markdown helper yet, send a plain HTTP request with output=md and read the body as text. Learn more about Markdown output.

Expedia Hotels API parameters

See the Expedia Hotels API documentation and its page on filtering for more details.

Name Description Requirement
Search query
q The destination to search for: anything you'd use in a regular Expedia search, i.e., a city, a region, a neighborhood, an address, or a landmark (e.g., New York, Austin, TX, or Eiffel Tower). search_information.query_displayed shows the destination Expedia searched, e.g., Eiffel Tower, Paris, France, and region_id its ID. Near a landmark, location gives the distance from it, e.g., 3.8 mi from Eiffel Tower. A destination Expedia doesn't recognize (e.g., qwxzzyplkvv) returns no results. Required, unless region_id is set
region_id Expedia's ID of the destination (e.g., 2621 for New York or 2734 for Paris, France), from search_information.region_id of a search or the regionId parameter of Expedia's search page URLs. It's the same destination on every domain, e.g., 2621 on expedia.de, and overrides q: region_id=2734&q=New York searches Paris. Required, unless q is set
Localization
expedia_domain The Expedia domain to use, which sets the language and the default currency of the results (e.g., expedia.co.uk for British English and GBP, expedia.fr for French and EUR, or expedia.co.jp for Japanese and JPY). Defaults to expedia.com. See the supported Expedia domains for all 35 domains. Other domains (e.g., expedia.xyz) return a 400 error. Optional
currency The currency of the prices (e.g., MXN). Defaults to the currency of expedia_domain (e.g., USD for expedia.com). Only 7 domains support other currencies, e.g., expedia.com supports USD, ARS, CLP, CNY, COP, EGP, ISK, MXN, PEN, and ZAR, and other currencies return a 400 error. See the supported Expedia domains for the currencies of each domain. Optional
Dates and guests
check_in_date The check-in date, in YYYY-MM-DD format (e.g., 2027-03-12). Must be used with check_out_date, and can't be in the past. Without dates, Expedia prices a 1-night stay two weeks ahead (e.g., December 11 to 12, 2026, for a search on November 27, 2026), with its dates in check_in_date and check_out_date of each property. Dates too far ahead (e.g., 2028-06-01) don't return an error, but prices for a stay of the same length from the day of the search. Optional
check_out_date The check-out date, in YYYY-MM-DD format (e.g., 2027-03-14). Must be used with check_in_date, and be later than it. Long stays work too, e.g., 45 nights. Optional
adults The number of adults (e.g., 1). Defaults to 2. Optional
children_ages The ages of the children, as a comma-separated list with one age per child, from 0 (under 1) to 17 (e.g., 5,9 for children of 5 and 9). Prices are for rooms that fit all the guests, e.g., Hyatt Grand Central New York was $549 for 2 adults and $646 with a child under 1, from March 12 to 14, 2027. Other ages (e.g., 18) return a 400 error. Optional
Advanced filters
sort_by The order of the results, like the Sort by menu of Expedia: recommended (default), price_low_to_high or price_high_to_low (by the total price of the stay, e.g., 101 HOTEL Manhattan New York City at $300, or $128 per night, before Night Hotel Broadway at $335, or $125 per night), distance (from downtown, with the distance in location, e.g., 0.1 mi from downtown), guest_rating (the best rated first, mixed with Expedia's picks), or property_class (the most stars first, with hotel_class on the properties). Only recommended has ads. Other values (e.g., cheapest) return a 400 error. Optional
min_price The minimum average nightly price, in the currency of the results (e.g., 150), like the Nightly price slider of Expedia. It filters price_per_night, which leaves out taxes and fees on expedia.com. nightly_price_range shows the range of the slider for a search with include_filters. Can't be greater than max_price. Optional
max_price The maximum average nightly price, in the currency of the results (e.g., 250). With min_price=150, it returned properties at $151 to $250 per night in New York. A price below every property (e.g., 10) only returns non_matching_properties. Optional
rating The minimum guest rating, out of 10: 7 (Good 7+), 8 (Very good 8+), or 9 (Wonderful 9+). Other values (e.g., 6) return a 400 error. Optional
hotel_class The property classes (stars) to show, as a comma-separated list from 1 to 5 (e.g., 4,5 for 4-star and 5-star properties, which also returns 4.5-star ones). The properties then have hotel_class. Other values (e.g., 6) return a 400 error. Optional
stay_type The type of stay to show: hotels or vacation_rentals (homes, e.g., Entire apartment by Vrbo). Defaults to any type. Optional
property_types The property types to show, as a comma-separated list (e.g., hotel,resort or bed_and_breakfast,hostel). See the supported Expedia Hotels property types for all 31 types, e.g., motel, aparthotel, apartment_or_condo, villa, cabin, guesthouse, inn, ryokan, or capsule_hotel. Optional
amenities The amenities the properties must all have, as a comma-separated list (e.g., spa,pet_friendly, which returned 38 properties in New York). See the supported Expedia Hotels amenities for all 22 amenities, e.g., wifi, parking, pool, gym, kitchen, electric_car_charging, or crib. Optional
accessibility_features The accessibility features the properties must all have, as a comma-separated list (e.g., roll_in_shower,elevator, which returned 282 properties in New York). See the supported Expedia Hotels accessibility features for all 14 features, e.g., accessible_bathroom, in_room_accessibility, stair_free_path, accessible_parking, or service_animals. Optional
meal_plans The meal plans the properties must offer, as a comma-separated list: breakfast_included, lunch_included, dinner_included, or all_inclusive (e.g., all_inclusive, which returned 149 properties for q=Cancun). Optional
facet Expedia's other filters to apply, like neighborhoods, popular locations, brands, or traveler experiences, as up to 30 option IDs separated by || (e.g., hotel_brand:28 for Courtyard, or multi_neighborhood_group:6142503||multi_neighborhood_group:129440 for SoHo or Manhattan in New York), from filters[].options[].id of a search with include_filters set to true. An ID that isn't in filters (e.g., foo:bar) doesn't return an error and can change the results, so take the IDs from filters. More IDs return a 400 error. Optional
Booking options
free_cancellation Set to true to only show fully refundable properties, with the cancellation deadline in highlights, e.g., Fully refundable before Mar 10, 2027, or false (default). Optional
pay_later Set to true to only show the properties that you can reserve now and pay later, e.g., 370 of the 505 properties in New York, or false (default). Optional
Pagination
page The page number (e.g., 1 (default) for the first page, 2 for the second). Each page has up to 100 properties, e.g., 6 pages for the 505 results for New York, with 16 properties on page 6. A page after the last (e.g., 7) returns no results. Optional
SerpApi parameters
engine Set to expedia_hotels. Required
api_key Your private SerpApi API key. Required
no_cache Set to true to request fresh results instead of using the one-hour cache. Can't be combined with async. Optional
async Set to true for later retrieval through the Searches Archive API. Can't be combined with no_cache or used with Ludicrous Speed enabled. Optional
zero_trace Enterprise only. Set to true to skip storing search parameters, files, and metadata on SerpApi servers. Optional
output Set to json (default), html for the raw HTML of the Expedia search page, or md for Markdown. Optional
json_restrictor Limit the JSON response to the fields you need. See the JSON Restrictor documentation. Optional
include_filters Set to true to add Expedia's filters of the search to the response, in filters, with the option IDs to use in facet, and the range of nightly prices of the properties, in nightly_price_range, or false (default). Optional

Available data on Expedia hotels (JSON response)

Each item in organic_results is a property, i.e., a hotel or a vacation rental, with its location, guest rating, amenities, total and nightly prices for the stay, rooms left, booking options, badges, GPS coordinates, and photos. With include_filters, filters lists Expedia's filters of the search with the IDs of their options, and nightly_price_range shows the range of nightly prices. search_information shows the number of results and the destination, and serpapi_pagination links to the other pages. The field guides below describe the possible fields and their types; they aren't literal API responses.

What you get depends on the property and the search

Some fields appear only for some properties or searches:

Property or search Fields
A discounted property old_price with the total price before the discount, usually with the discount in badges, e.g., $553 and $116 off for Hotel Indigo Lower East Side New York by IHG at $437, or Black Friday $173 off. 3,241 of the 4,851 properties in the responses had an old_price
A search on a domain that shows the nightly price first, e.g., expedia.ca or expedia.co.jp old_price_per_night with the nightly price before the discount, instead of old_price, e.g., CA $302 for a nightly price of CA $211
A vacation rental details with its type and size, e.g., Entire apartment by Vrbo and Sleeps 4 · 1 bedroom · 1 bathroom. Some vacation rentals have a rating without reviews, or neither
A search that filters or sorts by property class, or on expedia.fr hotel_class, e.g., 5.0 for 11 Howard with sort_by=property_class. Other searches had none
A price with few rooms left availability_message, e.g., We have 1 left at this price, on expedia.com and expedia.co.jp
A refundable property, or one you can pay later highlights, e.g., Fully refundable, Fully refundable before Mar 10, 2027, or Reserve now, pay later
An ad sponsored set to true, e.g., for 16 of the 100 properties on the first page for New York. Other properties have no sponsored
A property that isn't available for the dates No prices, price_note, or availability_message. These properties come after the others, apart from some ads, e.g., 14 of the 33 bed and breakfasts and hostels in New York, and total_results doesn't count them
A rating of 7 or more rating_text, in the language of the domain, e.g., on expedia.com, Good for 7.0 to 7.8, Very Good for 8.0 to 8.4, Excellent for 8.6 to 8.8, Wonderful for 9.0 to 9.2, and Exceptional for 9.4 to 10. Lower ratings, e.g., 4.8 for 101 HOTEL Manhattan New York City, have none
A search for a landmark, or sorted by distance location with the distance, e.g., 3.8 mi from Eiffel Tower or 0.1 mi from downtown
A search where few or no properties match the filters non_matching_properties with the properties that Expedia lists under "Properties that don't match all your filters", e.g., 87 after the 13 properties for SoHo in New York, and organic_results_state set to Non-matching results only when no property matches
Another domain or currency Localized text and prices, e.g., 924 € and taxes et frais compris on expedia.fr, ¥463,521 without a price_note on expedia.co.jp, or $8,778 MXN with currency=MXN

property_id is Expedia's ID of the property, which link contains, e.g., https://www.expedia.com/New-York-Hotels-Hotel-Indigo-Lower-East-Side-New-York.h9341162.Hotel-Information?chkin=2027-03-12&chkout=2027-03-14&rm1=a2 for 9341162, with the dates of the price and the guests, here 2 adults. Prices are strings formatted like on Expedia, e.g., $437, CA $499, or 924 €, and integers in the matching extracted_ fields. price is the total price of the stay, with taxes and fees, as price_note says, e.g., Total with taxes and fees, and price_per_night its average per night, which leaves out taxes and fees on expedia.com, expedia.ca, and expedia.co.jp, while on expedia.co.uk, expedia.fr, and expedia.de it's the total divided by the nights. search_metadata.expedia_hotels_url links to the same search on Expedia.

To get the next page, increase page or follow serpapi_pagination.next. serpapi_pagination.other_pages links to every other page, e.g., pages 2 to 6 for New York. Only the first page of the default sort has ads, and some of them repeat a property of the page, so deduplicate properties by property_id. total_results can change slightly between pages and sorts, e.g., 505 on page 1 for New York, 504 on page 2, and 499 with sort_by=distance.

Organic results

Each property in organic_results can include these fields:

{
  "organic_results": [
    {
      "property_id": "String - Expedia ID of the property, e.g., 9341162",
      "title": "String - Name of the property, e.g., Hotel Indigo Lower East Side New York by IHG",
      "link": "String - Link to the property on Expedia, with the dates of the price and the guests",
      "location": "String - Neighborhood or city of the property, its distance from the destination, or both, e.g., Theater District, 0.1 mi from downtown, or Long Island City, 4.4 mi from New York",
      "details": "Array[String] - Type and size of a vacation rental, e.g., Entire apartment by Vrbo and Sleeps 4 · 1 bedroom · 1 bathroom",
      "hotel_class": "Float - Property class (stars) of the property, e.g., 4.5",
      "rating": "Float - Average guest rating out of 10, e.g., 8.4",
      "rating_text": "String - Rating in words, in the language of the domain, e.g., Good, Very Good, Excellent, Wonderful, or Exceptional",
      "reviews": "Integer - Number of reviews, e.g., 2204",
      "amenities": "Array[String] - Up to 3 amenities of the property, e.g., Rooftop terrace, Restaurant, and Bar and lounge",
      "price": "String - Total price of the stay, as displayed, e.g., $437",
      "extracted_price": "Integer - Total price of the stay as a number, e.g., 437",
      "old_price": "String - Total price of the stay before the discount, as displayed, e.g., $553",
      "extracted_old_price": "Integer - Total price before the discount as a number, e.g., 553",
      "price_per_night": "String - Average price per night, as displayed, without taxes and fees on some domains, e.g., $151",
      "extracted_price_per_night": "Integer - Average price per night as a number, e.g., 151",
      "old_price_per_night": "String - Average price per night before the discount, on domains that show the nightly price first, e.g., CA $302 on expedia.ca",
      "extracted_old_price_per_night": "Integer - Average price per night before the discount as a number, e.g., 302",
      "price_note": "String - What the price includes, in the language of the domain, e.g., Total with taxes and fees",
      "check_in_date": "String - Check-in date of the price, in YYYY-MM-DD format, e.g., 2027-03-12",
      "check_out_date": "String - Check-out date of the price, in YYYY-MM-DD format, e.g., 2027-03-14",
      "availability_message": "String - Rooms left at the price, e.g., We have 1 left at this price",
      "highlights": "Array[String] - Booking options, e.g., Fully refundable, Fully refundable before Mar 10, 2027, or Reserve now, pay later",
      "badges": "Array[String] - Badges of the property, e.g., VIP Access, Member Price available, Mobile Price, Great for families, or $116 off",
      "sponsored": "Boolean - true if the property is an ad",
      "gps_coordinates": {
        "latitude": "Float - Latitude of the property, e.g., 40.708946",
        "longitude": "Float - Longitude of the property, e.g., -74.009121"
      },
      "thumbnail": "String - Link to the main photo of the property",
      "images": "Array[String] - Links to up to 4 photos of the property"
    }
  ]
}

property_id, title, link, location, check_in_date, and check_out_date are on every property, and thumbnail and images on all but 1 of the 4,851 properties in the responses. The price fields are missing on the properties that aren't available for the dates, and gps_coordinates on non_matching_properties, which otherwise have the same fields. amenities has up to 3 amenities, like the search page of Expedia, and some end with temporarily unavailable, e.g., Bar and lounge temporarily unavailable.

Filters and nightly price range

With include_filters set to true, filters has the filters of Expedia for the search, and nightly_price_range the range of its nightly prices:

{
  "nightly_price_range": {
    "name": "String - Name of the range, as displayed, e.g., Nightly price",
    "min_price": "String - Bottom of the nightly price slider of Expedia, as displayed, e.g., $90",
    "extracted_min_price": "Integer - Bottom of the slider as a number, e.g., 90",
    "max_price": "String - Top of the slider, which includes the higher prices, as displayed, e.g., $550+",
    "extracted_max_price": "Integer - Top of the slider as a number, e.g., 550",
    "histogram": "Array[Integer] - Number of properties in each of 50 price ranges between the ends of the slider, out of 100 for the range with the most"
  },
  "filters": [
    {
      "name": "String - Name of the filter, as displayed, e.g., Star rating, Guest rating, Property brand, Neighborhood, or Accessibility",
      "options": [
        {
          "name": "String - Name of the option, as displayed, e.g., Courtyard",
          "count": "Integer - Number of properties with the option, e.g., 29",
          "description": "String - Description of the option, e.g., Top-rated stays with member perks",
          "price": "String - Lowest total price of the properties with the option, as displayed, e.g., $531",
          "extracted_price": "Integer - Lowest total price as a number, e.g., 531",
          "id": "String - ID of the option, for facet, e.g., hotel_brand:28",
          "selected": "Boolean - true if the option is applied to the search",
          "serpapi_link": "String - SerpApi link to the search with the option, or without it if it's selected"
        }
      ]
    }
  ]
}

For New York, filters had 21 filters, e.g., Type of place, Star rating, Guest rating, Property amenities, Traveler experience, Property type, Property brand, Meal plans available, Accessibility, Neighborhood, and Near popular events, with options such as star:50 (5 stars, 51 properties from $531), travelerType:family_friendly, hotel_brand:28 (Courtyard), and multi_neighborhood_group:6142503 (SoHo). Only the Star rating and Guest rating options have a price. serpapi_link keeps the other parameters of your search and adds the option to facet, so options add up, e.g., SoHo and Manhattan can both be selected, except in the filters with a single choice, like Type of place and Guest rating, where it replaces the choice. The link of an option selected with facet removes it, and the default options, e.g., Any, and those selected with other parameters, e.g., rating, have no link. count usually matches the total_results of the search with the option, e.g., 13 for SoHo and 29 for Courtyard, but can be higher, e.g., 598 for Breakfast included, while meal_plans=breakfast_included returned 415 results. nightly_price_range shows the range of nightly prices that min_price and max_price filter, e.g., $90 to $550+ for New York and $190 to $500+ for SoHo.

Search information and pagination

search_information describes the search, and serpapi_pagination links to the other pages:

{
  "search_information": {
    "total_results": "Integer - Number of properties matching the search, as Expedia counts them, e.g., 505",
    "query_displayed": "String - Destination searched by Expedia, e.g., New York, New York, United States of America",
    "region_id": "String - Expedia ID of the destination, for region_id, e.g., 2621",
    "organic_results_state": "String - Fully empty when the search has no properties, or Non-matching results only when no property matches the filters"
  },
  "serpapi_pagination": {
    "current": "Integer - Current page",
    "previous": "String - SerpApi link to the previous page",
    "next": "String - SerpApi link to the next page",
    "other_pages": {
      "2": "String - SerpApi link to page 2, for every other page"
    }
  }
}

A search without results has total_results, organic_results_state, and an error, but no organic_results or serpapi_pagination, and no query_displayed for an unknown region_id.

AI agents and no-code

MCP

Give AI agents and assistants an Expedia hotel search tool with the hosted SerpApi MCP server at https://mcp.serpapi.com/mcp.

Claude Code:

claude mcp add --transport http serpapi https://mcp.serpapi.com/mcp --header "Authorization: Bearer $SERPAPI_API_KEY"

Codex, which reads the key from SERPAPI_API_KEY:

codex mcp add serpapi --url https://mcp.serpapi.com/mcp --bearer-token-env-var SERPAPI_API_KEY

Other MCP clients:

{
  "mcpServers": {
    "serpapi": {
      "type": "http",
      "url": "https://mcp.serpapi.com/SERPAPI_API_KEY/mcp"
    }
  }
}

The server's engine catalog includes the expedia_hotels engine, and its serpapi://engines/expedia_hotels resource describes the parameters. Ask your agent to search Expedia hotels with the expedia_hotels engine, e.g., to compare hotel prices in New York from March 12 to 14, 2027. The resulting tool call looks like this:

{
  "name": "search",
  "arguments": {
    "params": {
      "engine": "expedia_hotels",
      "q": "New York",
      "check_in_date": "2027-03-12",
      "check_out_date": "2027-03-14"
    }
  }
}

See the MCP integration guide for more clients and self-hosting.

CLI

Search Expedia hotels from your terminal or from AI agent workflows with the SerpApi CLI:

brew tap serpapi/homebrew-tap
brew install serpapi-cli

The CLI picks up SERPAPI_API_KEY from your environment. You can also run serpapi login to save a key.

serpapi search engine=expedia_hotels q="New York" check_in_date=2027-03-12 check_out_date=2027-03-14
serpapi search engine=expedia_hotels q="New York" check_in_date=2027-03-12 check_out_date=2027-03-14 sort_by=price_low_to_high --fields "organic_results[].{title, price_per_night, price, rating}"
serpapi search engine=expedia_hotels q="New York" check_in_date=2027-03-12 check_out_date=2027-03-14 output=md

No-code tools

Use SerpApi APIs without writing code:

Use cases

  • Compare the nightly prices of hotels across dates, e.g., Hyatt Grand Central New York at $597 per night for December 11, 2026, $452 from December 27 to 29, and $196 from March 12 to 14, 2027, before taxes and fees.
  • Compare destinations and neighborhoods with nightly_price_range and facet, e.g., nightly prices of $190 to $500+ in SoHo against $90 to $550+ for all of New York.
  • Track the price of a stay over time with extracted_price, extracted_old_price, and badges, e.g., Hotel Indigo Lower East Side New York by IHG at $437 instead of $553 from March 12 to 14, 2027, with a $116 off badge.
  • Check your own hotel's rate, availability, and rank on Expedia by its property_id: its price for given dates and guests, its availability_message, e.g., We have 1 left at this price, and its position among the properties that aren't ads, with each sort_by.
  • Analyze the hotel market of a destination by star class or area with include_filters, e.g., 51 5-star properties in New York from $531 and 344 4-star properties from $225 from March 12 to 14, 2027, or the number of properties in each neighborhood.
  • Find accessible stays with accessibility_features, e.g., the 282 properties in New York with a roll-in shower and an elevator, with accessibility_features=roll_in_shower,elevator.
  • Give AI agents and travel assistants a hotel search tool, e.g., for "a 4-star hotel in New York with free cancellation from March 12 to 14, 2027".

Related scrapers

Contact

Feel free to reach out at contact@serpapi.com.

About

Scrape Expedia hotel search results with a simple API. Get hotels and vacation rentals with total and nightly prices, guest ratings, property classes, amenities, and booking options for any destination, dates, and guests, with Expedia's filters and sorting on 35 Expedia domains.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors