> ## 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 Pages API

> Public Facebook page profiles: category, followers, contact details, rating, hours, owner, ad status, and links to Instagram, X, YouTube and TikTok.

`POST /v1/data/facebook/pages/run`

**Pricing:** $0.01 per page ($10.00 per 1,000).

Give the Facebook pages you want to profile, as handles or URLs, one per line.

## Request

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

**pageUrls** `string[]` *required*

A Facebook page to look up, either a handle like "nike" or a full URL like [https://www.facebook.com/NASA/](https://www.facebook.com/NASA/). Duplicate inputs are removed before the run.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/facebook/pages/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "pageUrls": [
      "https://www.facebook.com/Microsoft/",
      "https://www.facebook.com/Apple/",
      "https://www.facebook.com/NASA/"
    ]
  }
}'
```

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

r = requests.post(
    "https://api.mindcase.co/v1/data/facebook/pages/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "pageUrls": [
        "https://www.facebook.com/Microsoft/",
        "https://www.facebook.com/Apple/",
        "https://www.facebook.com/NASA/"
    ]
}},
)
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/pages/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "pageUrls": [
    "https://www.facebook.com/Microsoft/",
    "https://www.facebook.com/Apple/",
    "https://www.facebook.com/NASA/"
  ]
} }),
});
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 page, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `pageName` | Page Name | text |
| `username` | Username | text |
| `pageUrl` | Page URL | text |
| `pageId` | Page ID | text |
| `category` | Category | text |
| `intro` | Intro | text |
| `pageCreated` | Page Created | text |
| `followers` | Followers | number |
| `likes` | Likes | number |
| `following` | Following | number |
| `talkingAbout` | Talking About | number |
| `wereHere` | Were Here | number |
| `phone` | Phone | text |
| `email` | Email | text |
| `website` | Website | text |
| `otherWebsites` | Other Websites | array |
| `address` | Address | text |
| `addressMapUrl` | Address Map URL | text |
| `recommendPercent` | Recommend Percent | number |
| `reviewCount` | Review Count | number |
| `priceRange` | Price Range | text |
| `businessHours` | Business Hours | text |
| `services` | Services | array |
| `confirmedOwner` | Confirmed Owner | text |
| `runningAds` | Running Ads | boolean |
| `adLibraryId` | Ad Library ID | text |
| `profilePictureUrl` | Profile Picture URL | text |
| `coverPhotoUrl` | Cover Photo URL | text |
| `profilePhotoLink` | Profile Photo Link | text |
| `socialLinks` | Social Links | object\_array |
| `personalProfile` | Personal Profile | object |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "facebook/pages",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "personalProfile": null,
      "recommendPercent": null,
      "profilePhotoLink": "https://www.facebook.com/photo/?fbid=576210607962751&set=a.576210461296099",
      "pageName": "Netflix",
      "followers": 203785756,
      "reviewCount": null,
      "confirmedOwner": "Netflix, Inc.",
      "email": null,
      "addressMapUrl": null,
      "priceRange": null,
      "username": "netflix",
      "intro": "Welcome to the Netflix global page! \nWatch Netflix original series, films, docs and TV anywhere, anyt",
      "phone": null,
      "adLibraryId": "475822799216240",
      "socialLinks": null,
      "likes": 203785702,
      "category": "Media/news company",
      "following": null,
      "services": null,
      "pageCreated": "June 20, 2014",
      "pageId": "100067214512998",
      "businessHours": null,
      "otherWebsites": [
        "http://www.netflix.com/"
      ],
      "website": "http://www.netflix.com/",
      "coverPhotoUrl": "https://scontent-dfw5-1.xx.fbcdn.net/v/t39.30808-6/480084566_941503498100125_7329151167471224952_n.jpg?stp=dst-jpg_tt6&cstp=mx1640x624&ctp=s960x960&_nc_cat=1..."
    }
  ]
}
```

## Related APIs

For the page's posts use [`facebook/posts`](https://docs.mindcase.co/apis/facebook/posts); for its reviews use [`facebook/reviews`](https://docs.mindcase.co/apis/facebook/reviews); for its ads use [`facebook/ads`](https://docs.mindcase.co/apis/facebook/ads).


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