> ## Documentation Index
> Fetch the complete documentation index at: https://v3.captaindata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Search TripAdvisor

> Extracts the results of any search from TripAdvisor.

To use the Search TripAdvisor action, follow these steps to extract search results efficiently.

<Steps>
  <Step title="Access TripAdvisor">
    Go to TripAdvisor [https://www.tripadvisor.com](https://www.tripadvisor.com) and perform a search.
  </Step>

  <Step title="Copy URL">Copy the URL from your browser's address bar.</Step>

  <Step title="Paste URL">
    Paste the URL into the provided input field. Ensure the URL matches the
    format:
    [https://www.tripadvisor.fr/Restaurants-g187147-Paris\_Ile\_de\_France.html](https://www.tripadvisor.fr/Restaurants-g187147-Paris_Ile_de_France.html)
  </Step>
</Steps>

<Info>
  Ensure the URL matches the required format for successful extraction.
</Info>

### Inputs

<ParamField path="tripadvisor_search_url" type="string" required={true} primary={true}>
  The URL must match the pattern tripadvisor.\*/(Hotels|Restaurants)-g
</ParamField>

### Parameters

<ParamField path="max_results" type="number" default={100} minimum={1} maximum={30000}>
  Maximum number of results to extract. Default is 100, with a maximum of
  30,000.
</ParamField>

### Output Fields

The action returns the following fields:

<ResponseField>
  <Expandable title="properties">
    <ResponseField name="name" type="string">
      The name of the property or restaurant.
    </ResponseField>

    <ResponseField name="photos" type="array">
      A collection of photo URLs.
    </ResponseField>

    <ResponseField name="property_id" type="string">
      The unique identifier for the property.
    </ResponseField>

    <ResponseField name="rating" type="number">
      The average rating of the property.
    </ResponseField>

    <ResponseField name="review_count" type="integer">
      The total number of reviews.
    </ResponseField>

    <ResponseField name="tripadvisor_profile_url" type="string">
      The URL to the TripAdvisor profile.
    </ResponseField>
  </Expandable>
</ResponseField>

Here is the JSON schema for the output:

<Accordion title="Show JSON Output Schema">
  ```json
  {
    "name": "string",
    "photos": ["string"],
    "property_id": "string",
    "rating": "number",
    "review_count": "integer",
    "tripadvisor_profile_url": "string"
  }
  ```
</Accordion>

<Note>
  Ensure that the input URL is correctly formatted to avoid errors in data
  extraction.
</Note>
