# Booking Reviews API

Extract Booking.com hotel reviews, ratings, stars, and reviewer details from hotel URLs

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

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

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

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `urls` | string | Yes | Booking.com hotel URL to scrape reviews from. |
| `maxReviewsPerHotel` | integer | No | Number of reviews to return. Use 0 for all. |
| `sortBy` | string | No | Sort order for reviews. |
| `cutoffDate` | date | No | Stop loading older/newer reviews past this date. Only applies when Sort By = Newest first OR Oldest first. |
| `reviewScores` | array | No | Filter to reviews in these score bands. Leave empty for all. |

## Example

```bash
curl -X POST https://api.mindcase.co/v1/data/booking/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/booking/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 |
| `reviewTitle` | Review Title | text |
| `liked` | Liked | text |
| `disliked` | Disliked | text |
| `rating` | Rating | rating |
| `postedDate` | Posted Date | text |
| `language` | Language | text |
| `travelerType` | Traveler Type | text |
| `room` | Room | text |
| `checkIn` | Check-In | text |
| `checkOut` | Check-Out | text |
| `helpfulVotes` | Helpful Votes | number |
| `photos` | Photos | array |
| `propertyResponse` | Property Response | text |
| `reviewerName` | Reviewer Name | text |
| `reviewerLocation` | Reviewer Location | text |
| `reviewerAvatar` | Reviewer Avatar | url |
| `hotel` | Hotel | object |
