v3

latestOpenAPI 3.0.32026-08-02415689.9 KB
Community

Search Community Tweets

Searches for tweets within a specific Twitter/X Community by keyword. Up to 20 matching tweets per page. Results can be sorted by popular or latest. Each tweet includes text, creation date, engagement metrics, and author profile.

post/community-search-tweets

Request body

community_linkstring required

Full community URL or community ID.

next_cursorstring

Pagination cursor from a previous response.

orderstring

Sort order: popular or latest.

querystring

Search query string.

Example request

{
  "community_link": "https://x.com/i/communities/1966045657589813686",
  "next_cursor": "123",
  "order": "popular",
  "query": "elonmusk"
}

Response

OK

next_cursorstring

Cursor for fetching the next page of results. Null or absent if no more pages.