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
- 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.
- 4.7★Evening desert safari with dinner6 h · 4.7 rating · Free cancellation–per adult
- 4.5★Dhow dinner cruise at Dubai Marina2 h · Inclusions and exclusions listed–per adult
- Abu Dhabi day trip from Dubai10 h · Itinerary with map stops–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.
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 APISearch, results and product pages designed and coded from scratch | PHPTRAVELSBranded tour search, results and detail pages already in place |
| Viator connection | Custom build on the Viator APISearch, product detail and pricing calls written and tested in-house | PHPTRAVELSExisting Viator module with sandbox, credential check and markup |
| Product content | Custom build on the Viator APIItinerary, inclusion and review mapping still to build | PHPTRAVELSInclusions, exclusions, itinerary, reviews and policy already mapped |
| Admin and margin | Custom build on the Viator APIBooking records and pricing rules still to build | PHPTRAVELSSupplier price and selling price stored with every booking |
| Other products | Custom build on the Viator APIFlights, hotels and your own tours are separate projects | PHPTRAVELSFlight, 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 salesIt 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
- Airalo API integrationSell Airalo eSIMs on your travel website, ready connector
- Tours APITours, activities and attraction tickets through one API
- Viator travel agentPortal, commission and a connected tour workflow
- Tiqets API integrationTiqets attraction tickets in your booking engine
- Tour operator softwareDepartures, itineraries, guaranteed minimums and agent sales
- Tours & activitiesPackages and excursions
