> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scrapeunblocker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Scrape a TripAdvisor list (restaurants / hotels / attractions)

> Given a TripAdvisor list `url` (Restaurants, Hotels or Attractions for a city/area), returns the places as JSON: `name`, `url`, `image`, `rating`, `reviewCount`, `priceRange`, `cuisine`, `phone`, `address`, `country` and `coordinates`. Paginates through TripAdvisor's `-oaN-` pages up to `max_results`. Data is read from TripAdvisor's schema.org ld+json, which is more stable than its HTML.



## OpenAPI

````yaml /api-reference/openapi.json post /travel/tripadvisor
openapi: 3.1.0
info:
  title: ScrapeUnblocker API
  description: >-
    Public API for the ScrapeUnblocker proxy/anti-bot service. Authenticate
    every request with the `x-scrapeunblocker-key` header. Three endpoints are
    documented here: page-source extraction, Google SERP scraping, and image
    fetch. All other paths exist for internal operations and are intentionally
    hidden from this spec.
  version: 3.0.0
servers:
  - url: https://api.scrapeunblocker.com
    description: Production
security: []
paths:
  /travel/tripadvisor:
    post:
      tags:
        - Plugins
      summary: Scrape a TripAdvisor list (restaurants / hotels / attractions)
      description: >-
        Given a TripAdvisor list `url` (Restaurants, Hotels or Attractions for a
        city/area), returns the places as JSON: `name`, `url`, `image`,
        `rating`, `reviewCount`, `priceRange`, `cuisine`, `phone`, `address`,
        `country` and `coordinates`. Paginates through TripAdvisor's `-oaN-`
        pages up to `max_results`. Data is read from TripAdvisor's schema.org
        ld+json, which is more stable than its HTML.
      operationId: tripadvisor_list_travel_tripadvisor_post
      parameters:
        - name: url
          in: query
          required: true
          schema:
            type: string
            description: >-
              TripAdvisor list URL (Restaurants / Hotels / Attractions), e.g.
              https://www.tripadvisor.com/Restaurants-g60763-New_York_City_New_York.html
            title: Url
          description: >-
            TripAdvisor list URL (Restaurants / Hotels / Attractions), e.g.
            https://www.tripadvisor.com/Restaurants-g60763-New_York_City_New_York.html
        - name: max_results
          in: query
          required: false
          schema:
            type: integer
            maximum: 1020
            minimum: 1
            description: >-
              How many places to collect across pages (~30 per page, max 1020).
              TripAdvisor renders slowly, so large values take a while.
            default: 30
            title: Max Results
          description: >-
            How many places to collect across pages (~30 per page, max 1020).
            TripAdvisor renders slowly, so large values take a while.
        - name: page
          in: query
          required: false
          schema:
            type: integer
            maximum: 34
            minimum: 1
            description: 1-based results page to start from.
            default: 1
            title: Page
          description: 1-based results page to start from.
        - name: proxy_country
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Exit-IP country (ISO-2). Leave blank for a smart exit.
            title: Proxy Country
          description: Exit-IP country (ISO-2). Leave blank for a smart exit.
      responses:
        '200':
          description: JSON with a `places` array plus totals.
          content:
            application/json:
              schema: {}
        '400':
          description: Invalid parameters / not a TripAdvisor list URL.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '502':
          description: Blocked by TripAdvisor or no list found on the page.
        '504':
          description: Fetch timed out (TripAdvisor renders slowly).
      security:
        - ScrapeUnblockerKey: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ScrapeUnblockerKey:
      type: apiKey
      in: header
      name: x-scrapeunblocker-key
      description: Your ScrapeUnblocker API key. Apply on every request.

````