Tripadvisor Reviews Scraper avatar
Tripadvisor Reviews Scraper
Try for free

Pay $2.00 for 1,000 reviews

View all Actors
Tripadvisor Reviews Scraper

Tripadvisor Reviews Scraper

maxcopell/tripadvisor-reviews
Try for free

Pay $2.00 for 1,000 reviews

Get and download reviews for chosen places on Tripadvisor. Extract the review text, URL, rating, date of travel, published date, basic reviewer info, owner's response, helpful votes, images, review language, place details. Download reviews in XML, JSON, CSV.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn mode

Node.js

Python

curl

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5    token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10    "startUrls": [
11        {
12            "url": "https://www.tripadvisor.com/Hotel_Review-g60763-d208453-Reviews-Hilton_New_York_Times_Square-New_York_City_New_York.html"
13        }
14    ],
15    "maxItemsPerQuery": 50,
16    "reviewRatings": [
17        "ALL_REVIEW_RATINGS"
18    ],
19    "reviewsLanguages": [
20        "ALL_REVIEW_LANGUAGES"
21    ]
22};
23
24(async () => {
25    // Run the Actor and wait for it to finish
26    const run = await client.actor("maxcopell/tripadvisor-reviews").call(input);
27
28    // Fetch and print Actor results from the run's dataset (if any)
29    console.log('Results from dataset');
30    const { items } = await client.dataset(run.defaultDatasetId).listItems();
31    items.forEach((item) => {
32        console.dir(item);
33    });
34})();
Developer
Maintained by Apify
Actor metrics
  • 235 monthly users
  • 99.8% runs succeeded
  • 7.1 days response time
  • Created in Jan 2023
  • Modified 2 days ago
Categories