Package Listings API
Guidance and examples for accessing the Package Listings API
The Package Listings API allows you to search Expedia packages inventory by date, origin, destination, and other parameters to return a listing of available packages.
Endpoint
Method | Endpoint |
---|---|
GET | https://apim.expedia.com/packages/listings |
Required Headers
Key: | Expedia API key |
Authorization: | Expedia API Authorization String |
Accept: | application/vnd.exp-package.v3+json |
Partner-Transaction-Id: | Partner TransactionID String |
Optional Headers
Accept-Encoding: | gzip More info on gzip |
Next Steps
- Deeplink customer to Expedia website where they can book selected car.
- Get more information about a specific offer via the Package Details API.
- Get seat occupancy of selected flight(s) via Seatmap API.
Example of Request
Flight Anchored Search (one flight + multiple hotels)
Search Requests
This is the standard package search that will return 100 packages built from the combination of 1 flight option with 100 lodging options.
https://apim.expedia.com/packages/listings?packageType=FH&anchorProduct=FLIGHT&origin=SFO&destination=IAD&departureDate=2021-05-01&returnDate=2021-05-05&adult=3&childrenAges=2&room1.adults=3&room1.childAges=2&links=AD,AAS&hotelDetails=high&limit=3
Flight Anchored Search (one room + multiple passenger types)
Search Requests
https://apim.expedia.com/packages/listings?origin=ORD&destination=LAS&departureDate=2021-10-16&returnDate=2021-10-18&packageType=FH&anchorProduct=flight&adult=1&seniors=1&infantInLap=1&infantInSeat=1&room1.adults=2&room1.childAges=1,1&links=WD,AD,AAS&limit=10
Flight Anchored Search (mulitiple rooms + multiple passenger types)
Search Requests
https://apim.expedia.com/packages/listings?origin=ORD&destination=LAS&departureDate=2021-10-16&returnDate=2021-10-18&packageType=FH&anchorProduct=flight&adult=1&seniors=1&infantInLap=1&infantInSeat=1&childrenAges=2,3&room1.adults=1&room1.childAges=1,2&room2.adults=1&room2.childAges=1,3&links=WD,AD,AAS&limit=10
Flight Anchored Search (support hotel upsells + Hotel Id search)
Search Requests
https://apim.expedia.com/packages/listings?anchorProduct=FLIGHT&returnDate=2022-07-30&origin=LOS&room1.adults=2&destination=LAX&limit=250&cabin=ECONOMY&departureDate=2022-07-26&adult=2&packageType=FH&&hotelIds=2200019&links=AD,AAS,WD&allRoomTypes=true
Hotel Anchored Search (selected hotel + multiple flights)
Search Requests
https://apim.expedia.com/packages/listings?packages/listings?packageType=FH&anchorProduct=HOTEL&origin=SFO&destination=IAD&departureDate=2021-05-01&returnDate=2021-05-05&hnk=CgcyMjQ0MjMxEjIKCTIwMDE2MTgzNxIJMjAwOTE0MDQ4GgIyNCoKMjAyMC0wNS0wMTIKMjAyMC0wNS0wNRgBKgkKATMSATISATMwAQ&adult=3&childrenAges=2%2C3&links=AD&hotelDetails=high&limit=25&locale=en_US
Package Search with Multiple Flight Options
Search Requests
Using this option, the API will return 3 flights + 20 hotels (instead of the default 1 flight + 100 hotels). To enable this query the parameter &showMultipleFlights=true
must be included in the API request.
https://apim.expedia.com/packages/listings?packageType=FH&anchorProduct=FLIGHT&origin=LAX&destination=JFK&departureDate=2021-06-09&returnDate=2021-06-13&adult=1&room1.adults=1&showMultipleFlights=true
Error Codes
API details
Here, you can explore the endpoint definitions for this API, then go to the API Explorer to try out all the XAP endpoints, download OpenAPI specs, or download our Postman collections. Testing with one or all of these options will give you an understanding of how the examples and schema definitions compare to the actual output.