0% found this document useful (0 votes)
117 views6 pages

CC15 Case Analysis 2 Group Task 4

The document discusses TripAdvisor's API for integrating TripAdvisor content and services into other applications and websites. It provides an overview of TripAdvisor's API authentication requirements, strategies, and sample code to handle rate limiting and errors. It also describes TripAdvisor's Content API, TripConnect for B2B partners, and Meta API that partners can use to display TripAdvisor data, generate bookings, and allow customers to book directly on TripAdvisor sites.

Uploaded by

Adam Blanza
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
117 views6 pages

CC15 Case Analysis 2 Group Task 4

The document discusses TripAdvisor's API for integrating TripAdvisor content and services into other applications and websites. It provides an overview of TripAdvisor's API authentication requirements, strategies, and sample code to handle rate limiting and errors. It also describes TripAdvisor's Content API, TripConnect for B2B partners, and Meta API that partners can use to display TripAdvisor data, generate bookings, and allow customers to book directly on TripAdvisor sites.

Uploaded by

Adam Blanza
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

University of the Cordilleras

TripAdvisor

In Partial Fulfilment
Of the requirement for
CC15 Systems Integration and Architecture

Submitted by
Adam Blanza
Carina Tayko
Razaele Taberdo

Submitted to
Ma’am Joan M. Peralta
GROUP TASK 4

A. API Authentication

1. API Scheme

Tripadvisor is partnered with the world's largest travel site that features reviews
and advice on hotels, resorts, flights, vacation rentals, vacation packages,
travel guides, and more. Tripadvisor links to specific hotels, and earns profits of
commissions for hotel bookings. The users are able to gain knowledge for their
own purpose of research and planning stages. This helps the users to discover
great ideas for their trips. It will give credits both to the users and the API as
this fills up the required network platform of the Tripadvisor.

2. Authentication Requirements

The API for TripAdvisor states that all API requests must be done over “HTTP”.
This will be done by setting a user agent to the partner and with the use of
api.tripadvisor.com for all the API calls in order to authenticate all the sended
requests. Another important note would be to safeguard or abstract the
access key of the user to include it with each request and then set the value
of the X-TripAdvisor-API-Key header section.

If to any extent the user needs to make an API call from the client code, then
it should also be considered that it may also expose the key code to other
scripts and browser extensions on the client. TripAdvisor has all the reserved
rights to reject any access key and can generate a new one incase if the key
has been misled unknowingly.

3. Authentication Strategies

Tripadvisors strategy applies to both the user and the API, which provides free
access and outstanding updated travel website and application content
through API. The Tripadvisor content requires API Key authentication, and sets
a daily per-second call limit on each key used to access the content API. This
call can be set by default up to 50 calls per second and can escalate up to
10000 calls during the whole day. Upon exceeding the limits calls of the API, it
then returns an HTTP status code of 429, referred to as “too many requests”.

Caching also reduces the load on Tripadvisor’s content servers and has
implemented HTTP cache headers. All Tripadvisor API traffic is routed through
a Content Delivery Network, which can cache the content locally so that it
can be served more quickly, giving partners who make frequent repeated
calls for the same location better response time and less impact on their API
call.
4. Authentication Sample Code

Rate Limits per second


{
"error": {
"message": "Maximum number of requests per second exceeded: (Max: 50 per sec)",
"code": "150",
"type": "TooManyRequestsException" }
}

Rate Limits per day


{
"error": {
"message": "Maximum number of daily requests exceeded: (Max: 100000 per day)",
"code": "151",
"type": "TooManyRequestsException"
}
}

Catches and Errors

Invalid client key


{
"error": {
"message": "invalid client key: 3cacf",
"code": "160",
"type": "UnauthorizedException"
}
}

Too many requests (per seconds)


{
"error": {
"message": "Maximum number of requests per second exceeded: (Max: 25 per sec)",
"code": "150",
"type": "TooManyRequestsException"
}
}

Too many requests (per day)


{
"error": {
"message": "Maximum number of daily requests exceeded: (Max: 1000 per day)",
"code": "151",
"type": "TooManyRequestsException"
}
}

Invalid location_id
{
"error": {
"message": "The location was not found.","code": "101",
"type": "NotFoundException"
}
}

Method not found


{
"error": {
"message": "The method was not found.",
"code": "101",
"type": "NotFoundException"
}
}

Invalid connection
{
"error": {
"message": "Cannot view this connection at this level.",
"code": "120",
"type": "BadRequestException"
}
}

C. API Integration

1. Overview of the Application/System

Tripadvisor API key is used to integrate the service content into a website or a
mobile app, get reservations through the platform, and also direct your
customers’ reviews to Trip. It provides several variants according to the
applicant’s needs and requirements.

● Tripadvisor Content API


This kind of API provides Tripadvisor business ratings for free to be
displayed on your website. But this is granted only to B2C websites after
they’ve become approved partners. To become one, you have to fill in
the form at Tripadvisor service and wait for a decision on your
application.

● TripConnect for B2B partners

This is a whole set of solutions for businesses working in the Hotel and
Hospitality Industry. These API Tripadvisor keys help them to generate
new bookings and collect reviews easily. This package also is aimed at
so-called ‘Connectivity Partners’ – B2B internet services for the tourist
industry.

● Meta API for self-implemented partners

This particular kind of API is used by the Tripadvisor approved partners


(usually hotels, inns, and B&Bs) to show their prices and availability on
the Tripadvisor website online. This API also allows users to book
reservations right on Tripadvisor, without redirecting to a hotel landing
page.

References:

TripAdvisor LLC (2021). TripAdvisor Content API. Retrieved May 14, 2021, from
https://developer-tripadvisor.com/content-api/documentation/location/
Elfsight (2021). How to get Tripadvisor API access key and use it fast and easy.
Retrieved May 14, 2021, from
https://elfsight.com/blog/2020/10/how-to-get-tripadvisor-api-key/?fbclid=IwAR3idSI3
xi0EQtMcUdFvUZOswpm2H8lnysCi4FzwY2P5-I66phuNMv9Hl9s
High Scalability (2011). TripAdvisor Architecture - 40M Visitors, 200M Dynamic Page
Views, 30TB Data
http://highscalability.com/blog/2011/6/27/tripadvisor-architecture-40m-visitors-200m
-dynamic-page-view.html
Programmable Web (2012). Tripadvisor API
https://www.programmableweb.com/api/tripadvisor
Programmable Web (2015). Top 10 Travel APIs: Uber, TripAdvisor and Expedia
https://www.programmableweb.com/news/top-10-travel-apis-uber-tripadvisor-and-
expedia/analysis/2015/04/24
LastCall the RapidAPI Blog (2021). Tripadvisor Content API
https://rapidapi.com/blog/directory/tripadvisor-content/
Tripadvisor Affiliate Program (2021). What is the Tripadvisor Affiliate Program?
https://www.tripadvisor.com/affiliates

You might also like