Get X user timeline
Fetch recent posts from an X (Twitter) user profile with optional pagination.
← All X / Twitter endpoints · Capability overview
/v1/x-twitter/user-timelinehttps://api.vee3.io/v1/x-twitter/user-timeline
Fetch recent posts from an X (Twitter) user profile with optional pagination.
Authorization
Send your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
MCP
The same capability is available as an MCP tool on Vee3 hosted MCP.
Tool name
x-twitter.user_timelineParameters3 fields
user_namestringOptionalX handle without the leading @ (for example elonmusk). Required when rest_id is omitted.
max length 50
rest_idstringOptionalNumeric X user id (rest_id). When provided, user_name is ignored.
max length 32
cursorstringOptionalPagination cursor from a previous response next_cursor field.
max length 4096
Response72 fields
statusstringTimeline fetch status from the upstream provider (ok on success).
timelinearrayitems53 fieldsRecent posts from the user. Additional provider-specific fields may appear on each entry.
timelinearrayitemstypestringTimeline entry type (for example tweet).
tweet_idstringNumeric tweet id.
screen_namestringAuthor handle without the leading @.
textstringTweet body text.
created_atstringTweet creation timestamp from X.
langstringDetected language code.
favoritesintegerLike count.
retweetsintegerRepost count.
repliesintegerReply count.
quotesintegerQuote count.
bookmarksintegerBookmark count.
viewsstringView count when provided by the upstream provider.
conversation_idstringConversation thread id for the tweet.
sourcestringClient or app source string from X.
display_text_rangeinteger[]Start and end character indices for the display text range.
user_infoobject7 fieldsEmbedded author profile for the tweet.
user_infoobjectscreen_namestringAuthor handle without the leading @.
namestringAuthor display name.
rest_idstringNumeric X user id.
avatarstringProfile avatar image URL.
verifiedbooleanWhether the author account is verified.
followers_countintegerFollower count when provided by the upstream provider.
friends_countintegerFollowing count when provided by the upstream provider.
authorobject3 fieldsAuthor profile summary embedded in the timeline entry.
authorobjectrest_idstringNumeric X user id.
namestringAuthor display name.
screen_namestringAuthor handle without the leading @.
mediaobject8 fieldsAttached media grouped by type (for example video and photo arrays) when present.
mediaobjectvideoarrayitems5 fieldsVideo media items when present.
videoarrayitemsmedia_url_httpsstringHTTPS URL for the video thumbnail or asset.
variantsarrayitems3 fieldsAvailable video quality variants when present.
variantsarrayitemsbitrateintegerVideo bitrate when provided.
content_typestringMIME type for the media variant.
urlstringHTTPS URL for the media variant.
photoarrayitems1 fieldPhoto media items when present.
photoarrayitemsmedia_url_httpsstringHTTPS URL for the photo asset.
entitiesobject12 fieldsParsed entities from the tweet text.
entitiesobjectuser_mentionsarrayitems4 fieldsUser mentions parsed from the tweet text.
user_mentionsarrayitemsid_strstringMentioned user id.
namestringMentioned user display name.
screen_namestringMentioned user handle without the leading @.
indicesinteger[]Start and end character indices in the tweet text.
hashtagsarrayitems2 fieldsHashtags parsed from the tweet text.
hashtagsarrayitemstextstringHashtag text without the leading #.
indicesinteger[]Start and end character indices in the tweet text.
urlsarrayitems3 fieldsURLs parsed from the tweet text.
urlsarrayitemsurlstringShort or display URL.
expanded_urlstringExpanded destination URL.
display_urlstringDisplay-friendly URL.
quoted_tweetobject3 fieldsQuoted tweet summary when the post quotes another tweet.
quoted_tweetobjecttweet_idstringNumeric tweet id for the quoted post.
textstringQuoted tweet body text.
screen_namestringQuoted tweet author handle.
pinnedobject8 fieldsPinned tweet object when the user has one pinned post.
pinnedobjecttweet_idstringNumeric tweet id for the pinned post.
textstringPinned tweet body text.
favoritesintegerLike count.
retweetsintegerRepost count.
authorobject3 fieldsAuthor profile summary for the pinned tweet.
authorobjectrest_idstringNumeric X user id.
namestringAuthor display name.
screen_namestringAuthor handle without the leading @.
userobject5 fieldsProfile summary for the requested user.
userobjectstatusstringAccount status from the upstream provider.
profilestringX screen name (handle).
rest_idstringNumeric X user id.
namestringDisplay name shown on the profile.
sub_countintegerFollower count.
next_cursorstringCursor for the next timeline page, when available.
prev_cursorstringCursor for the previous timeline page, when available.
HTTP errors: unauthorized, validation_error, insufficient_tokens, payment_required, x_user_not_found, x_twitter_not_configured, x_twitter_upstream_error