v1
latestOpenAPI 3.0.32026-07-213841124.9 KB/community-search-tweets
Searches for tweets inside a specific Twitter/X Community using a text query. You must provide the community_id and a query parameter. The endpoint returns up to 20 matching tweets per request from that community. Each result includes the tweet text, creation date, engagement metrics, conversation details, and basic author information. Results can be sorted by popular or latest. If more results are available, a next_cursor is returned to load the next page.
Use cases:
Analytics platforms tracking keywords inside niche communities; marketing teams monitoring brand mentions within a specific community; research tools collecting topic-based discussions from selected communities; community dashboards adding keyword filtering; developers building in-community search with cursor pagination.
Request body
Example request
{
"community_link": "https://x.com/i/communities/1966045657589813686",
"next_cursor": "123",
"order_by": "popular",
"query": "elonmusk"
}Response
OK