Community Endpoints
Community Endpoints
Access X Communities data: community details, timeline tweets, and member lists. Communities are topic-based groups on X.
⚠
Community endpoints are currently under development. X has restricted access to Communities data through its internal API. These endpoints will be published as soon as they are ready. The following endpoints are planned:
GET
/v2/communities/:communityIdGet community details by its numeric ID.| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| communityId | string | required | — | The numeric community ID |
GET
/v2/communities/:communityId/tweetsGet tweets from a community timeline.| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| communityId | string | required | — | The numeric community ID |
| count | integer | optional | 20 | Number of tweets to return |
| sort | string | optional | latest | Sort: latest, popular, engagement |
| cursor | string | optional | — | Pagination cursor |
GET
/v2/communities/:communityId/membersGet members of a community.| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| communityId | string | required | — | The numeric community ID |
| count | integer | optional | 20 | Number of members to return |
| sort | string | optional | default | Sort: default, followers, name |
| cursor | string | optional | — | Pagination cursor |
✦
Community IDs can be found in the URL when viewing a community on X, e.g.,
x.com/i/communities/1708766018985501165.