twitter_community_tweets
Fetch an X community's timeline, returning the pinned post separately to avoid missing key rules. Supports pagination and ranking by recency or relevance.
Instructions
Read an X Community's own post timeline, cursor-paginated as full tweet objects, with the community's PINNED post returned as its own separate 'pinned' field rather than as an item inside 'tweets'. That split is not cosmetic: X delivers the pinned post under a different timeline instruction and does not repeat it in the feed, so a client that iterates only 'tweets' silently loses it, and it is very often the community's rules post, the single most useful item in the response. To build one flat list, read 'pinned' first if non-null, then 'tweets' (the pinned post is excluded from 'tweets', so there is no duplicate). ranking_mode is a REAL upstream parameter, not a local sort. Use twitter_advanced_search instead when the search should span all of X rather than one community.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Max posts to return for this page. Defaults to 20 and is clamped to 1-100. | |
| cursor | No | Opaque pagination cursor from a previous response's next_cursor field. Omit on the first call. | |
| community_id | Yes | Numeric X community id, the digits in a x.com/i/communities/<id> URL, e.g. '1493446837214187523'. | |
| ranking_mode | No | Ordering, sent to X as a real request parameter. 'Recency' is the default and the only value confirmed against a live capture. 'Relevance' is accepted because X's own community tab offers exactly two orderings, but it is NOT confirmed live, so do not depend on it. Any other value is rejected with a 400. |