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.

You can access the TripAdvisor Scraper programmatically from your own Python applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1from apify_client import ApifyClient
2
3# Initialize the ApifyClient with your Apify API token
4# Replace '<YOUR_API_TOKEN>' with your token.
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7# Prepare the Actor input
8run_input = {
9    "search": "New York",
10    "checkInDate": "2025-01-01",
11    "checkOutDate": "2025-10-01",
12    "startUrls": [
13        "https://www.tripadvisor.com/Hotel_Review-g35805-d236299-Reviews-Sofitel_Chicago_Magnificent_Mile-Chicago_Illinois.html",
14        "https://www.tripadvisor.com/Hotels-g294200-Egypt-Hotels.html",
15        "https://www.tripadvisor.com/FindRestaurants?geo=32655&establishmentTypes=10591&mealTypes=10606&priceTypes=10955&broadened=false",
16        "https://www.tripadvisor.com/Tourism-g60763-New_York_City_New_York-Vacations.html",
17        "https://www.tripadvisor.com/Trips/122547544",
18    ],
19    "language": "en",
20    "currency": "USD",
21    "maxItems": 20,
22    "endPage": 1,
23    "extendOutputFunction": "($) => { return {} }",
24    "customMapFunction": "(object) => { return {...object} }",
25    "proxy": { "useApifyProxy": True },
26}
27
28# Run the Actor and wait for it to finish
29run = client.actor("epctex/tripadvisor-scraper").call(run_input=run_input)
30
31# Fetch and print Actor results from the run's dataset (if there are any)
32print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
33for item in client.dataset(run["defaultDatasetId"]).iterate_items():
34    print(item)
35
36# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

TripAdvisor Scraper API in Python

The Apify API client for Python is the official library that allows you to use TripAdvisor Scraper API in Python, providing convenience functions and automatic retries on errors.

Install the apify-client

pip install apify-client

Other API clients include:

Developer
Maintained by Community

Actor Metrics

  • 34 monthly users

  • 5 stars

  • >99% runs succeeded

  • 13 hours response time

  • Created in Feb 2024

  • Modified 2 days ago

Categories