Retrieve a list room images for a specific hotelId organized by room type. These URLs are also available via a parameter within the room availability request.

Retrieve a list room images for a specific hotelId organized by room type. These URLs are also available via a parameter within the room availability request.
Request Formats
XML/REST URL: GET http://api.ean.com/ean-services/rs/hotel/v3/roomImages?
XML Parent Element: <roomImages>

Request Parameters
Name Value Required Description
apiExperience string yes

Use this attribute to identify the origin of your request. Choose an applicable value from the set provided below for each request you send.

Values:
PARTNER_CALL_CENTER - request from an agent in your call center
PARTNER_WEBSITE - request from a customer-facing website
PARTNER_MOBILE_WEB - request from a mobile-formatted website
PARTNER_MOBILE_APP - request from a mobile app
PARTNER_BOT_CACHE - request from a cache bot
PARTNER_BOT_REPORTING - request from a reporting bot
PARTNER_AFFILIATE - request from an API/platform that serves your own affiliate base

hotelId long yes ID for the hotel for which room-level images are desired

Response Content
Name Value Description
RoomImages container for RoomImage array Array of RoomImage elements grouped by roomTypeCode. Has size attribute to indicate the number of images returned.
roomTypeCode string Room type code for the room depicted
url string URL for the room image
highResolutionUrl string URL for the high-resolution version of the room image, if provided

Example XML Request:

http://api.ean.com/ean-services/rs/hotel/v3/roomImages?minorRev=[current minorRev #]
&cid=[yourCID]
&sig=############
&apiKey=[xxx-yourOwnKey-xxx]
&customerUserAgent=[xxx]
&customerIpAddress=[xxx]
&customerSessionId=[xxx]
&xml=
<HotelRoomImageRequest>
   <hotelId>373338</hotelId>
</HotelRoomImageRequest>

Example XML Response:

<ns2:HotelRoomImageResponse xmlns:ns2="http://v3.hotel.wsapi.ean.com/">
    <customerSessionId>db8a4743-eaa7-4b4a-9a21-6de38133b4c2</customerSessionId>
    <RoomImages size="107">
        <RoomImage>
            <roomTypeCode>201417731</roomTypeCode>
            <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/c0a5d6a9_s.jpg</url>
            <highResolutionUrl>http://media.expedia.com/hotels/1000000/10000/4400/4348/c0a5d6a9_z.jpg</highResolutionUrl
        </RoomImage>
        <RoomImage>
            <roomTypeCode>201417731</roomTypeCode>
            <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/c8e7b5b2_s.jpg</url>
            <highResolutionUrl>http://media.expedia.com/hotels/1000000/10000/4400/4348/c8e7b5b2_z.jpg</highResolutionUrl>
        </RoomImage>
        <RoomImage>
            <roomTypeCode>201417731</roomTypeCode>
            <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/4588008f_s.jpg</url>
            <highResolutionUrl>http://media.expedia.com/hotels/1000000/10000/4400/4348/4588008f_z.jpg</highResolutionUrl>
        </RoomImage>
        <RoomImage>
            <roomTypeCode>201417731</roomTypeCode>
            <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/b34a5a3b_s.jpg</url>
            <highResolutionUrl>http://media.expedia.com/hotels/1000000/10000/4400/4348/b34a5a3b_z.jpg</highResolutionUrl>
        </RoomImage>
        <RoomImage>
            <roomTypeCode>201417731</roomTypeCode>
            <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/0c3c1917_s.jpg</url>
            <highResolutionUrl>http://media.expedia.com/hotels/1000000/10000/4400/4348/0c3c1917_z.jpg</highResolutionUrl>
        </RoomImage>
        <RoomImage>
            <roomTypeCode>201417731</roomTypeCode>
            <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/2115f796_s.jpg</url>
            <highResolutionUrl>http://media.expedia.com/hotels/1000000/10000/4400/4348/2115f796_z.jpg</highResolutionUrl>
        </RoomImage>
        <RoomImage>
            <roomTypeCode>201417731</roomTypeCode>
            <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/986b441b_s.jpg</url>
            <highResolutionUrl>http://media.expedia.com/hotels/1000000/10000/4400/4348/986b441b_z.jpg</highResolutionUrl>
        </RoomImage>
        {truncated for length}
     </RoomImages> </ns2:HotelRoomImageResponse>

