> ## 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/attractions

> Get a Viator attraction (point of interest) by its id (e.g. d511-a701) or attraction URL: name, description, address, star rating with review count, admission-free flag, themed info sections (know-before-you-go, ways to explore, how to get there, when to visit) and the tours & activities available at the attraction.

**Price:** 10 credits

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



## OpenAPI

````yaml /openapi/travel-hospitality.json post /api/viator/attractions
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/attractions:
    post:
      tags:
        - /viator
      summary: /viator/attractions
      description: >-
        Get a Viator attraction (point of interest) by its id (e.g. d511-a701)
        or attraction URL: name, description, address, star rating with review
        count, admission-free flag, themed info sections (know-before-you-go,
        ways to explore, how to get there, when to visit) and the tours &
        activities available at the attraction.


        **Price:** 10 credits


        **⚠️ Common errors:** 412: Attraction not found (well-formed id with no
        Viator attraction)
      operationId: __api_viator_attractions_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ViatorAttractionsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ViatorAttraction'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ViatorAttractionsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        attraction:
          type: string
          minLength: 1
      type: object
      required:
        - attraction
    ViatorAttraction:
      properties:
        '@type':
          type: string
          default: ViatorAttraction
        id:
          type: string
        url:
          type: string
        attraction_id:
          type: integer
        destination_id:
          type: integer
        name:
          type: string
        destination:
          anyOf:
            - type: string
            - type: 'null'
        address:
          anyOf:
            - type: string
            - type: 'null'
        is_admission_free:
          anyOf:
            - type: boolean
            - type: 'null'
        rating:
          anyOf:
            - type: number
            - type: 'null'
        review_count:
          anyOf:
            - type: integer
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        product_count:
          anyOf:
            - type: integer
            - type: 'null'
        best_seller_product_code:
          anyOf:
            - type: string
            - type: 'null'
        sections:
          items:
            $ref: '#/components/schemas/ViatorAttractionSection'
          type: array
          default: []
        products:
          items:
            $ref: '#/components/schemas/ViatorAttractionProduct'
          type: array
          default: []
      type: object
      required:
        - id
        - url
        - attraction_id
        - destination_id
        - name
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    ViatorAttractionSection:
      properties:
        '@type':
          type: string
          default: ViatorAttractionSection
        heading:
          type: string
        text:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - heading
    ViatorAttractionProduct:
      properties:
        '@type':
          type: string
          default: ViatorAttractionProduct
        id:
          type: string
        url:
          type: string
        rating:
          anyOf:
            - type: number
            - type: 'null'
        rating_exact:
          anyOf:
            - type: number
            - type: 'null'
        review_count:
          anyOf:
            - type: integer
            - type: 'null'
        price:
          anyOf:
            - type: number
            - type: 'null'
        currency:
          anyOf:
            - type: string
            - type: 'null'
        category:
          anyOf:
            - type: string
            - type: 'null'
        location:
          anyOf:
            - type: string
            - type: 'null'
        duration_minutes:
          anyOf:
            - type: integer
            - type: 'null'
        languages:
          items:
            type: string
          type: array
          default: []
        is_private_tour:
          anyOf:
            - type: boolean
            - type: 'null'
        is_new:
          anyOf:
            - type: boolean
            - type: 'null'
        has_free_cancellation:
          anyOf:
            - type: boolean
            - type: 'null'
        badges:
          items:
            type: string
          type: array
          default: []
        latitude:
          anyOf:
            - type: number
            - type: 'null'
        longitude:
          anyOf:
            - type: number
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        max_travelers:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
      required:
        - id
        - url
        - title
    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

````