APIs / Travel / Viator

1 credit per call3 endpoints15 datapointsChecked working 6 Dec 2026

Viator API

Viator API for tours and activities by destination, product details and traveller reviews as JSON. Three endpoints, 1 credit per call.

Viator
GET/v1/viator/search?destination_id=538
{
  "success": true,
  "data": {
    "destination_id": 538,
    "page": 1,
    "total_pages": 143,
    "total_results": 3429,
    "activities": [
      {
        "position": 1,
        "product_code": "70273P7",
        "title": "Small Group Tour to Sintra, Pena Palace, Cabo Roca and Cascais",
        "url": "https://www.viator.com/tours/Lisbon/Tour-to-Sintra-Pena-Palace-Cabo-da-Roca-Regaleira-and-Cascais/d538-70273P7",
        "description": "Explore beyond Lisbon city limits—and see several of Portugal’s top attractions in one day—on this seamless, small-group tour. Set off in the morning via air-conditioned vehicle and head to UNESCO-listed Sintra. Skip the long lines and expl…",
        "destination": {
          "id": 538,
          "name": "Lisbon, Portugal"
        },
        "price": {
          "amount": 79.02,
          "currency": "USD"
        },
        "rating": 4.9,
        "review_count": 5206,
        "duration_minutes": 480,
        "free_cancellation": true,
        "likely_to_sell_out": true,
        "languages": [
          "en",
          "es",
          "fr"
        ],
        "badges": [
          "likely_to_sell_out",
          "recommended_by_travellers"
        ],
        "image_url": "https://dynamic-media.tacdn.com/media/photo-o/32/b1/71/7e/caption.jpg?w=1600&h=1000&s=1"
      },
      {
        "position": 2,
        "product_code": "126453P1",
        "title": "Guided Tour to Sintra, Pena, Regaleira, Cabo da Roca and Cascais",
        "url": "https://www.viator.com/tours/Lisbon/Sintra-Cabo-da-Roca-Cascais-Estoril-Tour/d538-126453P1",
        "description": "Escape the bustle of Lisbon and spend the day in the charming Sintra region on a full-day tour. Join a small group to take guided tours through the colorful Palacio da Pena and the mystical Quinta da Regaleira. Your tour also includes time …",
        "destination": {
          "id": 538,
          "name": "Lisbon, Portugal"
        },
        "price": {
          "amount": 90.31,
          "currency": "USD"
        },
        "rating": 4.9,
        "review_count": 4096,
        "duration_minutes": 600,
        "free_cancellation": true,
        "languages": [
          "en",
          "es",
          "pt"
        ],
        "badges": [
          "recommended_by_travellers"
        ],
        "image_url": "https://dynamic-media.tacdn.com/media/photo-o/2e/ab/21/48/caption.jpg?w=1600&h=1000&s=1"
      },
      {
        "position": 3,
        "product_code": "70110P8",
        "title": "From Lisbon Fátima, Nazaré, Batalha and Óbidos Guided Tour",
        "url": "https://www.viator.com/tours/Lisbon/Private-Tour-FATIMA-FULL-DAY-Fatima-Batalha-Nazare-and-Obidos/d538-70110P8",
        "description": "Cover four must-see destinations on this attraction-packed day trip from Lisbon. Taste a sample of ginjinha—a local cherry liqueur—in the medieval town of Óbidos, admire sublime water views in seaside Nazaré, visit a centuries-old monastery…",
        "destination": {
          "id": 538,
          "name": "Lisbon, Portugal"
        },
        "price": {
          "amount": 63.22,
          "currency": "USD"
        },
        "rating": 4.7,
        "review_count": 1937,
        "duration_minutes": 600,
        "free_cancellation": true,
        "languages": [
          "en",
          "es",
          "fr"
        ],
        "badges": [
          "recommended_by_travellers"
        ],
        "image_url": "https://dynamic-media.tacdn.com/media/photo-o/2e/ab/c8/91/caption.jpg?w=1600&h=1000&s=1"
      }
    ],
    "has_more": true,
    "next_page": 2
  },
  "meta": {
    "endpoint_family": "search"
  }
}
200 OKJSONX-Credits-Used: 1
Recorded 12 Nov 2026 and shortened.

Sample data

What one call returns

A recorded run of search: the fields and shapes you will get, shortened to 3 items.

