Skip to main content
POST
/
trip-com
/
reviews
cURL
curl --request POST \
  --url https://api.hobbo.ai/trip-com/reviews \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "<string>",
  "reviews_to_fetch": 123,
  "sort_type": 123,
  "pagination_token": "<string>",
  "is_text_formatted": true,
  "sync_date": "<string>"
}
'
{
  "all_reviews": [
    {
      "query": "<string>",
      "review_text": "<string>",
      "author_name": "<string>",
      "review_id": "<string>",
      "review_date": "<string>",
      "review_rating": "<string>",
      "review_timestamp": "<string>",
      "rating_text": "<string>",
      "review_language": "<string>",
      "author_profile_url": "<string>",
      "translated_review": "<string>",
      "image_list": "<array>",
      "review_replies": {
        "reply_text": "<string>",
        "reply_language": "<string>",
        "reply_date": "<string>"
      }
    }
  ],
  "extra_information": {
    "extra_information": {},
    "total_review_count": 123,
    "total_review_count_list": [
      123
    ]
  },
  "message": "<string>"
}

Body

application/json

trip-com review scraping parameters

query
string
required

Provide proper Trip hotel Reviews url or provide hotel slug

reviews_to_fetch
number

Number of reviews to fetch (default: all reviews, or within 30-second timeout)

sort_type
integer

Sort type for reviews

pagination_token
string

The next_page received with the past request, which is required for the pagination

is_text_formatted
boolean

returns the review text with visual formatting preserved

sync_date
string

Fetches reviews posted on a specific date using format: YYYY-MM-DD

Response

Reviews fetched successfully

all_reviews
object[]

Array of fetched reviews

extra_information
object
message
string

Status message about the review extraction