# TripAdvisor Reviews API

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

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

**Endpoint:** `POST /v1/data/tripadvisor/reviews/run`

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

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `urls` | string | Yes | TripAdvisor URL of the place to scrape reviews from. |
| `maxResults` | integer | No | Number of reviews to return. 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/v1/data/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/v1/data/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/v1/jobs/JOB_ID \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"

# 2) when status == completed, fetch the rows
curl https://api.mindcase.co/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 |
|-------|--------------|------|
| `reviewId` | Review ID | text |
| `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 |
| `helpfulVotes` | Helpful Votes | number |
| `subratings` | Subratings | object_array |
| `photos` | Photos | array |
| `ownerResponse` | Owner Response | object |
| `reviewerName` | Reviewer Name | text |
| `reviewerProfile` | Reviewer Profile | url |
| `reviewerLocation` | Reviewer Location | text |
| `reviewerContributions` | Reviewer Contributions | number |
| `reviewerAvatar` | Reviewer Avatar | url |
| `place` | Place | object |
