# Facebook Reviews

Extract Facebook page reviews — the recommend / don't-recommend flag, review text, date, reviewer, likes, tags, and any photos — from one or more Facebook page URLs

**Pricing:** $1.5 / 1k review

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

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

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `urls` | array | Yes | Facebook page URLs, one per line — the page (e.g. https://www.facebook.com/disneylandparis) or its /reviews tab. |
| `maxResults` | integer | No | Maximum number of reviews to pull per page. |

## Example

```bash
curl -X POST https://api.mindcase.co/api/v1/agents/facebook/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/facebook/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 |
|-------|--------------|------|
| `recommended` | Recommended | text |
| `reviewText` | Review Text | text |
| `reviewDate` | Review Date | text |
| `reviewUrl` | Review URL | text |
| `reviewerName` | Reviewer Name | text |
| `reviewerProfileUrl` | Reviewer Profile URL | text |
| `likes` | Likes | number |
| `commentCount` | Comment Count | number |
| `tags` | Tags | array |
| `reviewerAvatar` | Reviewer Avatar | text |
| `topComments` | Top Comments | object_array |
| `photos` | Photos | object_array |
| `error` | Error | text |
| `errorDescription` | Error Description | text |
