Skip to main content

Images

Images

There are 2 Request attributes that can be used to include images in the response

  • include=Images - Returns Property level image
  • include=MediaLibraryImages - Returns all images across all categories

Return Property level image

Sample Request

Use include=Images to return Property image.

/v1/api/hotel/13098/details?primaryChannel=WEB&include=Images

Response (partial) - CRS Image (maximum of 1)

{
    "hotelList": [{
        "ImageList": [{
            "MediaType": "CRS",
            "Caption": null,
            "Path": "\\hotel\\13098\\Images\\Banner\\Sample.jpg",
            "MediaCategory": "Banner",
            "SortOrder": 0
        }]
    }]
}

 

Response (partial) - Leonardo Image (maximum of 1)

{
    "hotelList": [{
        "ImageList": [{
            "MediaType": "VScape",
            "Caption": null,
            "Path": "https://cloudfront.com/hotel/13098/Images/Banner/Sample.jpg",
            "MediaCategory": "Banner",
            "SortOrder": 0
        }]
    }]
}

 

Response (partial) - ICE Portal Images

{
    "hotelList": [{
        "ImageList": [{
            "MediaType": "IcePortal",
            "Caption": null,
            "Path": "https://media.iceportal.com/102581/photos/69156001_XXL.jpg",
            "MediaCategory": "Banner",
            "SortOrder": 1
        }, {
            "MediaType": "IcePortal",
            "Caption": null,
            "Path": "https://media.iceportal.com/102581/photos/60108119_XXL.jpg",
            "MediaCategory": "Banner",
            "SortOrder": 3
        }, {
            "MediaType": "IcePortal",
            "Caption": null,
            "Path": "https://media.iceportal.com/102581/photos/69156003_XXL.jpg",
            "MediaCategory": "Banner",
            "SortOrder": 2
        }, {
            "MediaType": "IcePortal",
            "Caption": null,
            "Path": "https://media.iceportal.com/102581/photos/69156009_XXL.jpg",
            "MediaCategory": "Banner",
            "SortOrder": 9
        }]
    }]
}

 

Returns all images associated to the hotel

Sample Request

Use include=MediaLibraryImages to return all images.

/v1/api/hotel/13098/details?primaryChannel=WEB&include=MediaLibraryImages

Response (partial)

{
    "hotelList": [{
        "ImageList": [{
            "MediaType": "CRS",
            "Caption": null,
            "Path": "Hotel\\13098\\images\\Banner\\47639_b1.jpg",
            "MediaCategory": "Banner",
            "SortOrder": 0
        }, {
            "MediaType": "CRS",
            "Caption": null,
            "Path": "Hotel\\13098\\images\\Banner\\47639_b2.jpg",
            "MediaCategory": "Banner",
            "SortOrder": 0
        }, {
            "MediaType": "CRS",
            "Caption": null,
            "Path": "Hotel\\13098\\images\\Banner\\47639_b3.jpg",
            "MediaCategory": "Banner",
            "SortOrder": 0
        }, {
            "MediaType": "CRS",
            "Caption": null,
            "Path": "Hotel\\13098\\images\\Room\\47639_c1.jpg",
            "MediaCategory": "Room",
            "SortOrder": 0
        }, {
            "MediaType": "CRS",
            "Caption": null,
            "Path": "Hotel\\13098\\images\\Room\\47639_c2.jpg",
            "MediaCategory": "Room",
            "SortOrder": 0
        }, {
            "MediaType": "CRS",
            "Caption": null,
            "Path": "Hotel\\13098\\images\\Room\\47639_c20.jpg",
            "MediaCategory": "Room",
            "SortOrder": 0
        }, {
            "MediaType": "CRS",
            "Caption": null,
            "Path": "Hotel\\13098\\images\\Room\\47639_c21.jpg",
            "MediaCategory": "Room",
            "SortOrder": 0
        }, {
            "MediaType": "CRS",
            "Caption": null,
            "Path": "Hotel\\13098\\images\\Room\\47639_c22.jpg",
            "MediaCategory": "Room",
            "SortOrder": 0
        }, {
            "MediaType": "CRS",
            "Caption": null,
            "Path": "Hotel\\13098\\images\\Room\\47639_c23.jpg",
            "MediaCategory": "Room",
            "SortOrder": 0
        }, {
            "MediaType": "CRS",
            "Caption": null,
            "Path": "Hotel\\13098\\images\\Promotion\\thumb_75x0_early-booking.jpg",
            "MediaCategory": "Promotion",
            "SortOrder": 0
        }, {
            "MediaType": "CRS",
            "Caption": null,
            "Path": "Hotel\\13098\\images\\Rate\\earlybirdcolor1.jpg",
            "MediaCategory": "Rate",
            "SortOrder": 0
        }]
    }]
}