x-user-tweets

The latest posts of one X (Twitter) account, one row per post: id, link, text, likes, reposts, replies, quotes, time, whether it is a repost, and the author. username is the handle (nasa or @nasa), the profile URL or X's numeric user id (11348282). limit up to 100; X gives about 15-20 posts a page and a run reads at most two pages. session is your own X login (the auth_token and ct0 cookies, from the Crawl4AI Session extension) (optional), used for this run only, never stored. Without it the run reads X as a visitor; when X shows a visitor nothing, a slower second source answers.

stagedx.comWASM module10 fields3-4 units, an id 1 less; or recordsfresh 2 min
‹ Recipes
…json
POST api.crawl4ai.com/recipes/…

$ crawl recipe

              
Live · your key · counts against your quota✓ 200 OK
# Hit Run - the rows render here as a table, with the cost

Fields

10 columns on every row. null means the site does not state it.
fieldtypemeaning
idstringX's id of the post, as text (the number is too long for some JSON readers).
urlstringThe post's link: https://x.com/<author>/status/<id>.
textstringThe post's whole text, a long post included; X's repost text starts with RT @author:, the second source's repost text is the original's text alone.
likesintegerThe likes count when read.
retweetsintegerThe reposts count when read.
repliesintegerThe replies count when read.
quotesintegerHow many posts quote this post.
createdstringWhen the post was published, ISO 8601 UTC.
is_retweetbooleanTrue when the row is a repost of another account's post.
authorstringThe handle of the account that posted or reposted it, without the @.

null means the site does not state it.

idstringX's id of the post, as text (the number is too long for some JSON readers).
urlstringThe post's link: https://x.com/<author>/status/<id>.
textstringThe post's whole text, a long post included; X's repost text starts with RT @author:, the second source's repost text is the original's text alone.
likesintegerThe likes count when read.
retweetsintegerThe reposts count when read.
repliesintegerThe replies count when read.
quotesintegerHow many posts quote this post.
createdstringWhen the post was published, ISO 8601 UTC.
is_retweetbooleanTrue when the row is a repost of another account's post.
authorstringThe handle of the account that posted or reposted it, without the @.

How it behaves

Cost. 3-4 units, an id 1 less; or records. A failed run costs 0.

Freshness 2 min. The same input within 2 min is served from cache at 0 units.

Questions about this recipeQuestions

Short answers. The API reference has the long ones.

Call POST /recipes/x-user-tweets with your key and username and limit. You get rows with the 10 fields above. The recipe is tested against the live site every 6 hours.

Need more from X?

Extra fields, higher volume, or a private copy with a freshness SLA. We build it on Enterprise.

Request a change

For developers

Get a free API key and run your first crawl.

1,000 credits every month. No credit card. Your self-hosted setup keeps working.

For teams

Talk to us about volume, regions and an SLA.

A 30-minute call with the team that writes the crawler. DPA on request, invoice billing, your choice of US, EU or Singapore.