Dida API This API retrieves information about hotel photos, including their URLs. For the most current information, it is recommended to synchronize this data weekly.
Please note, the images provided by Dida are sourced from its suppliers and direct contracts. Dida does not hold the copyright for these images. If you require access to download hotel and room images from Dida's static content, you are required to sign a Disclaimer Agreement and send it to your API account manager. Once Dida receives the signed agreement, they will grant you access to the images. You can download the Disclaimer Agreement by following the provided URL.
Disclaimer Agreement Download
When "IsGetUrlOnly=true", the "FileType" field supports two file formats for selection: Csv and Zip. (Please note capitalization)
Please note that because Dida's images have anti-hotlinking features, do not directly reference Dida images via the provided addresses, as the images may fail to display. The Dida team recommends that you first download the images to your server and then read the images from your server.
{
"IsGetUrlOnly": true,
"Header": {
"LicenseKey": "TestKey",
"ClientID": "DidaApiTestID"
},
"StaticType": "HotelImage",
"FileType":"Csv"
}
<GetStaticInformationRQ>
<Header>
<ClientID>DidaApiTestID</ClientID>
<LicenseKey>TestKey</LicenseKey>
</Header>
<StaticType>HotelImage</StaticType>
<IsGetUrlOnly>true</IsGetUrlOnly>
<FileType>Csv</FileType>
</GetStaticInformationRQ>
CSV file field description:
| Field | Type | Mandatory | Remarks |
|---|---|---|---|
| HotelID | int | true | Unique hotel identification |
| ImageCaption | string | true | Image caption |
| ImageUrl | string | true | Image url |
| ImageOrder | string | true | Image order |
| IsDefault | bool | true | Is default |