# X (Twitter) Community

<p>Details of a public X (Twitter) community: name, description, creator, exact member count, join policy, topic, rules, banner and a small member preview. Costs 1 credit per successful request. An unknown community returns a non-billable 404.</p>

- **Documentation:** [https://scrappa.co/docs/x-twitter/x_twitter_community](https://scrappa.co/docs/x-twitter/x_twitter_community)
- **API group:** X (Twitter) API
- **Endpoint:** `GET https://scrappa.co/api/x-twitter/community`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `community_id` | string | Yes | <p>Numeric community id, the number in <code>x.com/i/communities/&lt;id&gt;</code>. A full community URL is accepted and the id is extracted from it.</p> |

## Example response

```json
{
    "community": {
        "url": "https://x.com/i/communities/1493446837214187523",
        "name": "Build in Public",
        "rules": [
            {
                "name": "Share what you're working on",
                "rest_id": "1493447542045958144",
                "description": "Don't be scared to share unfinished work"
            }
        ],
        "topic": "Entrepreneurship",
        "banner": {
            "url": "https://pbs.twimg.com/community_banner_img/1915033378811772928/KdaKUaRP?format=png&name=orig",
            "width": 805,
            "height": 322
        },
        "creator": {
            "url": "https://x.com/marckohlbrugge",
            "name": "Marc K\u00f6hlbrugge",
            "rest_id": "641633",
            "screen_name": "marckohlbrugge"
        },
        "is_nsfw": false,
        "rest_id": "1493446837214187523",
        "question": "What are you working on?",
        "created_at": "2022-02-15T04:47:27Z",
        "description": "Share what you're working on.",
        "join_policy": "Open",
        "rules_count": 1,
        "member_count": 270226,
        "created_at_ms": 1644900447551,
        "default_banner": {
            "url": "https://pbs.twimg.com/media/FECP77VVgAURxGe.jpg",
            "width": 1200,
            "height": 480
        },
        "members_facepile": [
            {
                "url": "https://x.com/wip",
                "rest_id": "11212692",
                "avatar_url": "https://pbs.twimg.com/profile_images/1142795908221952001/QdBqHhdn_normal.jpg",
                "screen_name": "wip"
            }
        ]
    }
}
```

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
