Add Tasks
Add TripAdvisor place URLs as tasks to scrape reviews from hotels, restaurants, and attractions
https://api.lobstr.io/v1/tasksAdd TripAdvisor place URLs to your squid for scraping reviews. The scraper extracts comprehensive review data including ratings, review text, user information, travel dates, photos, subratings, owner responses, and more from hotels, restaurants, and attractions on TripAdvisor.
83970312f2402accbb3553b326a2c8ebHeaders
AuthorizationstringheaderrequiredYour API authentication token. Value: Token YOUR_API_KEY
Content-TypestringheaderrequiredRequest body format. Value: application/json
Task Format
Each task should contain a URL from a TripAdvisor place page. You can scrape reviews from hotels, restaurants, or attractions.
Supported URL Formats
The scraper supports TripAdvisor review URLs from various regional domains:
Use the scraper's filter settings (language, rating, fetch_since) to collect only the reviews you need and reduce credit consumption.
Each place type (hotel, restaurant, attraction) has its own URL format on TripAdvisor. Make sure to use the review page URL, not the overview page.
Code Examples
curl -X POST "https://api.lobstr.io/v1/tasks" \ -H "Authorization: Token YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "squid": "YOUR_SQUID_HASH", "tasks": [ { "url": "https://www.tripadvisor.com/Hotel_Review-g60763-d208453-Reviews-Hilton_New_York_Times_Square-New_York_City_New_York.html" } ] }'
Response
{ "duplicated_count": 0, "tasks": [ { "id": "a7d9f45e3b2c8e1f7d6a8b9c4e5f7a9b", "created_at": "2025-01-27T14:30:00.123456", "is_active": true, "params": { "url": "https://www.tripadvisor.com/Hotel_Review-g60763-d208453-Reviews-Hilton_New_York_Times_Square-New_York_City_New_York.html" }, "module": 132, "object": "task" } ] }