Skip to main content
POST
/
api
/
viator
/
products
/
reviews
/viator/products/reviews
curl --request POST \
  --url https://api.anysite.io/api/viator/products/reviews \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "product": "<string>",
  "count": 2,
  "timeout": 300,
  "sort": "recent"
}
'
[
  {
    "id": "<string>",
    "@type": "@viator_product_review",
    "author": "<string>",
    "rating": 123,
    "title": "<string>",
    "text": "<string>",
    "created_at": "<string>",
    "traveler_type": "<string>",
    "helpful_count": 123,
    "owner_response": "<string>",
    "photos": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
product
string
required

Viator product id (e.g. d511-169766P7) or a product URL containing it

Minimum string length: 1
Examples:

"d511-169766P7"

"https://www.viator.com/tours/Rome/Rome-Colosseum-Guided-Tour/d511-169766P7"

count
integer
required

Max number of reviews to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
sort
enum<string>
default:recent

Order in which reviews are returned

Available options:
recent,
featured,
rating,
helpful,
relevance

Response

Successful Response

id
string
required
@type
string
default:@viator_product_review
author
string | null
rating
integer | null
title
string | null
text
string | null
created_at
string | null
traveler_type
string | null
helpful_count
integer | null
owner_response
string | null
photos
string[]