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

# /viator/products

> Get a Viator tour or activity ('product') by its id (e.g. d511-169766P7) or product URL: title, description, highlights, photos, star rating with review breakdown, price, duration, languages, inclusions/exclusions, cancellation policy, itinerary stops, departure locations, supplier and recent reviews.

**Price:** 20 credits

**⚠️ Common errors:** 412: Product not found (well-formed id with no Viator product)



## OpenAPI

````yaml /openapi/travel-hospitality.json post /api/viator/products
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/viator/products:
    post:
      tags:
        - /viator
      summary: /viator/products
      description: >-
        Get a Viator tour or activity ('product') by its id (e.g. d511-169766P7)
        or product URL: title, description, highlights, photos, star rating with
        review breakdown, price, duration, languages, inclusions/exclusions,
        cancellation policy, itinerary stops, departure locations, supplier and
        recent reviews.


        **Price:** 20 credits


        **⚠️ Common errors:** 412: Product not found (well-formed id with no
        Viator product)
      operationId: __api_viator_products_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ViatorProductsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ViatorProduct'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ViatorProductsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        product:
          type: string
          minLength: 1
      type: object
      required:
        - product
    ViatorProduct:
      properties:
        '@type':
          type: string
          default: ViatorProduct
        id:
          type: string
        url:
          type: string
        highlights:
          items:
            type: string
          type: array
          default: []
        product_type:
          anyOf:
            - type: string
            - type: 'null'
        destination:
          anyOf:
            - type: string
            - type: 'null'
        destination_id:
          anyOf:
            - type: integer
            - type: 'null'
        location_label:
          anyOf:
            - type: string
            - type: 'null'
        rating:
          anyOf:
            - type: number
            - type: 'null'
        rating_exact:
          anyOf:
            - type: number
            - type: 'null'
        review_count:
          anyOf:
            - type: integer
            - type: 'null'
        rating_breakdown:
          items:
            $ref: '#/components/schemas/ViatorRatingBucket'
          type: array
          default: []
        price:
          anyOf:
            - type: number
            - type: 'null'
        currency:
          anyOf:
            - type: string
            - type: 'null'
        duration_minutes:
          anyOf:
            - type: integer
            - type: 'null'
        supplier_id:
          anyOf:
            - type: string
            - type: 'null'
        supplier_name:
          anyOf:
            - type: string
            - type: 'null'
        is_supplier_business:
          anyOf:
            - type: boolean
            - type: 'null'
        time_zone:
          anyOf:
            - type: string
            - type: 'null'
        primary_language:
          anyOf:
            - type: string
            - type: 'null'
        languages:
          items:
            type: string
          type: array
          default: []
        inclusions:
          items:
            type: string
          type: array
          default: []
        exclusions:
          items:
            type: string
          type: array
          default: []
        additional_info:
          items:
            type: string
          type: array
          default: []
        cancellation_policy:
          anyOf:
            - type: string
            - type: 'null'
        has_free_cancellation:
          anyOf:
            - type: boolean
            - type: 'null'
        free_cancellation_from_days:
          anyOf:
            - type: integer
            - type: 'null'
        itinerary_type:
          anyOf:
            - type: string
            - type: 'null'
        itinerary:
          items:
            $ref: '#/components/schemas/ViatorItineraryStop'
          type: array
          default: []
        departure_locations:
          items:
            $ref: '#/components/schemas/ViatorLocation'
          type: array
          default: []
        image:
          anyOf:
            - type: string
            - type: 'null'
        images:
          items:
            type: string
          type: array
          default: []
        tour_grades:
          items:
            type: string
          type: array
          default: []
        is_private_tour:
          anyOf:
            - type: boolean
            - type: 'null'
        is_likely_to_sell_out:
          anyOf:
            - type: boolean
            - type: 'null'
        reviews:
          items:
            $ref: '#/components/schemas/ViatorReview'
          type: array
          default: []
      type: object
      required:
        - id
        - url
        - title
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    ViatorRatingBucket:
      properties:
        '@type':
          type: string
          default: ViatorRatingBucket
        rating:
          type: integer
        review_count:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
      required:
        - rating
    ViatorItineraryStop:
      properties:
        '@type':
          type: string
          default: ViatorItineraryStop
        name:
          anyOf:
            - type: string
            - type: 'null'
        duration_minutes:
          anyOf:
            - type: integer
            - type: 'null'
        latitude:
          anyOf:
            - type: number
            - type: 'null'
        longitude:
          anyOf:
            - type: number
            - type: 'null'
        admission_included:
          anyOf:
            - type: boolean
            - type: 'null'
        attraction_id:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
    ViatorLocation:
      properties:
        '@type':
          type: string
          default: ViatorLocation
        instructions:
          anyOf:
            - type: string
            - type: 'null'
        type:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    ViatorReview:
      properties:
        '@type':
          type: string
          default: ViatorReview
        id:
          type: integer
        author:
          anyOf:
            - type: string
            - type: 'null'
        rating:
          anyOf:
            - type: integer
            - type: 'null'
        text:
          anyOf:
            - type: string
            - type: 'null'
        created_at:
          anyOf:
            - type: string
            - type: 'null'
        helpful_count:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
      required:
        - id
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````