#positionintegerproduct_codestringtitlestringurlurldescriptionstringdestinationobjectpriceobjectratingnumberreview_countintegerduration_minutesintegerfree_cancellationbooleanlikely_to_sell_outbooleanlanguagesstring[]badgesstring[]image_urlurl
1170273P7Small Group Tour to Sintra, Pena Palace, Cabo Roca and Cascaishttps://www.viator.com/tours/Lisbon/Tour-to-Sintra-Pena-Palace-Cabo-da-Roca-Regaleira-and-Cascais/d538-70273P7Explore beyond Lisbon city limits—and see several of Portugal’s top attractions in one day—on this seamless, small-group tour. Set off in the morning via air-conditioned vehicle and head to UNESCO-listed Sintra. Skip the long lines and expl…{2 fields}{2 fields}4.95206480truetrue[3 items][2 items]https://dynamic-media.tacdn.com/media/photo-o/32/b1/71/7e/caption.jpg?w=1600&h=1000&s=1
22126453P1Guided Tour to Sintra, Pena, Regaleira, Cabo da Roca and Cascaishttps://www.viator.com/tours/Lisbon/Sintra-Cabo-da-Roca-Cascais-Estoril-Tour/d538-126453P1Escape the bustle of Lisbon and spend the day in the charming Sintra region on a full-day tour. Join a small group to take guided tours through the colorful Palacio da Pena and the mystical Quinta da Regaleira. Your tour also includes time …{2 fields}{2 fields}4.94096600true—[3 items][1 item]https://dynamic-media.tacdn.com/media/photo-o/2e/ab/21/48/caption.jpg?w=1600&h=1000&s=1
3370110P8From Lisbon Fátima, Nazaré, Batalha and Óbidos Guided Tourhttps://www.viator.com/tours/Lisbon/Private-Tour-FATIMA-FULL-DAY-Fatima-Batalha-Nazare-and-Obidos/d538-70110P8Cover four must-see destinations on this attraction-packed day trip from Lisbon. Taste a sample of ginjinha—a local cherry liqueur—in the medieval town of Óbidos, admire sublime water views in seaside Nazaré, visit a centuries-old monastery…{2 fields}{2 fields}4.71937600true—[3 items][1 item]https://dynamic-media.tacdn.com/media/photo-o/2e/ab/c8/91/caption.jpg?w=1600&h=1000&s=1

Recorded 12 Nov 2026 · 3 items shown · 15 datapoints per itemGET /v1/viator/search?destination_id=538

15 datapoints

Identity

  • titlestring

Contact

  • urlurl
  • image_urlurl

Location

  • free_cancellationboolean

Reputation

  • ratingnumber
  • review_countinteger
  • badgesstring[]

Price

  • priceobject

Other

  • positioninteger
  • product_codestring
  • descriptionstring
  • destinationobject
  • duration_minutesinteger
  • likely_to_sell_outboolean
  • languagesstring[]

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/viator/search?destination_id=538" \
  -H "X-API-Key: $API_KEY"

Viator · 3 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

EndpointRequired parametersReturnsCost
GET/v1/viator/product
product_code
product
1 credit
GET/v1/viator/reviews
product_code
product_code
1 credit
GET/v1/viator/search
destination_id+1 optional
positionproduct_codetitleurldescriptiondestination+9 more
1 credit

Overview

About the Viator API

What you can get

The Viator API returns Viator tours and activities as JSON through 3 endpoints.

  • Search: search takes a numeric destination_id, with page.
  • Products: product takes a product_code.
  • Reviews: reviews takes a product_code.

How a call works

Search a destination: GET /v1/viator/search?destination_id=538 with your key in the X-API-Key header, then look up a tour with product by its product_code. Every successful call costs 1 credit; failed calls cost nothing.

TravelJSONRESTMCP

More travel APIs

Use cases

Track which tours and activities are offered in a destination

Use the Viator API to track which tours and activities are offered in a destination

Compare tour details across a city

Use the Viator API to compare tour details across a city

Collect traveller reviews for a product, without reviewer details

Use the Viator API to collect traveller reviews for a product, without reviewer details

Add things-to-do listings to a travel app or agent

Use the Viator API to add things-to-do listings to a travel app or agent

FAQ

Questions

Do I need a Viator partner account?

No. You call this Viator API with your Perceptlayer key in the `X-API-Key` header, with no Viator partner account to set up.

How much does the Viator API cost?

Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.

What format are responses in?

Every endpoint returns JSON, with no HTML parsing on your side.

Is this the official Viator API?

No. Perceptlayer is an independent service and is not affiliated with Viator. It returns Viator data as JSON with a Perceptlayer key, so there is no Viator developer account, app review or partner approval to get first. It only reads data: if Viator has an official API and you need to act on your own Viator account, such as posting, managing orders or reading private data, use that one.

Should I build a Viator scraper instead?

You can, but a Viator scraper is code you maintain: page changes break it, requests get blocked, and Viator's terms govern how you collect data. The Viator API gives you 3 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

Try the Viator API with 100 free credits

No credit card. Failed calls are never billed.