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
x-twitter.searchParameters3 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"
Response57 fields
statusstringSearch status from the upstream provider (ok on success).
timelinearrayitems53 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_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.
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