POST/hotels

Search Hotels

This API call retrieves a list of all hotels available in the ReviewsAPI database for review retrieval. If a hotel you wish to retrieve reviews for is not listed, please send the request using POST /Hotelmaprequest endpoint. We will make efforts to add the hotel to our database within 24 to 48 business hours.
  • hotelName: The name of the hotel.
  • city: The name of the city where the hotel is located.
  • state: The name of the state where the hotel is located.
  • country: The name of the country where the hotel is located.
  • zip: The postal code of the hotel.
  • geoLocationFilter: The geographical location parameters.
    • latitude: The latitude of the area.
    • longitude: The longitude of the area.
    • radius: The radius (in kilometers) around the specified latitude and longitude.
POST/hotels

Mandatory Fields

  • country or geoLocationFilter

Note

Either the country or geoLocationFilter are mandatory parameters. When using geoLocationFilter, all three sub-parameters (latitude, longitude, and radius) are required. All other parameters are optional.

Parameter Details

NameInTypeRequiredDescription
hotelsPerPagequeryintegerOptionalThe number of items to display in a page
pageNumberqueryintegerOptionalIndicates the current page number
bodybodyRequirednone

Responses

StatusMeaningDescriptionSchema
200OKOk
400Bad RequestBad RequestNone
401UnauthorizedAuthorization FailedNone
429Too Many RequestsToo Many RequestsNone
500Internal Server ErrorInternal Server ErrorNone

Example Request

# You can also use wget
curl -X POST /hotels \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: API_KEY'

Body parameter

{
  "hotelName": "Ocean Lodge Santa Monica Beach Hotel",
  "city": "Los Angeles",
  "state": "California",
  "country": "United States of America",
  "zip": "90401",
  "geoLocationFilter": {
    "latitude": "34.01",
    "longitude": "-118.49",
    "radius": "50km"
  }
}

Example responses

200 Response
{
  "totalRecords": 10000,
  "fetchedRecords": 10,
  "totalPages": 1000,
  "currentPage": 1,
  "pageSize": 10,
  "hotels": [
    {
      "hotelCode": 1362151,
      "hotelName": "Ocean Lodge Santa Monica Beach Hotel",
      "address": "1667 Ocean Avenue",
      "city": "Los Angeles",
      "state": "California",
      "country": "United States of America",
      "location": [{
        "latitude": "34.01012891",
        "longitude": "-118.49312648"
      }],
      "zip": "90401",
      "matchScore": 72.228226,
      "reviewsCount": 0
    }
  ]
}

Need Support?

Our team is here to help you integrate and make the most of our APIs. Get in touch for technical support, custom solutions, or any questions.