Get an X account timeline
xcrap_get_user_tweetsFetch a page of a user's posts, newest first, with text, timestamps, and metrics. Use the returned cursor to paginate through their timeline.
Instructions
Fetch a page of an account's posts, newest first, with text, timestamps and metrics for each.
This is how you answer "what has @x been posting about", "find their recent posts about Y" or "what did they say this week". Paging is cursor-based because a timeline moves while you read it: pass the next_cursor from the previous call to get the next page.
When to use this instead of the alternatives:
Use xcrap_get_user for the profile and follower counts instead of the posts.
Use xcrap_get_thread when the posts you want are one connected chain rather than a general feed.
Args:
handle (string, required): "jack", "@jack" or a profile URL.
count (number, 1-100): posts per page, default 20. Above ~40 the result is likely to be truncated.
cursor (string): the next_cursor from a previous call, to fetch the following page. Omit for the first page. Do not invent one.
exclude_replies (boolean): default true — the account's own posts only. Set false to include its replies to other people.
media_only (boolean): default false. Set true for only posts carrying images or video.
Returns markdown: a "Posts by @handle" heading, the post count, then each post with its timestamp, permalink, text and metrics. To page further, call xcrap_get_user_tweets again with the cursor returned by XCrap.
Costs 20 calls/minute — one call returning 50 posts is far cheaper than 50 calls to xcrap_get_tweet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Posts to return, 1-100 (default 20). Use 10-25 for reading; higher values risk truncation. | |
| cursor | No | Pagination cursor from a previous call. Omit for the first page; never construct one by hand. | |
| handle | Yes | X handle, @handle or profile URL whose timeline to read. | |
| media_only | No | Return only posts with attached images or video (default false). | |
| exclude_replies | No | Exclude the account's replies to other people (default true). Set false to include them. |