place_idintegerจำเป็น
Numeric Tripadvisor place ID, up to 16 digits.
https://api.sandbase.ai/v1/api/tripadvisor/reviewsPublic reviews of a Tripadvisor hotel, restaurant or attraction by place ID: rating, title, text, date and reviewer.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
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.
sort_by set to recent.trip.type.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.
| Name | Type | Required | Description |
|---|---|---|---|
place_id | integer | Yes | Numeric Tripadvisor place ID, up to 16 digits. |
locale | string | No | Lowercase language code with an optional uppercase country, such as en or en-US. |
num | integer | No | Number of reviews, 1 through 50. |
sort_by | string | No | Review order: recent (newest first) or relevance. |
start | integer | No | Review offset from 0 through 10,000. |
timeout | number | No | 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 cal |
translate | boolean | No | Request Tripadvisor's machine translation of reviews. |
tripadvisor_domain | string | No | Supported first-party localized Tripadvisor hostname, such as www.tripadvisor.co.uk. |
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"
}
}
| Field | Meaning |
|---|---|
reviews[].id | Unique ID of the review, given as a string. |
reviews[].rating / reviews[].max_rating | The star rating given by the reviewer and the highest possible rating. In this response the scale is 5. |
reviews[].title / reviews[].text | The headline and body of the review. Long text may be shortened in the example. |
reviews[].created_date / reviews[].published_date | Dates of the review in YYYY-MM-DD format. |
reviews[].trip.date / reviews[].trip.type | The date of the stay and the kind of trip, such as COUPLES, FAMILY or BUSINESS. |
reviews[].user.name / reviews[].user.username / reviews[].user.link | Display name, username and profile URL of the reviewer. Some reviews have no username. |
reviews[].user.country / reviews[].user.hometown / reviews[].user.contributions | Where the reviewer is from, when given, and the number of contributions on their profile. |
reviews[].helpful_votes | Number of helpful votes the review has received. |
reviews[].place.title / reviews[].place.type / reviews[].place.place_id | Name, category (for example ACCOMMODATION) and ID of the reviewed place. |
search_information.total_results | Total number of reviews available for this place. results_on_page shows how many came back in this call. |
place_id of a place. It also appears in review links after -d, for example d18941405.start by the value of num. num accepts 1 to 50.pagination object was empty in this response, so use start and search_information.total_results to decide when to stop.sort.by field shows the applied order. It returned DATE for the default recent sort.$0.00015 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/tripadvisor/reviews" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"num": 5,
"start": 0,
"locale": "en-US",
"sort_by": "recent",
"place_id": 18941405,
"translate": false
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
place_idintegerจำเป็นNumeric Tripadvisor place ID, up to 16 digits.
tripadvisor_domainstringSupported first-party localized Tripadvisor hostname, such as www.tripadvisor.co.uk.
localestringLowercase language code with an optional uppercase country, such as en or en-US.
ค่าเริ่มต้น: "en-US"
startintegerReview offset from 0 through 10,000.
ค่าเริ่มต้น: 0
numintegerNumber of reviews, 1 through 50.
ค่าเริ่มต้น: 10
sort_bystringReview order: recent (newest first) or relevance.
ค่าเริ่มต้น: "recent"
ค่าที่เป็นไปได้: recent, relevance
translatebooleanRequest Tripadvisor's machine translation of reviews.
ค่าเริ่มต้น: false
timeoutnumberOptional 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
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Tripadvisor ReviewsAPI นี้ Tripadvisor | $0.00015 ต่อการเรียก | JSON |
Tripadvisor | $0.00015 ต่อการเรียก | Async JSON |
Tripadvisor | $0.00015 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/tripadvisor/reviews โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.00015 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: place_id (integer). ตัวเลือก: tripadvisor_domain (string), locale (string), start (integer), num (integer), sort_by (หนึ่งใน recent, relevance) และ translate (boolean) และอีก 1 รายการ ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Tripadvisor Reviews ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Tripadvisor API แยกต่างหาก