Skip to main content
Beyond reference data, Voyant Data exposes business and content data for the places travelers care about: reviews, hotels, restaurants, and experiences. Each is its own namespace with its own scope, sourced from Google and TripAdvisor.
import { createVoyantDataClient } from "@voyant-travel/data-sdk";

const client = createVoyantDataClient({ apiKey: process.env.VOYANT_API_KEY! });

Reviews

Google Reviews, Extended Reviews, and Q&A, plus Trustpilot. Requires data:reviews:read.
const qa = await client.reviews.google.qa.run(input);
Key types: GoogleReviewsRequest, GoogleQaRequest, TrustpilotSearchRequest.

Hotels

Google Hotels and TripAdvisor, hotel-scoped. Requires data:hotels:read.
const search = await client.hotels.google.hotelSearches.create(input);

const locations = await client.hotels.tripadvisor.reference.locations.list({
  country: "GB",
});
Key types: GoogleHotelSearchesRequest, TripadvisorReferenceLocation.

Restaurants

TripAdvisor restaurants. Requires data:restaurants:read.
const restaurants = await client.restaurants.tripadvisor.searches.create(input);
Key type: TripadvisorSearchRequest.

Experiences

TripAdvisor attractions and experiences. Requires data:experiences:read.
const reviews = await client.experiences.tripadvisor.reviews.list({ limit: 5 });
Key type: TripadvisorReviewsRequest.

Scopes summary

NamespaceScope
client.reviews.*data:reviews:read
client.hotels.*data:hotels:read
client.restaurants.*data:restaurants:read
client.experiences.*data:experiences:read
All methods return the standard ListResponse<T> and SingleResponse<T> envelopes and throw VoyantApiError on failure. See Errors and transport.