> ## 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 group

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

Reads a public Facebook group, like facebook.com/groups/NASA.SCIENCE, and returns one profile 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/groups/NASA.SCIENCE/","formats":[{"type":"json","parser":"facebook-group"}]}'
```

```typescript TypeScript theme={null}
import { Stophy } from "stophy";

const stophy = new Stophy();

const result = await stophy.parsed(
  "facebook-group",
  "https://www.facebook.com/groups/NASA.SCIENCE/",
);
console.log(result);
```

```python Python theme={null}
from stophy import Stophy

stophy = Stophy()

result = stophy.parsed(
    "facebook-group",
    "https://www.facebook.com/groups/NASA.SCIENCE/",
)
print(result)
```

## Read the response

The parser's data is in `data.json`. Its fields include `id`, `url`, `handle`, `name`, `bio`, `avatarUrl`, `isVerified`, `followers`, `following`, `posts`, `website`, `location` and `category`. This sample is cut to the first items.

```json theme={null}
{
  "success": true,
  "data": {
    "json": {
      "id": "349554945138653",
      "url": "https://www.facebook.com/groups/NASA.SCIENCE/",
      "handle": null,
      "name": "NASA - National Aeronautics and Space Administration",
      "bio": "This group is neither created by NASA nor created by the NASA Employees. It was created and shown  publicly  in favour…",
      "avatarUrl": null,
      "isVerified": null,
      "followers": null,
      "following": null,
      "posts": null,
      "website": null,
      "location": null,
      "category": null,
      "memberCount": 2800000,
      "privacy": "public"
    }
  }
}
```

## 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 public Facebook group, like facebook.com/groups/NASA.SCIENCE. 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 post](https://docs.stophy.dev/scrape/prebuilt-parsers/social/facebook-post.md)
* [Facebook comments](https://docs.stophy.dev/scrape/prebuilt-parsers/social/facebook-comments.md)


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