App Logo
x.com

Get Community Posts

Reads the post feed of an X Community (Top or Latest), including author, text, media, and engagement counts.

Input

communityId required

The community's numeric id, from its URL: x.com/i/communities/<communityId>. Found via More → Communities → a topic pill (e.g. Technology), or on any post's community badge link.

sort optional

Which of the community's own tabs to read. "top" is X's Top tab (rankingMode=Relevance); "latest" is the Latest tab (rankingMode=Recency, strict reverse-chronological).

Default: "top"
limit optional

Maximum posts to return. The tab loads a batch at a time; asking for more scrolls until the count is met or the tab stops returning new posts.

Default: 20

Output

sort required
count required
posts required
community_id required

Start building not clicking