此内容尚无该语言版本

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);
您觉得这个页面有用吗?
我们该如何改进这些内容?
感谢您帮助我们改进!