Skip to content
Blog/Tutorials

Tripadvisor data as JSON: restaurants, hotels, reviews and prices in four calls

An unofficial Tripadvisor API you can call today. List a city’s restaurants, read reviews, get hotel prices for your dates and find location ids, with the real responses.

maviapi team
KuzenLabs · · 4 min read
Tutorials

Tripadvisor data as JSON: restaurants, hotels, reviews and prices in four calls

If you want Tripadvisor’s restaurants, hotels, attractions and reviews in your own app, you usually end up writing a scraper and then looking after it. The Tripadvisor API on maviapi is a hosted REST API that returns the same data as JSON. It is unofficial and independent of Tripadvisor. This post walks through four calls, with the real responses.

A city’s restaurants in one call

/explore takes a place name and a kind (restaurants, hotels or attractions) and returns 30 ranked results per page.

terminal
curl "https://api.maviapi.com/v1/sites/tripadvisor/explore?q=Istanbul&kind=restaurants" \
  -H "Authorization: Bearer $MAVIAPI_KEY"
response (shortened)
{
  "data": {
    "resolved": { "geo_id": "293974", "name": "Istanbul", "type": "CITY" },
    "kind": "restaurants",
    "page": 1,
    "page_size": 30,
    "has_next_page": true,
    "items": [
      {
        "rank": 1,
        "id": "27124882",
        "name": "Mar Kebab House Restaurant",
        "rating": 5,
        "review_count": 1280,
        "price_range": "$$ - $$$",
        "cuisine": ["Barbecue", "Turkish"],
        "phone": "+90 533 221 11 20",
        "address": { "locality": "Istanbul", "country": "Türkiye", "postal_code": "34126" },
        "coordinates": { "latitude": 41.00636, "longitude": 28.969688 },
        "accepts_reservations": true,
        "opening_hours": { "mon": [{ "open": "10:00", "close": "02:00" }] }
      }
    ]
  }
}

Each item carries an id. That id is what the detail, photo and review endpoints take.

Reviews for one place

terminal
curl "https://api.maviapi.com/v1/sites/tripadvisor/reviews?id=27124882" \
  -H "Authorization: Bearer $MAVIAPI_KEY"
response (shortened)
{
  "data": {
    "reviews": [
      {
        "id": "1007938927",
        "rating": 5,
        "title": "Hidden gem in Istanbul",
        "text": "Brilliant find! Recommended by Aprilis Delux Hotel. Excellent food and so friendly...",
        "published_date": "2025-05-19",
        "trip_type": "COUPLES",
        "helpful_votes": 0,
        "owner_response": "Thank you so much for your kind words! ..."
      }
    ]
  }
}

Rating, title, text, dates, trip type and the owner’s reply come as separate fields, so you can filter and count without parsing text.

Hotel prices for your dates

/hotel-offers-v2lists a location’s hotels with the lowest offer for a stay. Pass the geo_id from the first call, the dates and a currency.

terminal
curl "https://api.maviapi.com/v1/sites/tripadvisor/hotel-offers-v2?geo=293974&checkInDate=2026-12-12&checkOutDate=2026-12-14&currency=USD" \
  -H "Authorization: Bearer $MAVIAPI_KEY"
response (shortened)
{
  "data": {
    "check_in_date": "2026-12-12",
    "check_out_date": "2026-12-14",
    "currency": "USD",
    "total": 8665,
    "hotels": [
      {
        "rank": 1,
        "id": "1604061",
        "name": "White House Hotel Istanbul",
        "rating": 4.9,
        "review_count": 9309,
        "lowest_offer": "$210",
        "tag": "Sultanahmet"
      }
    ]
  },
  "pagination": { "total": 8665, "limit": 1, "offset": 0, "has_more": true }
}

Raise offset until it reaches pagination.total to walk every hotel the site lists for that location.

Finding a location id

When you need the geo_id of a city, region or single place, /search-v3?q=Istanbul returns every match with its id, type, parent region, coordinates and a thumbnail. You can bias it toward a latitude and longitude and filter by type.

What people build with it

  • Trip planners and AI travel agents. Ranked places with coordinates, opening hours and price range are what an itinerary needs.
  • Review monitoring. A hotel or restaurant group follows new reviews and owner replies for its own places and its competitors.
  • Hotel price tracking. Call the offers endpoint for the same dates every day and keep the lowest price per hotel.
  • Local lead lists. Every restaurant in a city with phone, address and cuisine, as rows.

Try it now

The Tripadvisor API page lists all 16 endpoints with their parameters and response fields, and it has a console that runs a call in your browser without an account. If you want the rows and not the code, the same page can export the results as a file. To call it from your own code, start on the Free plan and create a key.

Working in Claude, ChatGPT or Cursor? Connect maviapi once and ask for “the top restaurants in Istanbul from Tripadvisor”. The setup is in this post.

Planning a whole trip? The catalog also has Booking.com, Airbnb, Kiwi.com flights, Trainline and GetYourGuide.

Written by
maviapi team

Practical integration guides and product updates from the maviapi team.

More from maviapi

Keep reading

All posts →

New posts, no inbox required

Follow new APIs, product updates, and practical integration guides however you like.