Search X
Search X (Twitter) posts by keyword with optional pagination and result type.
← All X / Twitter endpoints · Capability overview
/v1/x-twitter/searchhttps://api.vee3.io/v1/x-twitter/search
Search X (Twitter) posts by keyword with optional pagination and result type.
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
search_xParameters3 fields
querystringRequiredSearch keywords or phrase.
max length 512
cursorstringOptionalPagination cursor from a previous response next_cursor field.
max length 4096
search_type"Top" | "Latest" | "Media" | "People" | "Lists"OptionalResult ranking mode.
Default: "Top"
Response54 fields
statusstringSearch status from the upstream provider (ok on success).
timelinearrayitems50 fieldsMatching posts from the search. 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_rangearrayitems1 fieldStart and end indices for the display text range.
display_text_rangearrayitemsindexintegerCharacter index in the tweet text.
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 @.
mediaarrayitems2 fieldsAttached media items when present.
mediaarrayitemstypestringMedia type (for example photo or video).
media_url_httpsstringHTTPS URL for the media asset.
entitiesobject14 fieldsParsed entities from the tweet text.
entitiesobjectuser_mentionsarrayitems5 fieldsUser mentions parsed from the tweet text.
user_mentionsarrayitemsid_strstringMentioned user id.
namestringMentioned user display name.
screen_namestringMentioned user handle without the leading @.
indicesarrayitems1 fieldStart and end indices in the tweet text.
indicesarrayitemsindexintegerCharacter index in the tweet text.
hashtagsarrayitems3 fieldsHashtags parsed from the tweet text.
hashtagsarrayitemstextstringHashtag text without the leading #.
indicesarrayitems1 fieldStart and end indices in the tweet text.
indicesarrayitemsindexintegerCharacter index 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.
next_cursorstringCursor for the next results page, when available.
prev_cursorstringCursor for the previous results page, when available.
HTTP errors: unauthorized, validation_error, insufficient_tokens, payment_required, x_twitter_not_configured, x_twitter_upstream_error