POST https://hotelcontentconnect.withinearth.com/api/Static/HotelContent
| Key | Value |
|---|---|
| Content-Type | application/json |
Common Structure
{
"Token": "XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"Request": {
// Request parameters
}
}
{
"Token": "XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"Request": { "CountryId": 13063, "Rating": 5 }
}
| Key | Value | Required | Allowed Values | Description |
|---|---|---|---|---|
| CountryId | int | Yes |
For CountryId Use End Point: https://hotelcontentconnect.withinearth.com/api/Static/Countries
Request:
|
Country ID (e.g., 13063 = United Arab Emirates) |
| Rating | int | Yes | 0,1,2,3,4,5 | Minimum hotel rating (e.g., 5) |
{
"Token": "XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"Request": {
"TopSelling": "10K"
"PageSize": 1000, //optional
"PageNumber": 1 //optional
}
}
| Key | Value | Required | Allowed Values | Description |
|---|---|---|---|---|
| TopSelling | string | Yes | 1,10,20,50,100,500,1K,5K,10K, 15K 20K, 30K … Up to 100K | Returns a list of top-selling hotels, sorted by production volume. |
| PageSize | int | No | 1000,2000,3000,5000 | Specifies the number of hotel records to return per page. |
| PageNumber | int | No | 1,2,3,… etc |
Indicates which “page” of results to return. The first page starts at 1. Used in combination with PageSize to determine the range of data to return based on the TopSelling. |
⚠️ When TopSelling is used, CountryId and Rating must not be passed.
The API returns an array of hotel objects.
[
{
"hotelId": 10,
"hotelName": "Swissotel Al Ghurair",
"latitude": "25.26926",
"longitude": "55.31705",
"address": "Omar Bin Al Khattab Street, Dubai, Dubai, AE, 185051",
"rating": 5,
"countryId": 13063,
"countryName": "United Arab Emirates",
"iso2": "AE",
"cityId": 13668,
"cityName": "Dubai City",
"vervoId": 39969111,
"gimmonixID": 6846794,
"propertyType": "Hotel",
"chainName": "Accor",
"agoda_V1": "406978",
"bookingDotCom": "452354",
"ean": "4595744",
"hotelBedsV1": "187892",
"we_TGX": "13063#10"
}
]
| Field | Type | Description |
|---|---|---|
| hotelId | int | Unique hotel ID |
| hotelName | string | Hotel name |
| latitude | string | Latitude (nullable) |
| longitude | string | Longitude (nullable) |
| address | string | Full address (nullable) |
| rating | int | Hotel rating |
| countryId | int | Country ID |
| countryName | string | Country name |
| iso2 | string | ISO-2 country code |
| cityId | int | City ID |
| cityName | string | City name |
| vervoId | int | Vervo mapping ID (nullable) |
| gimmonixID | int | Gimmonix mapping ID (nullable) |
| propertyType | string | Property type (nullable) |
| chainName | string | Hotel chain name (nullable) |
| agoda_V1 | string | Agoda mapping ID (nullable) |
| bookingDotCom | string | Booking.com mapping ID (nullable) |
| ean | string | Expedia mapping ID (nullable) |
| hotelBedsV1 | string | HotelBeds mapping ID (nullable) |
| we_TGX | string | Withinearth mapping ID for TGX client (countryId#hotelId) |
{
"Token": "XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"Request": { "TopSelling": "10K" , "RequestedSupplier": "XYZ"}
}
Or
{
"Token": "XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"Request": { "CountryId": 13063, "Rating": 5, "RequestedSupplier": "XYZ"}
}
| Key | Value | Required | Allowed Values | Description |
|---|---|---|---|---|
| TopSelling | string | Yes | 1,10,20,50,100,500,1K,5K,10K, 15K 20K, 30K … Up to 100K | Returns a list of top-selling hotels, sorted by production volume. |
| RequestedSupplier | string | Yes |
For Get RequestedSupplier Use End Point: https://hotelcontentconnect.withinearth.com/api/Static/RequestedSupplier
Request:
|
Returns a list of Suppliers |
| CountryId | int | Yes |
For CountryId Use End Point: https://hotelcontentconnect.withinearth.com/api/Static/Countries
Request:
|
Country ID (e.g., 13063 = United Arab Emirates) |
| Rating | int | Yes | 0,1,2,3,4,5 | Minimum hotel rating (e.g., 3) |
⚠️ When TopSelling is used, CountryId and Rating must not be passed.
The API returns an array of hotel objects.
[
{
"hotelId": 10,
"hotelName": "Swissotel Al Ghurair",
"latitude": "25.26926",
"longitude": "55.31705",
"address": "Omar Bin Al Khattab Street, Dubai, Dubai, AE, 185051",
"rating": 5,
"countryId": 13063,
"countryName": "United Arab Emirates",
"iso2": "AE",
"cityId": 13668,
"cityName": "Dubai City",
"vervoId": 39969111,
"gimmonixID": 6846794,
"propertyType": "Hotel",
"chainName": "Accor",
"agoda_V1": "406978",
"bookingDotCom": "452354",
"ean": "4595744",
"hotelBedsV1": "187892",
"we_TGX": "13063#10",
"requestedSupplierID": "11913"
}
]
| Field | Type | Description |
|---|---|---|
| hotelId | int | Unique hotel ID |
| hotelName | string | Hotel name |
| latitude | string | Latitude (nullable) |
| longitude | string | Longitude (nullable) |
| address | string | Full address (nullable) |
| rating | int | Hotel rating |
| countryId | int | Country ID |
| countryName | string | Country name |
| iso2 | string | ISO-2 country code |
| cityId | int | City ID |
| cityName | string | City name |
| vervoId | int | Vervo mapping ID (nullable) |
| gimmonixID | int | Gimmonix mapping ID (nullable) |
| propertyType | string | Property type (nullable) |
| chainName | string | Hotel chain name (nullable) |
| agoda_V1 | string | Agoda mapping ID (nullable) |
| bookingDotCom | string | Booking.com mapping ID (nullable) |
| ean | string | Expedia mapping ID (nullable) |
| hotelBedsV1 | string | HotelBeds mapping ID (nullable) |
| we_TGX | string | Withinearth mapping ID for TGX client (countryId#hotelId) |
| requestedSupplierID | string | RequestedSupplier mapping ID (If not available then return "N/A") |
POST https://hotelcontentconnect.withinearth.com/api/Static/RoomMapping
| Key | Value |
|---|---|
| Content-Type | application/json |
{
"Token": "XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"Request": {
"HotelIds": "5,46"
}
}
| Field | Type | Description |
|---|---|---|
| HotelIds | string | Comma-separated list of hotel IDs for which room content should be returned. (Max. 100 HotelID) |
[
{
"hotelId": 5,
"roomId": "4021036-115",
"roomName": "Double Room Double OR Twin",
"roomMaxOccupancy": 0,
"roomSizeSqm": "25",
"isSmoking": false,
"roomType": "ROOM",
"roomClass": "",
"balcony": "",
"bedTypes": "",
"roomView": "",
"roomDescriptions": "",
"roomAmenities": [],
"roomImages": []
},
{
"hotelId": 46,
"roomId": "4020950-9",
"roomName": "Regal Club Suite With BALCONY KING",
"roomMaxOccupancy": 3,
"roomSizeSqm": "164",
"isSmoking": false,
"roomType": "SUITE",
"roomClass": "REGAL",
"balcony": "BALCONY",
"bedTypes": "KING",
"roomView": "",
"roomDescriptions": "The suite and overlooks the sea or Dubai skyline. It includes a work desk with a leather seat, a 6-seater dining table, a living room with a flat-screen TV and a balcony with 2 sunbeds. The bedroom offers a seating area, a walk-in closet and a king size bed. The bathroom features a his and her separate walk-in shower, toiletries and a spa bath placed in the middle of the bathroom.\n\nThis suite includes: \n- Imperial Club Lounge access with complimentary daily continental breakfast, afternoon tea and evening canapes \n- Complimentary airport transfers to and from Dubai Airport \n- Complimentary access to Aquaventure Waterpark and The Lost Chambers Aquarium \n- Access to the private Imperial Club Beach \n- Access to the Kids Club & The Zone \n- Daily room service breakfast or enjoy our buffet \n- Complimentary access to the Fitness Centre and wet facilities \n- AED 50 gaming credit at Wavehouse for children \n- Preferential rates on marine animal experiences.",
"roomAmenities": [
{
"roomAmenitiesType": "Others",
"roomAmenitieName": "Furnished balcony or patio"
},
{
"roomAmenitiesType": "Others",
"roomAmenitieName": "Premium bedding"
},
{
"roomAmenitiesType": "Others",
"roomAmenitieName": "TV"
}
],
"roomImages": [
{
"image": "https://i.travelapi.com/lodging/3000000/2240000/2235400/2235336/2f790297_z.jpg"
}
]
}
]
| Field | Type | Description |
|---|---|---|
| hotelId | int | Hotel ID to which the room belongs. |
| roomId | string | Unique room identifier mapped from suppliers. |
| roomName | string | Name of the room. |
| roomMaxOccupancy | int | Maximum allowed occupancy for the room. |
| roomSizeSqm | string | Room size in square meters. |
| isSmoking | bool | True/False whether the room allows smoking. |
| roomType | string | Type of the room (ROOM / SUITE / VILLA etc.). |
| roomClass | string | Class/Category of room such as STANDARD, SUPERIOR, DELUXE. |
| balcony | string | Indicates if balcony is present. |
| bedTypes | string | Bed type(s) e.g., KING, QUEEN, TWIN. |
| roomView | string | View type such as SEA, CITY, GARDEN. |
| roomDescriptions | string | Full descriptive text provided by the property. |
| roomAmenities | array | List of amenities with type and name. |
| roomImages | array | List of image URLs. |