Get Community Tweets
tweetapi_community_tweetsFetch a page of community posts by community ID or link, ordered by relevance or recency, and use the returned cursor to retrieve the next page.
Instructions
Fetch one page of posts in a community, by community ID or community link, in the order set by sortBy. Use tweetapi_community_media for only the posts with photos or videos. Read-only. Needs a TweetAPI API key and makes one TweetAPI request per call, usually costing 1 unit; each result includes a cost estimate. Returns one page: to get the next one, call again with cursor set to this result's completeness.nextCursor.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | completeness.nextCursor from the previous page. Omit it for the first page. | |
| sortBy | No | Order of the posts: Relevance (default) or Recency. | Relevance |
| communityId | Yes | Numeric community ID, or a community link such as https://x.com/i/communities/1234567890. | |
| responseFormat | No | full (default) returns TweetAPI's JSON unchanged. compact keeps full post text, IDs, links, original dates, counts, and cursors but drops bulky fields; output.fieldsOmitted lists what was dropped. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | ||
| mode | Yes | ||
| tool | Yes | ||
| notice | Yes | ||
| output | Yes | ||
| result | Yes | ||
| endpoint | Yes | ||
| usageDocs | No | ||
| pagination | No | Pagination exactly as TweetAPI returned it. | |
| statusCode | Yes | ||
| retrievedAt | Yes | When the MCP server received this response (ISO 8601). Not the post or profile date, and not a promise that X's data was fresh at that moment. | |
| completeness | Yes | ||
| resolvedInput | No | Identifiers the MCP server parsed from links or @handles before calling TweetAPI. |