Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Tripadvisor Reviews

Tài liệu API
https://api.sandbase.ai/v1/api/tripadvisor/reviews

Public reviews of a Tripadvisor hotel, restaurant or attraction by place ID: rating, title, text, date and reviewer.

Giá
$0.00015USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 7 tùy chọn

Phòng thử nghiệm

Đầu vào
Numeric Tripadvisor place ID, up to 16 digits.
Supported first-party localized Tripadvisor hostname, such as www.tripadvisor.co.uk.
Lowercase language code with an optional uppercase country, such as en or en-US.
Review offset from 0 through 10,000.
Number of reviews, 1 through 50.
Review order: recent (newest first) or relevance.
Request Tripadvisor's machine translation of reviews.
Optional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true an
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

Tripadvisor Reviews API

Returns public Tripadvisor reviews for one hotel, restaurant or attraction. You pass the numeric place_id. Each review includes the rating, title, text, dates, trip type and reviewer profile.

Use cases

  • Track new guest reviews of a hotel by sorting with sort_by set to recent.
  • Pull review text and ratings for one place to run sentiment analysis.
  • Compare how couples, families and business travelers rate the same hotel using trip.type.
  • Build a review feed on a travel site with links back to each review page.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tripadvisor/reviews" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"place_id": 18941405, "num": 5}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
place_idintegerYesNumeric Tripadvisor place ID, up to 16 digits.
localestringNoLowercase language code with an optional uppercase country, such as en or en-US.
numintegerNoNumber of reviews, 1 through 50.
sort_bystringNoReview order: recent (newest first) or relevance.
startintegerNoReview offset from 0 through 10,000.
timeoutnumberNoOptional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the cal
translatebooleanNoRequest Tripadvisor's machine translation of reviews.
tripadvisor_domainstringNoSupported first-party localized Tripadvisor hostname, such as www.tripadvisor.co.uk.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "pagination": {},
  "reviews": [
    {
      "created_date": "2026-11-01",
      "helpful_votes": 0,
      "id": "1084031574",
      "language": "en",
      "link": "https://www.tripadvisor.com/ShowUserReviews-g30196-d18941405-r1084031574-Austin_…",
      "max_rating": 5,
      "original_language": "en",
      "place": {
        "link": "https://www.tripadvisor.com/Hotel_Review-g30196-d18941405-Reviews-Austin_Proper_…",
        "place_id": "18941405",
        "title": "Austin Proper Hotel",
        "type": "ACCOMMODATION"
      },
      "position": 1,
      "published_date": "2026-11-01",
      "rating": 5,
      "status": "PUBLISHED"
    }
  ],
  "search_information": {
    "results_on_page": 5,
    "total_results": 1028
  },
  "sort": {
    "by": "DATE",
    "type": "DATE"
  }
}

Response fields

FieldMeaning
reviews[].idUnique ID of the review, given as a string.
reviews[].rating / reviews[].max_ratingThe star rating given by the reviewer and the highest possible rating. In this response the scale is 5.
reviews[].title / reviews[].textThe headline and body of the review. Long text may be shortened in the example.
reviews[].created_date / reviews[].published_dateDates of the review in YYYY-MM-DD format.
reviews[].trip.date / reviews[].trip.typeThe date of the stay and the kind of trip, such as COUPLES, FAMILY or BUSINESS.
reviews[].user.name / reviews[].user.username / reviews[].user.linkDisplay name, username and profile URL of the reviewer. Some reviews have no username.
reviews[].user.country / reviews[].user.hometown / reviews[].user.contributionsWhere the reviewer is from, when given, and the number of contributions on their profile.
reviews[].helpful_votesNumber of helpful votes the review has received.
reviews[].place.title / reviews[].place.type / reviews[].place.place_idName, category (for example ACCOMMODATION) and ID of the reviewed place.
search_information.total_resultsTotal number of reviews available for this place. results_on_page shows how many came back in this call.

Notes

  • Use Tripadvisor Search to find the place_id of a place. It also appears in review links after -d, for example d18941405.
  • To page through reviews, raise start by the value of num. num accepts 1 to 50.
  • The pagination object was empty in this response, so use start and search_information.total_results to decide when to stop.
  • The sort.by field shows the applied order. It returned DATE for the default recent sort.

Pricing

$0.00015 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Tripadvisor$0.00015 mỗi lần gọiJSON
Tripadvisor$0.00015 mỗi lần gọiJSON bất đồng bộ
Tripadvisor$0.00015 mỗi lần gọiJSON

Câu hỏi

FAQ

Làm thế nào để dùng API Tripadvisor Reviews?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/tripadvisor/reviews với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Tripadvisor Reviews có giá bao nhiêu?

$0.00015 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Tripadvisor Reviews chấp nhận những tham số nào?

Bắt buộc: place_id (integer). Tùy chọn: tripadvisor_domain (string), locale (string), start (integer), num (integer), sort_by (một trong số recent, relevance) và translate (boolean) và 1 mục khác. Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Tripadvisor Reviews trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Tripadvisor không?

Không. Tripadvisor Reviews chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Tripadvisor.