> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Facebook Followers & Following API

> Profiles that follow a Facebook page, or that the page follows, with name, profile URL, ID, avatar and bio. Choose followers, following, or both.

`POST /v1/data/facebook/followers/run`

**Pricing:** $0.0075 per profile ($7.50 per 1,000).

Give a Facebook page URL or handle, choose followers / following / both, and set how many profiles to return in total.

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**page\_urls** `string` *required*

Facebook page or profile URL, or vanity handle (e.g. cocacola).

Format e.g. `https://www.facebook.com/nike`.

**followType** `string` (default: follower)

Pull the page's followers, the profiles it follows, or both.

Allowed values: `follower` (Followers), `following` (Following).

**limit** `integer`

Number of profiles to return in total. Use 0 for all.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/facebook/followers/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "page_urls": "https://www.facebook.com/cocacola",
    "followType": "follower",
    "limit": 18
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/facebook/followers/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "page_urls": "https://www.facebook.com/cocacola",
    "followType": "follower",
    "limit": 18
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/facebook/followers/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "page_urls": "https://www.facebook.com/cocacola",
  "followType": "follower",
  "limit": 18
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one profile, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `followerName` | Follower Name | text |
| `profileUrl` | Profile URL | text |
| `profileId` | Profile ID | text |
| `avatarUrl` | Avatar URL | text |
| `bio` | Bio | text |
| `relationship` | Relationship | text |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "facebook/followers",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "bio": null,
      "followerName": "Universo Lírico",
      "profileId": "61583051974742",
      "profileUrl": "https://www.facebook.com/people/Universo-L%C3%ADrico/61583051974742/",
      "avatarUrl": "https://scontent.fosu2-1.fna.fbcdn.net/v/t39.30808-1/687039155_122125385349101732_6269273176270575310_n.jpg?stp=cp0_dst-jpg_tt6&cstp=mx1254x1254&ctp=s80x80&_...",
      "relationship": "Follower"
    }
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.