X/Twitter Data API
Pricing
from $0.10 / 1,000 results
Paste full X/Twitter profile URLs, one per line. Example: https://x.com/NASA, https://twitter.com/elonmusk. ⚠️ One of the 6 target fields must be non-empty.
Comma- or newline-separated @handles. The @ symbol is optional. Example: NASA, elonmusk, SpoxCHN_MaoNing. ⚠️ One of the 6 target fields must be non-empty.
Numeric X/Twitter user IDs (rest_id), comma- or newline-separated. Find one from a profile URL like x.com/user/status/ID. Example: 44196397. ⚠️ One of the 6 target fields must be non-empty.
Search X/Twitter users by keyword. Returns matching user accounts. Example: AI researcher, marketing director. Note: tweet search is currently disabled by X.com. ⚠️ One of the 6 target fields must be non-empty.
Paste full tweet URLs, one per line. Example: https://x.com/user/status/2090877991228264814. ⚠️ One of the 6 target fields must be non-empty.
Numeric tweet IDs, comma- or newline-separated. Find from tweet URL: x.com/user/status/ID. Example: 2090877991228264814. ⚠️ One of the 6 target fields must be non-empty.
Bio, followers, following, verified status, profile image, account age. Always enabled.
Pull the user's latest 20 tweets with text, media URLs, likes, retweets, replies, views.
How many of the user's most recent tweets to pull (default 20, max 200). Requires getRecentTweets.
Pull the user's latest image and video posts as separate items.
How many recent media posts to pull (default 5, max 50). Requires getRecentMedia.
Pull the list of accounts following the target user. Requires auth cookie (auth_token + ct0).
Pull the list of accounts the target user follows. Requires auth cookie.
How many accounts to pull from the followers or following list (default 100, max 5000).
Restrict the followers list to blue-checkmark subscribers. Requires getFollowers + auth cookie.
Pull the list of accounts who retweeted a specific tweet. Provide a tweet URL or ID. Requires auth cookie.
For each follower, also pull their most recent tweet. Adds context to lead lists. Increases cost.
X.com auth_token cookie value. Required only for followers, following, retweeters, and bookmarks endpoints. Public profiles and tweets work without it.
X.com ct0 (csrf) cookie value. Required together with auth_token for authenticated endpoints.