# TripAdvisor Reviews

Extract Tripadvisor reviews for specified places, with text, rating, dates, reviewer, owner responses, and place details

**Pricing:** $0.8 / 1k reviews

**Endpoint:** `POST /api/v1/agents/tripadvisor/reviews/run`

**Auth:** `Authorization: Bearer mk_live_...`

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `urls` | array | Yes | TripAdvisor place URLs to scrape reviews from. |
| `maxResults` | integer | No | Reviews per place. Use 0 for all. |
| `lastReviewDate` | date | No | Stop loading reviews older than this date. |
| `reviewRatings` | array | No | Filter to reviews with these ratings. Leave empty for all. |
| `reviewsLanguages` | array | No | Filter to reviews in these languages. Leave empty for all. |
| `includeReviewerInfo` | boolean | No | Pull each reviewer's name, profile pic, location, etc. |

## Example

```bash
curl -X POST https://api.mindcase.co/api/v1/agents/tripadvisor/reviews/run \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"params":{"urls":["..."]}}'
```

```python
import requests

resp = requests.post(
    "https://api.mindcase.co/api/v1/agents/tripadvisor/reviews/run",
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {
    "urls": [
        "..."
    ]
}},
)
data = resp.json()
```

## Get the results

`run` is async and returns a `job_id`. Poll until `status` is `completed`, then read the rows:

```bash
# 1) check status
curl https://api.mindcase.co/api/v1/jobs/JOB_ID \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"

# 2) when status == completed, fetch the rows
curl https://api.mindcase.co/api/v1/jobs/JOB_ID/results \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"
```

Full API reference (auth, jobs, balance, endpoints): https://mindcase.co/skills.md

## Response columns

| Field | Display name | Type |
|-------|--------------|------|
| `placeUrl` | Place URL | url |
| `reviewUrl` | Review URL | url |
| `reviewTitle` | Review Title | text |
| `reviewText` | Review Text | text |
| `rating` | Rating | rating |
| `postedDate` | Posted Date | text |
| `travelDate` | Travel Date | text |
| `tripType` | Trip Type | text |
| `language` | Language | text |
| `originalLanguage` | Original Language | text |
| `machineTranslated` | Machine Translated | boolean |
| `subratings` | Subratings | object_array |
| `images` | Images | array |
| `ownerResponse` | Owner Response | text |
| `responseDate` | Response Date | text |
| `responder` | Responder | text |
| `reviewer` | Reviewer | object |
| `place` | Place | object |
