Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Upload Large Media
TWITTER_UPLOAD_LARGE_MEDIAUploads a single media file to X/Twitter using simple or chunked upload based on its category and size. For chunked uploads, it polls pending processing and raises an error if processing fails or polling times out.
Upload Media
TWITTER_UPLOAD_MEDIAUploads one image or subtitle file under 5 MiB to X/Twitter using the v2 API, with tweet_image, dm_image, or subtitles categories. The returned media identifier expires; the response includes its expiry interval.
Get user reverse chronological timeline
TWITTER_USER_HOME_TIMELINE_BY_USER_IDRetrieves the authenticated Twitter user's reverse chronological home timeline, including posts from followed accounts and the user's own posts. The user ID is fetched automatically when omitted; a supplied ID that differs from the authenticated user's ID is replaced with the authenticated ID.
Like a tweet
TWITTER_USER_LIKE_POSTLikes a specific, accessible Tweet for the authenticated user, provided neither user has blocked the other and the user is not restricted from liking. The request requires a user ID and Tweet ID; the authenticated user ID is fetched for the operation.
Look up user by username
TWITTER_USER_LOOKUP_BY_USERNAMEFetches public profile information for a valid and existing Twitter user by their username, optionally expanding related data like pinned Tweets; results may be limited for protected profiles not followed by the authenticated user.
Look up users by username
TWITTER_USER_LOOKUP_BY_USERNAMESRetrieves detailed information for 1 to 100 Twitter users by their usernames (each 1-15 alphanumeric characters/underscores), allowing customizable user/tweet fields and expansion of related data like pinned tweets.
Get authenticated user
TWITTER_USER_LOOKUP_MEReturns profile information for the currently authenticated X user, customizable via request fields.