---
title: "Viator API Integration for Tours and Activities | PHPTRAVELS"
description: "Viator API integration for travel agencies: connect the Viator Partner API to PHPTRAVELS, add markup and sell tours and activities with reviews."
source: https://phptravels.com/integrations/viator-api-integration
---

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.

- [Apply to the Viator partner programme and receive your API key](https://phptravels.com/features/tours)
- Open Modules in the PHPTRAVELS admin and enter the key in the Viator settings
- Choose the sandbox environment and save to run the credential check
- Set your markup and test searches for your main destinations
- 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

Search and details

## Viator products in your tour results, with the detail customers check

Each Viator result carries the title, from-price, duration, rating and image, and the details page adds inclusions, exclusions, itinerary stops and the cancellation policy.

Dubai · 14 Nov · 2 adults Viator results

- 4.7★ **Evening desert safari with dinner** 6 h · 4.7 rating · Free cancellation Refundable Reviews shown **– per adult **
- 4.5★ **Dhow dinner cruise at Dubai Marina** 2 h · Inclusions and exclusions listed Markup applied Supplier price kept **– per adult **
- **Abu Dhabi day trip from Dubai** 10 h · Itinerary with map stops Booking saved Completed on Viator **– per adult **
- Destination search A destination and date go to the Viator free-text product search, with price and rating filters and up to 100 products per page.
- Location check Results are checked against the destination in the product address and title, so unrelated fallback tours are dropped from your list.
- Full product details The details page loads the Viator product: description, inclusions, exclusions and itinerary items, with map points where Viator provides them.
- Ratings and reviews Viator's average rating and total review count show on each tour, so customers can compare experiences side by side.
- Cancellation policy The Viator cancellation policy text appears on the tour with a refundable flag taken from the product's policy type.
- Markup and currency Your markup is added to the Viator from-price and converted to the customer's currency, with the supplier price stored alongside.

Booking flow

## From a Viator search to a recorded booking

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

- Search The destination, date and travellers go to Viator and matching products come back.
- Price Your markup and currency conversion are applied to each from-price.
- Details The customer opens the product to read the itinerary, inclusions and cancellation policy.
- Record A booking record is saved in your admin with travellers, supplier price and selling price.
- 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

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.

| Area | Custom build on the Viator API | PHPTRAVELS |
| Tour website | Custom build on the Viator API Search, results and product pages designed and coded from scratch | PHPTRAVELS Branded tour search, results and detail pages already in place |
| Viator connection | Custom build on the Viator API Search, product detail and pricing calls written and tested in-house | PHPTRAVELS Existing Viator module with sandbox, credential check and markup |
| Product content | Custom build on the Viator API Itinerary, inclusion and review mapping still to build | PHPTRAVELS Inclusions, exclusions, itinerary, reviews and policy already mapped |
| Admin and margin | Custom build on the Viator API Booking records and pricing rules still to build | PHPTRAVELS Supplier price and selling price stored with every booking |
| Other products | Custom build on the Viator API Flights, hotels and your own tours are separate projects | PHPTRAVELS Flight, 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.

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.

Keep exploring

## More from the platform

Reviewed by [Qasim Hussain](https://phptravels.com/author/qasim-hussain), Founder & CEO, PHPTRAVELS · Updated October 12, 2026

- [Airalo API integration Sell Airalo eSIMs on your travel website, ready connector](https://phptravels.com/integrations/airalo-api-integration)
- [Tours API Tours, activities and attraction tickets through one API](https://phptravels.com/tours-api)
- [Viator travel agent Portal, commission and a connected tour workflow](https://phptravels.com/viator-travel-agent)
- [Tiqets API integration Tiqets attraction tickets in your booking engine](https://phptravels.com/integrations/tiqets-api-integration)
- [Tour operator software Departures, itineraries, guaranteed minimums and agent sales](https://phptravels.com/tour-operator-software)
- [Tours & activities Packages and excursions](https://phptravels.com/features/tours)
