TripAdvisor Scraper avatar
TripAdvisor Scraper
Try for free

1 day trial then $20.00/month - No credit card required now

View all Actors
TripAdvisor Scraper

TripAdvisor Scraper

epctex/tripadvisor-scraper
Try for free

1 day trial then $20.00/month - No credit card required now

Explore with our Trip Advisor Scraper: an easy search for hotels, restaurants, attractions, and more by keywords or start URL. Enter check-in/out dates, and select currency and language. Promote locations, capture details, and retrieve emails and phone numbers if shared.

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 more

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    "search": "New York",
11    "checkInDate": "2025-01-01",
12    "checkOutDate": "2025-10-01",
13    "startUrls": [
14        "https://www.tripadvisor.com/Hotel_Review-g35805-d236299-Reviews-Sofitel_Chicago_Magnificent_Mile-Chicago_Illinois.html",
15        "https://www.tripadvisor.com/Hotels-g294200-Egypt-Hotels.html",
16        "https://www.tripadvisor.com/FindRestaurants?geo=32655&establishmentTypes=10591&mealTypes=10606&priceTypes=10955&broadened=false",
17        "https://www.tripadvisor.com/Tourism-g60763-New_York_City_New_York-Vacations.html",
18        "https://www.tripadvisor.com/Trips/122547544"
19    ],
20    "language": "en",
21    "currency": "USD",
22    "maxItems": 20,
23    "endPage": 1,
24    "extendOutputFunction": ($) => { return {} },
25    "customMapFunction": (object) => { return {...object} },
26    "proxy": {
27        "useApifyProxy": true
28    }
29};
30
31(async () => {
32    // Run the Actor and wait for it to finish
33    const run = await client.actor("epctex/tripadvisor-scraper").call(input);
34
35    // Fetch and print Actor results from the run's dataset (if any)
36    console.log('Results from dataset');
37    console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
38    const { items } = await client.dataset(run.defaultDatasetId).listItems();
39    items.forEach((item) => {
40        console.dir(item);
41    });
42})();
43
44// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
Developer
Maintained by Community
Actor metrics
  • 68 monthly users
  • 99.2% runs succeeded
  • 0.8 days response time
  • Created in Feb 2024
  • Modified about 20 hours ago