Destination Keyword Search

The Lodging Listings API allows you to search Expedia Listings inventory by Location Keyword, Region ID, Lat/Long, or Hotel ID(s) and return up to 1,000 offers per response. It provides a deeplink to the Expedia site to book, or rate plan info to enable API booking.

This example demonstrates how to search by location keyword.

For more information about the Listings API, see Listings API documentation.

1. Build the request object using the classes defined in the SDK

GetLodgingListingsOperationParams getLodgingListingsOperationParams
        = GetLodgingListingsOperationParams
            .builder()
            .partnerTransactionId("PARTNER TRANSACTION ID")
            .locationKeyword("LOCATION KEYWORD")
            /*...*/
            .build();

GetLodgingListingsOperation getLodgingListingsOperation =
        new GetLodgingListingsOperation(getLodgingListingsOperationParams);

2. Make the API call using service client.

Response<HotelListingsResponse> hotelListingsResponse =
        client.execute(getLodgingListingsOperation);
Did you find this page helpful?
How can we improve this content?
Thank you for helping us improve!