AdcoraAI
AdcoraAI
Travel API IntegrationMay 24, 20268 min read

Case Study: Activities Booking Platform Using Viator API Integration

Hardeep SinghTravel Tech Architect
#Viator API#Booking Engine#Travel Tech#API Integration#Caching Strategy
Case Study: Activities Booking Platform Using Viator API Integration

Project Overview

The global tours and activities market has grown into a multi-billion dollar segment within the travel industry, yet for years it remained fragmented and difficult to access programmatically. When a travel startup approached us with the ambition of building a dedicated activities booking platform targeting B2C travelers and B2B travel agents, the central question was: which API could power the inventory at scale?

After evaluating several options, the team chose the Viator Partner API — backed by TripAdvisor — for its unmatched inventory of 300,000+ bookable experiences across 450+ destinations and 75+ countries. This case study walks through the full journey: requirements gathering, API evaluation, system architecture, integration challenges, and measurable outcomes post-launch.

Client Background

  • Industry: Online Travel (Activities & Experiences)
  • Business Model: B2C marketplace + B2B agent portal
  • Target Markets: Southeast Asia, Middle East, and Europe
  • Platform: Web application + Android & iOS apps
  • Integration Type: Viator Partner API — Merchant Access

The client's goal was to launch a white-label activities marketplace where travelers could search, compare, and book tours directly, while travel agents could access the same inventory through a dedicated B2B dashboard with commission visibility.

The Business Problem

Before integration, the client faced three core challenges:

  • No inventory of their own. Building a proprietary catalog of tours and activities requires direct contracts with thousands of operators — a process that takes years and significant capital.
  • Manual booking workflows. Their early pilot relied on email and WhatsApp confirmations, creating delays, errors, and poor customer experience.
  • Inconsistent pricing and availability. Activity availability changes rapidly. Without real-time API access, customers were frequently booking experiences that were no longer available on their chosen dates.

The decision to pursue Viator API integration was driven by the need to solve all three problems simultaneously — leveraging a mature, trusted inventory while enabling automated, real-time booking.

Solution Architecture

The platform was designed as a multi-layered system connecting the Viator Partner API to both a customer-facing web/app frontend and a B2B agent portal. To maintain high performance, we designed a dedicated middleware API gateway pattern.

Viator API Integration ArchitectureWeb / AppB2C TravelersAgent PortalB2B AgenciesAdcoraAI MiddlewareRedis Cache LayerRate-Limit Routing & loggingMerchant Checkout APIViator Partner APITripAdvisor Network

Key Architectural Decisions

  • API Gateway Pattern: Rather than calling the Viator API directly from the frontend, all requests were routed through a middleware layer. This allowed rate limit management, response caching for non-volatile data, and centralized error handling.
  • Caching Strategy: Product content — including tour descriptions, images, inclusions/exclusions, and meeting point details — was cached in Redis with a 24-hour TTL. Availability and pricing data was fetched in real time on each search or product page load.
  • Merchant Access Model: Since the client required full ownership of the checkout experience and payment collection, they pursued Merchant Access within the Viator Partner API. This gave them control over pricing presentation, discount logic, and customer communication.

Integration Phases

Phase 1: API Authentication & Environment Setup

The first step was establishing secure API Key authentication using Viator's credentials. A staging environment was set up for integration testing before connecting to production inventory.

Phase 2: Product Discovery & Search Integration

The Viator Search & Discovery API was integrated to power the platform's search experience. Users could search activities by destination, category, date range, price filters, and keyword-based search.

Search Discovery Caching FlowUser Query"Dubai Safari"Cache CheckHIT → Return CacheMISS → Query GDSViator API SearchFetch Live productsUpdate CacheTTL: 15 Mins

Phase 3: Real-Time Availability & Pricing

Before displaying a 'Book Now' button, the platform validated each product's live availability using the Viator Availability API. This critical step prevented customers from reaching checkout only to discover their selected date was sold out.

Real-Time Availability Validation SequenceUser FrontendMiddleware APIViator Engine1. Load Details / Check Date2. Check Live Availability3. Return Status (Available/Full)4. Enable "Book" or Show "Sold Out"

Phase 4: Booking Flow & Confirmation

The booking engine was built around the Viator Booking API with a multi-step confirmation flow. Pre-booking checks run immediately before payment to handle last-minute inventory shifts.

Merchant Booking & Confirmation Flow1. DetailsTraveler Info2. Pre-CheckAvailability API3. PaymentStripe/Telr4. SubmitViator API5. ConfirmSave PNR

Phase 5: Post-Booking Management

The Viator Booking Management API was integrated to handle cancellation processing according to Viator's policy rules automatically, as well as providing status updates and booking retrieval for the B2B agent dashboards.

Technical Challenges & Solutions

Challenge 1: API Rate Limits During Peak Search Traffic

Solution: A destination-level cache was implemented for search result sets, refreshed every 15 minutes. Individual product availability remained real-time. This reduced API calls by approximately 65%.

Challenge 2: Inconsistent Product Content

Solution: A content validation layer was built in middleware that scored each product's completeness before surfacing it in search results. Products below a quality threshold were flagged and hidden.

Results & Business Impact

MetricPre-IntegrationPost-Integration
Activities Available~200 (manual)85,000+ (live)
Booking Confirmation Time4–24 hoursInstant
Booking Error Rate18%< 1.2%
Agent Onboarding Time5–7 daysSame-day
Monthly Transactions~3004,200+ (Month 3)

The platform recorded a 14x increase in transactions within three months of launch, driven primarily by the expanded inventory and instant booking confirmation capability enabled by the Viator API.

Technology Stack

  • Backend: Node.js with Express (API middleware layer)
  • Frontend: React.js (web) + React Native (iOS & Android)
  • Database: PostgreSQL (booking records) + Redis (caching layer)
  • Infrastructure: AWS (EC2, RDS, SES)
  • Payment Gateway: Stripe (regional) + Telr (Middle East)
DEVELOPMENT AGENCY PARTNER

How AdcoraAI Can Help You Build This

At AdcoraAI, we specialize in travel technology development — from API integrations and booking engine architecture to full-stack travel portal development for OTAs, DMCs, and travel startups. Our team handles the end-to-end engineering so you can focus on growing your business.