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

# Facebook post

> Read a Facebook post as JSON with the facebook-post parser. $1 per 1,000 calls. Send the page to scrape. Examples in cURL, TypeScript and Python.

Reads a Facebook post, reel or video page, or an fb.watch link, and returns one post as JSON.

## Make a request

Send the page's URL to [scrape](https://docs.stophy.dev/api-reference/endpoint/scrape.md) with a `json` format that names the parser. Get an API key in the [Quickstart](https://docs.stophy.dev/quickstart).

```bash cURL theme={null}
curl -X POST https://api.stophy.dev/v1/scrape \
  -H "Authorization: Bearer $STOPHY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.facebook.com/NASA/posts/pfbid02gQRwwY2RMZvcRYS9eqkWDBm9idv46oRRVvPFvtsPu9UyoHiukHQ6PjWwfKE4TKXQl","formats":[{"type":"json","parser":"facebook-post"}]}'
```

```typescript TypeScript theme={null}
const response = await fetch("https://api.stophy.dev/v1/scrape", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.STOPHY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    url: "https://www.facebook.com/NASA/posts/pfbid02gQRwwY2RMZvcRYS9eqkWDBm9idv46oRRVvPFvtsPu9UyoHiukHQ6PjWwfKE4TKXQl",
    formats: [{ type: "json", parser: "facebook-post" }],
  }),
});
console.log(await response.json());
```

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

import requests

response = requests.post(
    "https://api.stophy.dev/v1/scrape",
    headers={"Authorization": f"Bearer {os.environ['STOPHY_API_KEY']}"},
    json={
        "url": "https://www.facebook.com/NASA/posts/pfbid02gQRwwY2RMZvcRYS9eqkWDBm9idv46oRRVvPFvtsPu9UyoHiukHQ6PjWwfKE4TKXQl",
        "formats": [{"type": "json", "parser": "facebook-post"}],
    },
)
print(response.json())
```

## Read the response

The parser's data is in `data.json`. Its fields include `id`, `url`, `title`, `text`, `author`, `community`, `publishedAt`, `likes`, `comments`, `shares`, `views`, `media` and `hashtags`. This sample is cut to the first items.

```json theme={null}
{
  "success": true,
  "data": {
    "json": {
      "id": "1675983783896991",
      "url": "https://www.facebook.com/NASA/posts/pfbid02gQRwwY2RMZvcRYS9eqkWDBm9idv46oRRVvPFvtsPu9UyoHiukHQ6PjWwfKE4TKXQl",
      "title": null,
      "text": "Pspsps 🐈‍⬛\n\nThis smoky specter is the Cat’s Head Nebula, captured in intricate detail by NASA's James Webb Space…",
      "author": {
        "id": "100044561550831",
        "name": "NASA - National Aeronautics and Space Administration",
        "handle": null,
        "url": "https://www.facebook.com/NASA",
        "avatarUrl": null,
        "isVerified": null
      },
      "community": null,
      "publishedAt": "2026-11-03T15:00:35.000Z",
      "likes": 40579,
      "comments": 461,
      "shares": 2982,
      "views": null,
      "media": [
        {
          "type": "image",
          "url": "https://www.facebook.com/photo/?fbid=1675983760563660&set=a.416661013162614",
          "thumbnailUrl": null,
          "width": 780,
          "height": 540,
          "durationSeconds": null,
          "altText": "An intricate cloud of white dust takes center stage in this photo, rising in a windy pillar. The background features…"
        }
      ],
      "hashtags": [],
      "mentions": [],
      "reactions": {
        "total": 40579,
        "like": 19171,
        "love": 20339,
        "care": 688,
        "haha": 105,
        "wow": 264,
        "sad": 6,
        "angry": 6
      }
    }
  }
}
```

## Options

This parser takes no options.

## Price

\$1 per 1,000 calls. See [Pricing](https://docs.stophy.dev/account/pricing.md).

## Limits and errors

* The URL must be a Facebook post, reel or video page, or an fb.watch link. Any other URL fails with `invalidRequest`.
* The answer comes back in `data.json`. If the page cannot be read, the call fails with an error code from [Errors](https://docs.stophy.dev/api-reference/errors.md).

## Related

* [Pre-built parsers](https://docs.stophy.dev/scrape/prebuilt-parsers) lists every parser.
* [Scrape](https://docs.stophy.dev/scrape/overview) has the options every scrape takes.
* [Facebook page](https://docs.stophy.dev/scrape/prebuilt-parsers/social/facebook-page.md)
* [Facebook comments](https://docs.stophy.dev/scrape/prebuilt-parsers/social/facebook-comments.md)
* [Facebook marketplace](https://docs.stophy.dev/scrape/prebuilt-parsers/shopping/facebook-marketplace.md)


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