APIs / Reviews / Tripadvisor

1 credit per call3 endpoints9 datapointsChecked working 6 Dec 2026

Tripadvisor API

Tripadvisor API for hotel, restaurant and attraction search, place details and reviews as JSON. Three endpoints, 1 credit per call.

Tripadvisor
GET/v1/tripadvisor/search?q=pizza+rome&limit=3
{
  "success": true,
  "data": {
    "query": "pizza rome",
    "results": [
      {
        "position": 1,
        "location_id": 11449818,
        "name": "Pompeii from Rome with Optional Mt. Vesuvius & Pizza Lunch",
        "type": "attraction",
        "location": "Rome, Lazio, Italy",
        "image": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/32/a3/97/3a/caption.jpg?w=800&h=-1&s=1",
        "url": "https://www.tripadvisor.com/AttractionProductReview-g187791-d11449818-Pompeii_from_Rome_with_Optional_Mt_Vesuvius_Pizza_Lunch-Rome_Lazio.html",
        "rating": 4.7,
        "review_count": 1617
      },
      {
        "position": 2,
        "location_id": 28122604,
        "name": "Rome Pizza & Gelato Class with Wine by Cooking Italy",
        "type": "attraction",
        "location": "Rome, Lazio, Italy",
        "image": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/34/52/f0/4b/caption.jpg?w=800&h=-1&s=1",
        "url": "https://www.tripadvisor.com/AttractionProductReview-g187791-d28122604-Rome_Pizza_Gelato_Class_with_Wine_by_Cooking_Italy-Rome_Lazio.html",
        "rating": 5,
        "review_count": 1492
      },
      {
        "position": 3,
        "location_id": 11465610,
        "name": "Cooking Class in the Heart of Rome: Pizza and Tiramisu Making",
        "type": "attraction",
        "location": "Rome, Lazio, Italy",
        "image": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/33/71/2d/29/caption.jpg?w=800&h=-1&s=1",
        "url": "https://www.tripadvisor.com/AttractionProductReview-g187791-d11465610-Cooking_Class_in_the_Heart_of_Rome_Pizza_and_Tiramisu_Making-Rome_Lazio.html",
        "rating": 4.9,
        "review_count": 1487
      }
    ]
  },
  "meta": {
    "endpoint_family": "search"
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Sample data

What one call returns

A recorded run of search: the fields and shapes you will get, shortened to 3 items.

#positionintegerlocation_idintegernamestringtypestringlocationstringimageurlurlurlratingnumberreview_countinteger
1111449818Pompeii from Rome with Optional Mt. Vesuvius & Pizza LunchattractionRome, Lazio, Italyhttps://dynamic-media-cdn.tripadvisor.com/media/photo-o/32/a3/97/3a/caption.jpg?w=800&h=-1&s=1https://www.tripadvisor.com/AttractionProductReview-g187791-d11449818-Pompeii_from_Rome_with_Optional_Mt_Vesuvius_Pizza_Lunch-Rome_Lazio.html4.71617
2228122604Rome Pizza & Gelato Class with Wine by Cooking ItalyattractionRome, Lazio, Italyhttps://dynamic-media-cdn.tripadvisor.com/media/photo-o/34/52/f0/4b/caption.jpg?w=800&h=-1&s=1https://www.tripadvisor.com/AttractionProductReview-g187791-d28122604-Rome_Pizza_Gelato_Class_with_Wine_by_Cooking_Italy-Rome_Lazio.html51492
3311465610Cooking Class in the Heart of Rome: Pizza and Tiramisu MakingattractionRome, Lazio, Italyhttps://dynamic-media-cdn.tripadvisor.com/media/photo-o/33/71/2d/29/caption.jpg?w=800&h=-1&s=1https://www.tripadvisor.com/AttractionProductReview-g187791-d11465610-Cooking_Class_in_the_Heart_of_Rome_Pizza_and_Tiramisu_Making-Rome_Lazio.html4.91487

Recorded from our API · 3 items shown · 9 datapoints per itemGET /v1/tripadvisor/search?q=pizza+rome&limit=3

9 datapoints

Identity

  • namestring
  • typestring

Contact

  • urlurl

Location

  • location_idinteger
  • locationstring

Reputation

  • imageurl
  • ratingnumber
  • review_countinteger

Other

  • positioninteger

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/tripadvisor/search?q=pizza+rome&limit=3" \
  -H "X-API-Key: $API_KEY"

Tripadvisor · 3 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

EndpointRequired parametersReturnsCost
GET/v1/tripadvisor/place
location_id+1 optional
place
1 credit
GET/v1/tripadvisor/reviews
location_id+3 optional
idtitletextratingpublished_datestay_month+5 more
1 credit
GET/v1/tripadvisor/search
q+3 optional
positionlocation_idnametypelocationimage+3 more
1 credit

Overview

About the Tripadvisor API

What you can get

The Tripadvisor API returns Tripadvisor data as JSON through 3 endpoints.

  • Search: search takes q, with locale, limit and type (hotel, restaurant, attraction or destination).
  • Places: place takes a location_id, with locale.
  • Reviews: reviews takes a location_id, with offset, limit and language.

The recorded search for "pizza rome" with limit 3 returns results, each with position, location_id, name, type, location, image, url, rating and review_count.

How a call works

Search first, then use the result: GET /v1/tripadvisor/search?q=pizza+rome&limit=3 with your key in the X-API-Key header. Search results carry a location_id, the same name as the parameter place and reviews take. Every successful call costs 1 credit; failed calls cost nothing.

ReviewsJSONRESTMCP

More reviews APIs

Use cases

Monitor ratings and reviews for your hotel or restaurant

Use the Tripadvisor API to monitor ratings and reviews for your hotel or restaurant

Compare competitors in a destination

Use the Tripadvisor API to compare competitors in a destination

Collect reviews for sentiment analysis

Use the Tripadvisor API to collect reviews for sentiment analysis

Build travel recommendations from ratings and review counts

Use the Tripadvisor API to build travel recommendations from ratings and review counts

FAQ

Questions

Do I need a Tripadvisor partner account?

No. You call this Tripadvisor API with your Perceptlayer key in the `X-API-Key` header, with no Tripadvisor account to set up.

How much does the Tripadvisor API cost?

Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.

What format are responses in?

Every endpoint returns JSON, with no HTML parsing on your side.

Is this the official Tripadvisor API?

No. Perceptlayer is an independent service and is not affiliated with Tripadvisor. It returns Tripadvisor data as JSON with a Perceptlayer key, so there is no Tripadvisor developer account, app review or partner approval to get first. It only reads data: if Tripadvisor has an official API and you need to act on your own Tripadvisor account, such as posting, managing orders or reading private data, use that one.

Should I build a Tripadvisor scraper instead?

You can, but a Tripadvisor scraper is code you maintain: page changes break it, requests get blocked, and Tripadvisor's terms govern how you collect data. The Tripadvisor API gives you 3 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

Try the Tripadvisor API with 100 free credits

No credit card. Failed calls are never billed.