Skip to main content
POST
/
api
/
viator
/
products
/
search
/viator/products/search
curl --request POST \
  --url https://api.anysite.io/api/viator/products/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "query": "rome colosseum",
  "destination_id": 1
}
'
[
  {
    "id": "<string>",
    "url": "<string>",
    "title": "<string>",
    "@type": "@viator_search_product",
    "description": "<string>",
    "destination": "<string>",
    "destination_id": 123,
    "parent_destination": "<string>",
    "rating": 123,
    "rating_exact": 123,
    "review_count": 123,
    "price": 123,
    "currency": "<string>",
    "duration_minutes": 123,
    "languages": [],
    "has_free_cancellation": true,
    "is_private_tour": true,
    "is_likely_to_sell_out": true,
    "is_new": true,
    "image": "<string>",
    "badges": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
count
integer
required

Max number of results to return

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

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
query
string | null

Search keyword (e.g. 'rome colosseum')

Example:

"rome colosseum"

destination_id
integer | null

Viator destination id to list all tours & activities for (e.g. 511 for Rome)

Required range: x > 0

Response

Successful Response

id
string
required
url
string
required
title
string
required
@type
string
default:@viator_search_product
description
string | null
destination
string | null
destination_id
integer | null
parent_destination
string | null
rating
number | null
rating_exact
number | null
review_count
integer | null
price
number | null
currency
string | null
duration_minutes
integer | null
languages
string[]
has_free_cancellation
boolean | null
is_private_tour
boolean | null
is_likely_to_sell_out
boolean | null
is_new
boolean | null
image
string | null
badges
string[]