Skip to main content

HotelsResponse

Response containing a list of hotels with pagination metadata.

data object[]

A list of hotel objects

  • Array [
  • id integer

    Unique ID for the hotel.

    postalCode string

    Postal code of Hotel

    propertyTypeId number

    Reference ID for the type of property

    phone1 string

    Optional 1st phone number

    phone2 string

    Optional 2nd phone number

    phone3 string

    Optional 3rd phone number

    reservationPhone string

    Reservation phone number of hotel

    star number

    Star rating of the hotel between 1 and 5

    latitude string

    Geographical latitude of the hotel

    longitude string

    Geographical longitude of the hotel

    checkIn string

    Check in time

    checkOut string

    Check out time

    amenityIds number[]

    Reference ID's for all amenities available at hotel

    brandId number

    Reference ID for the hotel brand

    name string

    Name of hotel

    address string

    Address of hotel

    description string

    Description of hotel

    images string[]

    List of image urls for the hotel

  • ]
  • meta object

    Additional metadata like pagination data.

    currentPage integer

    The current requested page number.

    nextPage integer

    The next available page number, null if current page is already the last page.

    prevPage integer

    The previous available page number, null if current page is the first page.

    totalPages integer

    Total number of available pages.

    totalCount integer

    Total number of available records.

    HotelsResponse
    {
    "data": [
    {
    "id": 257939,
    "postalCode": "169753",
    "propertyTypeId": 1,
    "phone1": "65-62-588181",
    "star": 2,
    "latitude": "1.28342",
    "longitude": "103.83502",
    "checkIn": "02:00 PM",
    "checkOut": "11:00 AM",
    "amenityIds": [
    1,
    5,
    6,
    7,
    20,
    28,
    29
    ],
    "brandId": 407,
    "name": "Hotel 81 Osaka",
    "address": "1 Eng Hoon Street",
    "description": "amenities - Make use of convenient amenities such as complimentary wireless Internet access, a television in a common area, and tour/ticket assistance. dining - Grab a bite from the grocery/convenience store serving guests of Hotel 81 Osaka (SG Clean).",
    "images": [
    "https://assets.wego.com/image/upload/v1598462602/Partner/hotels/257939/380515237.jpg",
    "https://assets.wego.com/image/upload/v1603939811/Partner/hotels/257939/258778564.jpg"
    ]
    }
    ],
    "meta": {
    "currentPage": 1,
    "nextPage": 2,
    "prevPage": null,
    "totalPages": 846,
    "totalCount": 846
    }
    }