TripAdvisor

TripAdvisor API & Data Access

Unofficial | 👉 Official TripAdvisor Website: https://www.tripadvisor.com | 👥 Contributors: steve

Notes

These are unofficial TripAdvisor endpoints uncovered from the TripAdvisor iOS application and website, useful for scraping public data from TripAdvisor such as hotel rankings, availability, pricing information and more. These endpoints are made available for unofficial use and experimentation, such as for security research, use at your own risk!

Most of these endpoints are presumed to work with TripAdvisor’s mobile app, meaning that these endpoints are unlikely to change too much as mobile clients tend to stick around in the wild for a while. Hence, it should be safe to assume these won’t change too much over the next few years.

API Key

The default API key used in these endpoints is taken from TripAdvisor’s public website and app. If you’re interested in accessing data private to you, then you can try using your own TripAdvisor API key - you should be able to intercept this via a logged in web session or from their iOS app.

Rate Limiting

Please be considerate when requesting data through these endpoints or TripAdvisor may block your requesting IP address. We don’t recommend exceeding one request per second per proxy.

Read Only

The endpoints listed here are “read only” and only allow you to scrape data.

Official API

TripAdvisor provides no known officially supported API.

Sample Data

Below is a sample JSON snippet for a destination city. You can also download aggregate results together in CSV format.

{
  "location_id": "28953",
  "name": "New York",
  "abbrv": "NY",
  "latitude": "42.423985",
  "longitude": "-74.88397",
  "num_reviews": "6520856",
  "timezone": "America/New_York",
  "location_string": "New York",
  "photo": {...},
  "awards": [...],
  "doubleclick_zone": "na.us.new_york",
  "preferred_map_engine": "citymaps",
  "geo_type": "broad",
  "category_counts": {...},
  "nearby_attractions": [...],
  "description": "New York State has it all – booming metropolises, majestic waterfalls, mountains, wine country, chicken wings. Yes, NYC is a magnet for tourists, but an exploration of the rest of the state can be equally thrilling. The Finger Lakes Wine Region is a vision of serene waters, quaint B&Bs, and pretty vineyards. Movie buffs will love Rochester, home of the George Eastman House and one of the world’s most comprehensive film archives. On your way to Niagara Falls, stop in Buffalo to fuel up on spicy wings. ",
  "web_url": "https://www.tripadvisor.com/Tourism-g28953-New_York-Vacations.html",
  "write_review": "https://www.tripadvisor.com/UserReview-g28953-New_York.html",
  "ancestors": [...],
  "category": {...},
  "subcategory": [...],
  "parent_display_name": "United States",
  "is_jfy_enabled": false,
  "nearest_metro_station": [...],
  "geo_description": "New York State has it all – booming metropolises, majestic waterfalls, mountains, wine country, chicken wings. Yes, NYC is a magnet for tourists, but an exploration of the rest of the state can be equally thrilling. The Finger Lakes Wine Region is a vision of serene waters, quaint B&Bs, and pretty vineyards. Movie buffs will love Rochester, home of the George Eastman House and one of the world’s most comprehensive film archives. On your way to Niagara Falls, stop in Buffalo to fuel up on spicy wings. ",
  "has_restaurant_coverpage": false,
  "has_attraction_coverpage": true,
  "has_curated_shopping_list": false,
  "has_panoramic_photos": false
}

Articles