# X (Twitter) Community Posts

<p>The ranked post preview of a public X (Twitter) community: up to 20 posts with full text, counters, media and author. X serves one page only, so there is no cursor and <code>order</code> is always <code>ranked</code>. A quiet community returns fewer posts or none. Costs 1 credit per successful request.</p>

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

## 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
{
    "count": 1,
    "order": "ranked",
    "cursor": null,
    "results": [
        {
            "id": "2115557010884190648",
            "url": "https://x.com/marckohlbrugge/status/2115557010884190648",
            "lang": "en",
            "text": "My goal for buildinpublic.com is to become the definitive database of all makers and their projects",
            "urls": [
                {
                    "url": "https://t.co/YLoSJybAtr",
                    "display_url": "buildinpublic.com",
                    "expanded_url": "https://buildinpublic.com"
                }
            ],
            "media": [
                {
                    "id": "2115553149566038016",
                    "url": "https://pbs.twimg.com/media/HVv0YX9XsAAZsE4.jpg",
                    "type": "photo",
                    "width": 2560,
                    "height": 1904
                }
            ],
            "author": {
                "url": "https://x.com/marckohlbrugge",
                "name": "Marc K\u00f6hlbrugge",
                "rest_id": "641633",
                "verified": true,
                "screen_name": "marckohlbrugge"
            },
            "counters": {
                "likes": 369,
                "views": 30524,
                "quotes": 7,
                "replies": 90,
                "reposts": 15,
                "bookmarks": 246
            },
            "hashtags": [],
            "created_at": "2026-10-28T21:31:11Z",
            "created_at_ms": 1793223071000,
            "is_note_tweet": true,
            "user_mentions": [],
            "possibly_sensitive": false
        }
    ],
    "pagination": "none",
    "community_id": "1493446837214187523"
}
```

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