Skip to main content
POST
/
api
/
viator
/
destinations
/viator/destinations
curl --request POST \
  --url https://api.anysite.io/api/viator/destinations \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "destination": "<string>",
  "timeout": 300
}
'
[
  {
    "id": 123,
    "url": "<string>",
    "name": "<string>",
    "@type": "@viator_destination",
    "alias": "<string>",
    "description": "<string>",
    "country": "<string>",
    "parent_destination": "<string>",
    "parent_id": 123,
    "city_name": "<string>",
    "activity_count": 123,
    "ancestors": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
destination
string
required

Viator destination id (e.g. 511 for Rome) or a destination URL containing it

Minimum string length: 1
Examples:

"511"

"d511"

"https://www.viator.com/Rome/d511-ttd"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
integer
required
url
string
required
name
string
required
@type
string
default:@viator_destination
alias
string | null
description
string | null
country
string | null
parent_destination
string | null
parent_id
integer | null
city_name
string | null
activity_count
integer | null
ancestors
ViatorDestinationAncestor · object[]