Looking for a simple and efficient way to scrape Tripadvisor data? You could not have found a better place. This article covers exactly that: import Tripadvisor data to Google Sheets.
We can scrape different kinds of data from Tripadvisor such as flight information, hotels data, rentals and restaurants information, and various other data–most data from Tripadvisor, in other words.
We’ll use an extension in Google Sheets to import Tripadvisor data to Google Sheets by using Tripadvisor API. And not just scrape Tripadvisor data but automatically update the imported data so that whenever a change in the information occurs, the same is reflected in the imported data.
But all that later. Let us first take a look at the steps we’ll encounter.
Steps to import Tripadvisor data to Google Sheets:
How to import Tripadvisor data to Google Sheets
Install the Amigo Data extension in Google Sheets
Install the Amigo Data Google Sheets add-on from the Google Workspace Marketplace.
Alternatively, you can get it from Google Sheets.
- Open a new sheet
- Go to Extensions→Add-ons→Get add-ons
- Search for Amigo and install
Get the API endpoint URL
Sign up or log in to RapidAPI.
Search for Tripadvisor API in the RapidAPI Hub and click the first result. Or go directly to the API documentation page.
Click on the Subscribe to Test button and subscribe to a plan of your choice, post which you’ll be able to make request to the API and import Tripadvisor data to Google Sheets.
Click Endpoints to go back to the API Playground. On the left is the list of the type of data that can be retrieved.
Expand any of the endpoints collection and click on the specific endpoint to retrieve the data. For example, to import the rental details for a particular rental property, expand the Vacation Rentals and click the Rental Details endpoint.
In the Required Parameters we’ll need to specify the rental ID.
The rental ID can be found with the Rental Search endpoint.
After entering the parameter, click the Test Endpoint button to view the results. The result will be displayed in JSON format under the Results section on the right, if the parameter is valid.
The API endpoint URL along with the headers–which will be required to import Tripadvisor data to Google Sheets–can be found in the Code Snippets section.
Change the language from Node.js (Axios) to Shell→cURL. Copy the URL and note also the headers.
Import the data to Google Sheets
Open Google Sheets and launch Amigo. To connect to Amigo, go to Extensions→Amigo: Data Exports and Reports→Connect.
We’ll be presented with a list of sources to connect and import data. Select Custom API.
Paste the endpoint URL (without the apostrophes) in the API URL field.
Then expand the Details tab and enter the headers. The headers can be found in the Code Snippets. The characters to the left of the colon are the header names and those to the right are the header values. Enter these as separate headers. Do not include the apostrophes.
Name: X-RapidAPI-Host, Value: tripadvisor16.p.rapidapi.com
Name: X-RapidAPI-Key, Value: YOUR_API_KEY
Click the PREVIEW button. Flatten and expand the nested datasets and delete the columns that are not required. Then click IMPORT.
The data will be imported into Google Sheets in a moment. Below is a snippet of the imported data.
We can likewise scrape other Tripadvisor data such as flight information, hotels details, car rentals, cruise information, and restaurants among others.
After the data have been imported, we can set a refresh schedule and the data will be updated automatically at regular intervals–weekly, daily, hourly, or on specific days. And, if we so wish, set an alert so the data are sent to us via email and/or Slack. Learn how to set a refresh schedule.
Visit our blog to find out about the kinds of data that you can import to Google Sheets and many other useful–and also cool–things you can do with Amigo Data.
Some recommended articles:
Import Zillow data to Google Sheets
Import AirDNA Data To Google Sheets