TripAdvisor

Get the trip advisor, along with location details, comment and photos

This widget supports multiple actions. For a more comprehensive understanding of its functionality, we recommend reviewing the following documentation carefully.

You need to pass both the action and other input parameters of the chosen action to your module_config

Try it in the Widget Center

Click this url to try this widget and copy the Pro Config template.

Usage

Search Location by Query

action search_location

Input Parameters

Name
Type
Description
Default
Required

action

string

The action to perform. Valid options are 'search_location', 'location_details', 'location_reviews', 'location_photos', 'search_nearby_location'

search_location

query

string

Text to use for searching based on the name of the location

category

string

Filters result set based on property type. Valid options are "hotels", "attractions", "restaurants", and "geos"

hotels

phone

string

Phone number to filter the search results by (this can be in any format with spaces and dashes but without the "+" sign at the beginning)

address

string

Address to filter the search results by

lat_long

string

Latitude/Longitude pair to scope down the search around a specifc point - eg. "42.3455,-71.10767"

37.7749,-122.4194

radius

string

Length of the radius from the provided latitude/longitude pair to filter results.

radius_unit

string

Unit for length of the radius. Valid options are "km", "mi", "m" (km=kilometers, mi=miles, m=meters)

km

language

string

The language in which to return results (e.g. "en" for English or "es" for Spanish) from the list of our Supported Languages.

en

Output Parameters

Name
Type
Description
File Type

data

array

The data returned by the TripAdvisor

Output Example

Get Location Details

action location_details

Input Parameters

Name
Type
Description
Default
Required

action

string

The action to perform. Valid options are 'search_location', 'location_details', 'location_reviews', 'location_photos', 'search_nearby_location'

location_details

location_id

string

The location ID to get details for

language

string

The language in which to return results (e.g. "en" for English or "es" for Spanish) from the list of our Supported Languages.

en

currency

string

The currency code to use for request and response (should follow ISO 4217).

USD

Output Parameters

Name
Type
Description
File Type

data

array

The data returned by the TripAdvisor

Output Example

Get Location Reviews

action location_reviews

Input Parameters

Name
Type
Description
Default
Required

action

string

The action to perform. Valid options are 'search_location', 'location_details', 'location_reviews', 'location_photos', 'search_nearby_location

location_reviews

location_id

string

The location ID to get details for

language

string

The language in which to return results (e.g. "en" for English or "es" for Spanish) from the list of our Supported Languages.

en

limit

integer

The number of reviews to return

5

offset

integer

The number of reviews to skip

0

Output Parameters

Name
Type
Description
File Type

data

array

The data returned by the TripAdvisor

Output Example

Get Location Photos

action location_photos

Input Parameters

Name
Type
Description
Default
Required

action

string

The action to perform. Valid options are 'search_location', 'location_details', 'location_reviews', 'location_photos', 'search_nearby_location'

location_photos

location_id

string

The location ID to get details for

language

string

The language in which to return results (e.g. "en" for English or "es" for Spanish) from the list of our Supported Languages.

en

limit

integer

The number of reviews to return

5

offset

integer

The number of reviews to skip

0

source

string

A comma-separated list of allowed photo sources. Allowed values are 'Expert', 'Management', 'Traveler'. If not specified, allow photos from all sources.

Output Parameters

Name
Type
Description
File Type

data

array

The data returned by the TripAdvisor

Output Example

Search Nearby Location

action search_nearby_location

Input Parameters

Name
Type
Description
Default
Required

action

string

The action to perform. Valid options are 'search_location', 'location_details', 'location_reviews', 'location_photos', 'search_nearby_location'

search_nearby_location

lat_long

string

Latitude/Longitude pair to scope down the search around a specifc point - eg. "42.3455,-71.10767"

37.7749,-122.4194

category

string

Filters result set based on property type. Valid options are "hotels", "attractions", "restaurants", and "geos"

hotels

phone

string

Phone number to filter the search results by (this can be in any format with spaces and dashes but without the "+" sign at the beginning)

address

string

Address to filter the search results by

radius

string

Length of the radius from the provided latitude/longitude pair to filter results.

radius_unit

string

Unit for length of the radius. Valid options are "km", "mi", "m" (km=kilometers, mi=miles, m=meters)

km

language

string

The language in which to return results (e.g. "en" for English or "es" for Spanish) from the list of our Supported Languages.

en

Output Parameters

Name
Type
Description
File Type

data

array

The data returned by the TripAdvisor

Output Example

Last updated