# Tripadvisor Restaurant Scraper (Detail)

Extract detailed information from TripAdvisor restaurant detail pages, including website URL, phone number, email, and more.

- Template page: [https://www.octoparse.com/template/tripadvisor-restaurant-scraper-detail](https://www.octoparse.com/template/tripadvisor-restaurant-scraper-detail)
- Categories: Travel
- Status: `PUBLISHED`
- Run mode: `BOTH`

## Pricing

Free.

## What is an Octoparse template?

An Octoparse template is a ready-to-use scraping workflow with predefined inputs and structured outputs. Use the exact parameter keys below; do not invent parameters.

## Overview

This ready-to-use template collects structured data from detail pages.

## Output

The current workflow extracts 13 fields, including `URL_original`, `Titre`, `Website`, `Phone`, `Email`, `Adresse`, `Dimanche`, `Lundi`, `Mardi`, `Mercredi`, `Jeudi`, `Vendredi`, `Samedi`.

## Use Cases

- Use structured results for research, comparison, and monitoring.
- Collect rows without building the extraction workflow from scratch.
- Combine results with other templates for downstream enrichment.
- Review a representative result before starting a large batch.

## Why Octoparse

- **No coding required:** complete Restaurant Detail Page URLs and start the template in local or cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### Restaurant Detail Page URLs

Optional. Restaurant Detail Page URLs Constraints: minItems=1; maxItems=10000; items.minLength=1; items.maxLength=10000.

## How to Use

# Tripadvisor Restaurant Scraper (Detail)

Collects detail-page data from [Tripadvisor](https://www.tripadvisor.com/) restaurant pages, including website URL, phone number, email, and address.

## Pricing

No per-line charge. Octoparse plan or resource limits may still apply.

## Output Fields

Returns: `URL_original`, `Titre`, `Website`, `Phone`, `Email`, `Adresse`, `Dimanche`, `Lundi`, `Mardi`, `Mercredi`, `Jeudi`, `Vendredi`, `Samedi`

`Jeudi`, `Vendredi`, and `Samedi` can be empty when the source record does not provide them.

## Input

- **Restaurant Detail Page URLs** (optional): Enter one or more values, one per line.

## How to Use

1. Open the template and select **Try it** or **Start**.
2. Complete the input fields listed above.
3. Run the task locally with the Octoparse desktop app; keep your computer and Octoparse open while the task is running.
4. Review the output rows and export or process the structured data.

## Scheduling and Export

You can schedule recurring runs, export the collected data, and reuse it through Octoparse OpenAPI or the [AgentTools API](https://www.octoparse.com/docs/en/api-reference/agenttools-api/search-templates). Export to CSV, Excel, JSON, databases, or cloud storage, or send to reporting and AI workflows through Octoparse APIs. Scheduling and API access may require a paid Octoparse plan.

## Tips

- Start with one or a few inputs and review the returned rows before scaling the task.
- Use the most specific valid Restaurant Detail Page URLs to reduce unrelated or duplicate records.
- Use a stable URL or identifier from `URL_original`, `Titre`, `Website`, `Phone`, `Email`, `Adresse`, `Dimanche`, `Lundi`, `Mardi`, `Mercredi` as the deduplication key when available.

## Limitations

Results depend on what the source site exposes at run time. Fields may be empty when a source page does not provide a value. The template enforces the input limits shown above.

## Tips

Use specific, valid inputs and review a representative result before starting a large batch. Remove duplicate inputs when repeated records are not needed.

## FAQ

### What do I need to enter?

Use the exact inputs and limits listed above.

### What data does this template return?

See Output Schema below; availability can vary by source record.

### How is usage billed?

See the Pricing section above for current pricing and billing details.

## Related Templates

- [Tripadvisor Restaurant Scraper (Listing)](https://www.octoparse.com/template/tripadvisor-restaurant-scraper-listing)
- [TripAdvisor Hotel Detail Scraper (for Italy)](https://www.octoparse.com/template/crawler-dettagli-hotel-tripadvisor)
- [Uber Eats Restaurant Details Scraper](https://www.octoparse.com/template/uber-eats-restaurant-details-scraper)
- [Uber Eats Restaurant Listing Scraper](https://www.octoparse.com/template/uber-eats-restaurant-listing-scraper)
- [Tripadvisor Hotel Details Scraper](https://www.octoparse.com/template/tripadvisor-hotel-detalles-scraper)

## Input Schema

```json
{
  "title": "Tripadvisor Restaurant Scraper (Detail) input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "restaurant_Detail_Page_URLs": {
      "title": "Restaurant Detail Page URLs",
      "description": "Restaurant Detail Page URLs",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 10000
      },
      "minItems": 1,
      "maxItems": 10000,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": []
}
```

## Input JSON Example

Example 1

```json
{}
```

Example 2

```json
{
  "restaurant_Detail_Page_URLs": [
    "https://www.tripadvisor.com/Restaurant_Review-g293890-d17433340-Reviews-Lavie_Garden-Kathmandu_Kathmandu_Valley_Bagmati_Zone_Central_Region.html",
    "https://www.tripadvisor.com/Restaurant_Review-g293890-d13625935-Reviews-Yala_Cafe-Kathmandu_Kathmandu_Valley_Bagmati_Zone_Central_Region.html",
    "3. https://www.tripadvisor.com/Restaurant_Review-g293890-d26562178-Reviews-Bagaicha-Kathmandu_Kathmandu_Valley_Bagmati_Zone_Central_Region.html",
    "https://www.tripadvisor.com/Restaurant_Review-g293890-d30526592-Reviews-Jimbu_Thakali_By_Capital_Grill_Kalimati-Kathmandu_Kathmandu_Valley_Bagmati_Zone_.html",
    "https://www.tripadvisor.com/Restaurant_Review-g293890-d1123614-Reviews-The_Chimney_Restaurant-Kathmandu_Kathmandu_Valley_Bagmati_Zone_Central_Region.html"
  ]
}
```

Example 3

```json
{
  "restaurant_Detail_Page_URLs": [
    "https://www.tripadvisor.fr/Restaurants-g1792455-Charente_Nouvelle_Aquitaine.html"
  ]
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "URL_original": {
      "type": "string",
      "description": ""
    },
    "Titre": {
      "type": "string",
      "description": ""
    },
    "Website": {
      "type": "string",
      "description": ""
    },
    "Phone": {
      "type": "string",
      "description": ""
    },
    "Email": {
      "type": "string",
      "description": ""
    },
    "Adresse": {
      "type": "string",
      "description": ""
    },
    "Dimanche": {
      "type": "string",
      "description": ""
    },
    "Lundi": {
      "type": "string",
      "description": ""
    },
    "Mardi": {
      "type": "string",
      "description": ""
    },
    "Mercredi": {
      "type": "string",
      "description": ""
    },
    "Jeudi": {
      "type": "string",
      "description": ""
    },
    "Vendredi": {
      "type": "string",
      "description": ""
    },
    "Samedi": {
      "type": "string",
      "description": ""
    }
  },
  "title": "Tripadvisor Restaurant Scraper (Detail) output",
  "description": "Initial output fields derived from the current published implementation. Field descriptions are maintained by Data Center; production field names and types should be refreshed from recent successful runs.",
  "additionalProperties": false
}
```

## Output Example

Example 1

```json
{
  "URL_original": "https://www.tripadvisor.com/Restaurant_Review-g187323-d24151088-Reviews-Restaurant_Wilhelm-Berlin.html",
  "Titre": "",
  "Website": "",
  "Phone": "",
  "Email": "",
  "Adresse": "",
  "Dimanche": "",
  "Lundi": "",
  "Mardi": "",
  "Mercredi": "",
  "Jeudi": "",
  "Vendredi": "",
  "Samedi": ""
}
```

Example 2

```json
{
  "URL_original": "https://www.tripadvisor.com/Restaurant_Review-g293890-d17433340-Reviews-Lavie_Garden-Kathmandu_Kathmandu_Valley_Bagmati_Zone_Central_Region.html",
  "Titre": "",
  "Website": "",
  "Phone": "",
  "Email": "",
  "Adresse": "",
  "Dimanche": "",
  "Lundi": "",
  "Mardi": "",
  "Mercredi": "",
  "Jeudi": "",
  "Vendredi": "",
  "Samedi": ""
}
```

Example 3

```json
{
  "URL_original": "https://www.tripadvisor.fr/Restaurants-g1792455-Charente_Nouvelle_Aquitaine.html",
  "Titre": "",
  "Website": "",
  "Phone": "",
  "Email": "",
  "Adresse": "",
  "Dimanche": "",
  "Lundi": "",
  "Mardi": "",
  "Mercredi": "",
  "Jeudi": "",
  "Vendredi": "",
  "Samedi": ""
}
```

## API

`POST https://openapi.octoparse.com/api/agentTools/executeTask`

This is the OpenAPI Agent Tools `executeTask` endpoint. Authenticate with a Bearer token.

Request body:

`templateName` is the template slug; `parameters` is a JSON object string whose keys match Input Schema; `taskName`, `idempotencyKey`, and `maxCollectedRows` are optional.

Obtain a token:

```http
POST https://openapi.octoparse.com/token
Content-Type: application/json

{
  "username": "YOUR_USERNAME",
  "password": "YOUR_PASSWORD",
  "grant_type": "password"
}
```

Use `data.access_token` as `Authorization: Bearer <token>`. After starting, poll `getTaskStatus` and export with `exportData`.

```json
{
  "templateName": "tripadvisor-restaurant-scraper-detail",
  "taskName": "Tripadvisor Restaurant Scraper (Detail)",
  "parameters": "{}"
}
```

## Python Example

```python
import json
import requests

OPENAPI_BASE = "https://openapi.octoparse.com"
ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"

parameters = json.loads("{}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "tripadvisor-restaurant-scraper-detail",
        "taskName": "Tripadvisor Restaurant Scraper (Detail)",
        "parameters": json.dumps(parameters, ensure_ascii=False),
    },
    timeout=60,
)
print(response.status_code)
print(response.json())
```

## HTTP/cURL Example

```bash
curl -X POST "https://openapi.octoparse.com/api/agentTools/executeTask" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "templateName": "tripadvisor-restaurant-scraper-detail",
  "taskName": "Tripadvisor Restaurant Scraper (Detail)",
  "parameters": "{}"
}
JSON
```

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `tripadvisor-restaurant-scraper-detail`, inspect its inputs, create a cloud task with the exact Input Schema keys, and export JSON results.

## Machine-readable Resources

- [Template contract](https://www.octoparse.com/templates/tripadvisor-restaurant-scraper-detail.json)
- [Manifest](https://www.octoparse.com/templates/tripadvisor-restaurant-scraper-detail-manifest.json)
