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 mode

Node.js

Python

curl

1from apify_client import ApifyClient
2
3# Initialize the ApifyClient with your Apify API token
4client = ApifyClient("<YOUR_API_TOKEN>")
5
6# Prepare the Actor input
7run_input = {
8    "search": "New York",
9    "checkInDate": "2025-01-01",
10    "checkOutDate": "2025-10-01",
11    "startUrls": [
12        "https://www.tripadvisor.com/Hotel_Review-g35805-d236299-Reviews-Sofitel_Chicago_Magnificent_Mile-Chicago_Illinois.html",
13        "https://www.tripadvisor.com/Hotels-g294200-Egypt-Hotels.html",
14        "https://www.tripadvisor.com/FindRestaurants?geo=32655&establishmentTypes=10591&mealTypes=10606&priceTypes=10955&broadened=false",
15        "https://www.tripadvisor.com/Tourism-g60763-New_York_City_New_York-Vacations.html",
16        "https://www.tripadvisor.com/Trips/122547544",
17    ],
18    "language": "en",
19    "currency": "USD",
20    "maxItems": 20,
21    "endPage": 1,
22    "extendOutputFunction": "($) => { return {} }",
23    "customMapFunction": "(object) => { return {...object} }",
24    "proxy": { "useApifyProxy": True },
25}
26
27# Run the Actor and wait for it to finish
28run = client.actor("epctex/tripadvisor-scraper").call(run_input=run_input)
29
30# Fetch and print Actor results from the run's dataset (if there are any)
31for item in client.dataset(run["defaultDatasetId"]).iterate_items():
32    print(item)
Developer
Maintained by Community
Actor metrics
  • 120 monthly users
  • 99.5% runs succeeded
  • 0.2 days response time
  • Created in Feb 2024
  • Modified about 7 hours ago