Skip to content
looot docs
Esc
↑↓navigate↵open⌘Jpreview
On this page

SearchAPI.io - Tripadvisor Reviews API

SearchAPI.io tool searchapi-io-tripadvisor-reviews on looot: input fields, $0.004 per call, output shape, and code to run it with curl, JavaScript or Python.

Retrieve paginated reviews for any Tripadvisor place, hotels, restaurants, attractions, attraction products, and geos. The API returns review text, ratings, photos, author details, management responses, and pagination metadata. Cross-linking: Use the Tripadvisor Search API to search for places and obtain a place_id. Then pass that place_id to this API to fetch the place’s reviews.

  • Tool id: searchapi-io-tripadvisor-reviews
  • Provider: SearchAPI.io
  • Job: Tripadvisor reviews search (search.tripadvisor-reviews)
  • Price: $0.004 per call. A call that fails at the provider costs $0.

Inputs

Name Type Required Description
engine string no Fixed to “tripadvisor_reviews” for this endpoint. Example: “tripadvisor_reviews”
language string no
num integer no
original_language string no
page integer no
place_id string yes
q string no
rating string no
sort_by string no
time_of_year string no
translate boolean no
trip_type string no
tripadvisor_domain string no

Output

Shape of the run’s result, checked against 1 real answer:

{ place: { id, link, type, title }, reviews: { id, date, link, text, title, votes, author: { link, name, avatar, hometown, username, contributions }, photos: { original, thumbnail }[], rating, language, position, subratings: { text, value }[], travel_date, travel_type, original_language }[], pagination: { next_page, current_page, total_results }, search_metadata: { id, status, html_url, json_url, created_at, request_url, total_time_taken, parsing_time_taken, request_time_taken }, search_parameters: { num, page, engine, language, place_id, translate, tripadvisor_domain }, search_information: { ... ...

The shape is cut here. Signed in, looot inspect searchapi-io-tripadvisor-reviews prints all of it.

Run it

Every call needs your API token in LOOOT_TOKEN; Sign in shows how to get one. Each run also needs a new idempotency key, so a retry never pays twice. With wait: 30 the answer comes back inline when the run ends within 30 seconds. Otherwise you get the running run back: poll GET /v1/runs/<runId>.

Example input with placeholder values:

curl -X POST "https://api.looot.ai/v1/runs" \
  -H "Authorization: Bearer $LOOOT_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"endpointId":"searchapi-io-tripadvisor-reviews","input":{"place_id":"<place_id>","engine":"tripadvisor_reviews"},"wait":30}'
const response = await fetch("https://api.looot.ai/v1/runs", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.LOOOT_TOKEN}`,
    "Content-Type": "application/json",
    "Idempotency-Key": crypto.randomUUID(),
  },
  body: JSON.stringify({
    endpointId: "searchapi-io-tripadvisor-reviews",
    input: {
      place_id: "<place_id>",
      engine: "tripadvisor_reviews",
    },
    wait: 30,
  }),
});
const run = await response.json();
console.log(run.status, run.result);
import os
import uuid

import requests

response = requests.post(
    "https://api.looot.ai/v1/runs",
    headers={
        "Authorization": f"Bearer {os.environ['LOOOT_TOKEN']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "endpointId": "searchapi-io-tripadvisor-reviews",
        "input": {
            "place_id": "<place_id>",
            "engine": "tripadvisor_reviews",
        },
        "wait": 30,
    },
    timeout=90,
)
run = response.json()
print(run["status"], run.get("result"))

To let looot pick among every provider of this job instead, send job:search.tripadvisor-reviews as endpointId; see the job page.

Was this page helpful?