이 콘텐츠는 아직 해당 언어로 이용하실 수 없습니다.

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);
이 페이지가 도움이 되었나요?
이 콘텐츠를 어떻게 개선하면 좋을까요?
더 나은 만드는 데 도움을 주셔서 감사합니다!