Live demo

Tours and activities API

Viator API integration for travel agencies

Add Viator tours, attractions and activities to your PHPTRAVELS booking site through the Viator Partner API. Viator supplies the products, prices, itineraries and reviews; PHPTRAVELS runs the search, markup, currency and booking records around them.

  • Viator module in the tours category
  • Sandbox and production endpoints
  • Markup on every Viator price
  • Itineraries, inclusions and reviews

How it works

Viator experiences inside your own travel website

A Viator API integration connects your booking website to a Viator partner account, so tours and activities appear next to your flights and hotels. PHPTRAVELS ships a Viator module in the tours category: you paste your Viator API key into the admin, pick the sandbox or production environment, and destination searches start returning Viator products with your markup applied. Partner access and its booking model are granted by Viator, so confirm your account type before planning a launch.

  1. Apply to the Viator partner programme and receive your API key
  2. Open Modules in the PHPTRAVELS admin and enter the key in the Viator settings
  3. Choose the sandbox environment and save to run the credential check
  4. Set your markup and test searches for your main destinations
  5. Switch to production once results and prices look right
Environment
Sandbox
Endpoint
Partner API v2 · api.sandbox.viator.com
API key
••••••••-••••-••••
Markup
10% on Viator prices
Display currency
Customer's session currency

Booking flow

From a Viator search to a recorded booking

The path one Viator product takes through your site with the standard module.

  1. Search

    The destination, date and travellers go to Viator and matching products come back.

  2. Price

    Your markup and currency conversion are applied to each from-price.

  3. Details

    The customer opens the product to read the itinerary, inclusions and cancellation policy.

  4. Record

    A booking record is saved in your admin with travellers, supplier price and selling price.

  5. Complete on Viator

    The customer is sent to the Viator product page in a new window to finish the booking.

Responsibilities

Who does what in a Viator API integration

A working Viator connection needs a booking platform, an approved Viator partner account and a clear agreement on who takes payment.

  • PHPTRAVELS: your booking platform

    The website, Viator module settings, markup, currency, tour pages and booking records. Your package sets the wider B2C and B2B tools.

  • Viator: your experience content

    Products, prices, itineraries, reviews and cancellation policies through the Partner API. Access level and booking terms are set by Viator.

  • Your agency: the commercial workflow

    Selling prices, customer communication and support, including who handles changes and cancellations with Viator.

Tour suppliers you can connect:

  • Tiqets
  • Tours BMS
  • Viator
See every integration

Back office

Run Viator sales from your admin

Credentials, pricing and booking records for Viator products, in the same dashboard as your own tours and other suppliers.

  • Module settings

    API key and environment saved under Modules, with a credential check that rejects placeholder keys before you go live.

  • Supplier and selling price

    Each booking record keeps the Viator price next to your marked-up price for adults and children, so margin is visible per reservation.

  • Currency

    Viator prices are converted from the product currency to the customer's session currency, and both currencies are stored.

  • Your own tours alongside

    Viator products sit next to the tours you create in the tours module, under one search and one admin.

  • Viator Merchant module

    A separate module stores and checks a Viator Merchant API key and Merchant ID for accounts on that model.

  • Checkout on your site

    Taking payment and confirming Viator bookings inside your own checkout is scoped per project as customization.

Compare

Building on the Viator API yourself vs PHPTRAVELS

Viator gives you the product API; you still need a booking site around it. This is typically what a custom build involves next to PHPTRAVELS.

AreaCustom build on the Viator APIPHPTRAVELS
Tour websiteCustom build on the Viator APISearch, results and product pages designed and coded from scratchPHPTRAVELSBranded tour search, results and detail pages already in place
Viator connectionCustom build on the Viator APISearch, product detail and pricing calls written and tested in-housePHPTRAVELSExisting Viator module with sandbox, credential check and markup
Product contentCustom build on the Viator APIItinerary, inclusion and review mapping still to buildPHPTRAVELSInclusions, exclusions, itinerary, reviews and policy already mapped
Admin and marginCustom build on the Viator APIBooking records and pricing rules still to buildPHPTRAVELSSupplier price and selling price stored with every booking
Other productsCustom build on the Viator APIFlights, hotels and your own tours are separate projectsPHPTRAVELSFlight, hotel, car and own-tour modules in the same installation

Use cases

Who connects Viator to PHPTRAVELS

  • Online travel agencies

    Add things to do next to flights and hotels, so travellers can plan a whole trip on one site.

  • Destination management companies

    Combine your own excursions with Viator products in destinations where you do not run every tour yourself.

  • Travel content publishers

    Turn destination guides into a booking site, with Viator experiences listed for each city you cover.

Why PHPTRAVELS

Your Viator account, your platform, your code

  • Source code included

    Self-hosted under a commercial licence, so your developers can extend the Viator flow.

  • Your Viator credentials

    You hold the API key, stored in your own installation and checked on save.

  • Sandbox first

    Test against the Viator sandbox endpoint before you switch the module to production.

  • B2C and B2B

    One installation for your public website and your agent portal, in 24 languages.

FAQ

Viator API integration questions

What agencies ask when evaluating the Viator module, partner access and the booking flow.

Talk to sales

It connects the Viator Partner API to your PHPTRAVELS booking platform through the Viator module in the tours category. Viator supplies tours and activities with prices, itineraries and reviews; PHPTRAVELS provides the website, markup, currency and booking records.

Viator grants API access through its partner programme. Once approved you receive an API key, which you enter in the Viator module settings. Check eligibility, access level and commercial terms directly with Viator.

Yes. The module can point at the Viator sandbox endpoint or at production, and the credential check runs against the one you select. Switch to production only after testing searches and prices.

With the standard module, PHPTRAVELS saves the booking record with travellers and prices, then opens the Viator product page so the customer can finish the booking there. Payment and confirmation inside your own checkout are scoped as customization.

Yes. Tours you create in the PHPTRAVELS tours module and Viator products share the same search and admin, and Tiqets is available as another tours supplier.

A dedicated Viator guide is not yet published on docs.phptravels.com. Setup is an API key and an environment in the module settings, and the PHPTRAVELS team can help during onboarding.