Skip to main content
POST
Scrape Expedia hotel search results with prices for your dates
Scrape Expedia hotel search results with prices for your dates.

Request

location is required.

Response

If successful, the response body contains the standard envelope. data.results[] contains the hotels, each with its price for your dates, guest rating and address. The following example is a real response, truncated: each list shows one item and long strings are cut.

Optional parameters

Billing

Each successful request consumes 1 credit, regardless of the number of items returned. Requests that fail, or that return no items, are not billed.

Pagination

Results are paginated. To retrieve the next page, increment page. An empty data.results indicates the last page. The maximum value of page is 20.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

maxTextLength
integer

Cut every text value in the response to this many characters. A value that was cut ends with …, and a page whose text was cut has isTruncated set to true. A screenshot is never cut. Leave it out to get the full text.

Required range: x >= 1

Body

application/json
location
string
required

Where to stay: a city, area or landmark (e.g., "Seattle, Washington")

Required string length: 2 - 200
checkIn
string<date>

Defaults to tomorrow.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
checkOut
string<date>

Defaults to one night after checkIn.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
adults
integer
default:2
Required range: 1 <= x <= 14
sort
enum<string>
default:relevance

Expedia's own sort: relevance (Recommended), priceLow (lowest price first) or rating (guest rating).

Available options:
relevance,
priceLow,
rating
page
integer
default:1

Page number, starting at 1.

Required range: 1 <= x <= 20

Response

The data, and the credits this call used.

success
any
required
data
object
required
creditsUsed
integer
required
requestId
string
required