# Facebook Reels

Pull reels from public Facebook pages — play count, publish time, audio track, video and thumbnail links, dimensions, and caption/dubbed languages, with the owning page's identity. No captions text or like/comment counts (this source returns plays as the only engagement number).

**Pricing:** $6 / 1k reel

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

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

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `startUrls` | array | Yes | Facebook page or profile URLs, one per line — returns that page's recent reels. |
| `maxReels` | integer | No | How many reels to pull per page. |

## Example

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

```python
import requests

resp = requests.post(
    "https://api.mindcase.co/api/v1/agents/facebook/reels/run",
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {
    "startUrls": [
        "..."
    ]
}},
)
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 |
|-------|--------------|------|
| `reelUrl` | Reel URL | text |
| `reelId` | Reel ID | text |
| `pageName` | Page Name | text |
| `pageUrl` | Page URL | text |
| `page` | Page | object |
| `plays` | Plays | number |
| `playsLabel` | Plays Label | text |
| `publishedAt` | Published At | text |
| `durationSec` | Duration (sec) | number |
| `dimensions` | Dimensions | text |
| `videoUrl` | Video URL | text |
| `thumbnailUrl` | Thumbnail URL | text |
| `audioTitle` | Audio Title | text |
| `audioArtist` | Audio Artist | text |
| `audioTrack` | Audio Track | text |
| `audioType` | Audio Type | text |
| `remixable` | Remixable | boolean |
| `audioMuted` | Audio Muted | boolean |
| `captionLanguages` | Caption Languages | object_array |
| `captionsFileUrl` | Captions File URL | text |
| `dubbedAudioLanguages` | Dubbed Audio Languages | object_array |
| `error` | Error | text |
| `errorDescription` | Error Description | text |