Example REST Request:

minorRev=[current minorRev #]
&cid=[yourCID]
&sig=#########
&apiKey=[xxx-yourOwnKey-xxx]
&customerUserAgent=[xxx]
&customerIpAddress=[xxx]
&customerSessionId=[xxx]
&hotelId=373338

Example JSON Response:

{
"HotelRoomImageResponse" : {
  "customerSessionId" : "0ABAA829-B0E2-D291-3872-20E4C3B946EC",
  "RoomImages" : {
      "@size" : "16",
      "RoomImage" : [
           {
                    "roomTypeCode": 200096831,
                    "url": "http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_31_s.jpg"
                }, {
                    "roomTypeCode": 201417724,
                    "url": "http://media.expedia.com/hotels/1000000/10000/4400/4348/a8cb2f64_s.jpg",
                    "highResolutionUrl": "http://media.expedia.com/hotels/1000000/10000/4400/4348/a8cb2f64_z.jpg"
                }, {
                    "roomTypeCode": 201417724,
                    "url": "http://media.expedia.com/hotels/1000000/10000/4400/4348/29c0311a_s.jpg",
                    "highResolutionUrl": "http://media.expedia.com/hotels/1000000/10000/4400/4348/29c0311a_z.jpg"
                }, {
                    "roomTypeCode": 201417724,
                    "url": "http://media.expedia.com/hotels/1000000/10000/4400/4348/7a466b48_s.jpg",
                    "highResolutionUrl": "http://media.expedia.com/hotels/1000000/10000/4400/4348/7a466b48_z.jpg"
                }, {
                    "roomTypeCode": 201417724,
                    "url": "http://media.expedia.com/hotels/1000000/10000/4400/4348/e851d5ad_s.jpg",
                    "highResolutionUrl": "http://media.expedia.com/hotels/1000000/10000/4400/4348/e851d5ad_z.jpg"
                }, {
                    "roomTypeCode": 201417724,
                    "url": "http://media.expedia.com/hotels/1000000/10000/4400/4348/5e979fb9_s.jpg",
                    "highResolutionUrl": "http://media.expedia.com/hotels/1000000/10000/4400/4348/5e979fb9_z.jpg"
                }, {
                    "roomTypeCode": 201419249,
                    "url": "http://media.expedia.com/hotels/1000000/10000/4400/4348/7b81232b_s.jpg",
                    "highResolutionUrl": "http://media.expedia.com/hotels/1000000/10000/4400/4348/7b81232b_z.jpg"
                }, {
                    "roomTypeCode": 201419249,
                    "url": "http://media.expedia.com/hotels/1000000/10000/4400/4348/58eaf173_s.jpg",
                    "highResolutionUrl": "http://media.expedia.com/hotels/1000000/10000/4400/4348/58eaf173_z.jpg"
                }, {
                    "roomTypeCode": 201419249,
                    "url": "http://media.expedia.com/hotels/1000000/10000/4400/4348/04da5aac_s.jpg",
                    "highResolutionUrl": "http://media.expedia.com/hotels/1000000/10000/4400/4348/04da5aac_z.jpg"
                }, {
                    "roomTypeCode": 201419249,
                    "url": "http://media.expedia.com/hotels/1000000/10000/4400/4348/7de2d76a_s.jpg",
                    "highResolutionUrl": "http://media.expedia.com/hotels/1000000/10000/4400/4348/7de2d76a_z.jpg"
                }, {
                    "roomTypeCode": 201419249,
                    "url": "http://media.expedia.com/hotels/1000000/10000/4400/4348/b69012d9_s.jpg",
                    "highResolutionUrl": "http://media.expedia.com/hotels/1000000/10000/4400/4348/b69012d9_z.jpg"
                } {truncated for length]
            ]
        }
    }
}