v11

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-0112893437.0 KB
Communities

Search tweets within an X Community

Requires a Community ID and keyword query.

get/x/communities/tweets

Query parameters

communityIdstring required

Numeric ID of the community to search

qstring required

Keyword query within the selected community

queryType'Latest' | 'Top'

Sort order for community results (Latest or Top)

cursorstring

Pagination cursor for community results

pageSizeinteger

Maximum page items (1-100, default 20). Source, filters, or credits can reduce results. Continue while has_next_page is true. Deprecated limit and count aliases remain accepted.

Response

Paginated matching tweets from the selected community

has_next_pageboolean required
next_cursorstring required

Example response

{
  "tweets": [
    {
      "id": "1234567890",
      "text": "Just launched our new feature!",
      "retweetCount": 5,
      "replyCount": 3,
      "likeCount": 42,
      "quoteCount": 1,
      "viewCount": 1500,
      "bookmarkCount": 2
    }
  ],
  "has_next_page": true,
  "next_cursor": "DAACCgACGRElMJcAAA"
}