Twitter / X Data API
Access profiles, tweets, search results, lists, communities, trending topics, and follower data from Twitter / X — all through a single, reliable REST API. No developer account required.
37+
Endpoints
5
Data categories
99.9%
Uptime SLA
<500ms
Avg latency
What You Can Do With The Twitter / X API
37+ endpoints across 5 categories. All returning clean, structured JSON.
Tweets
Search, retrieve, and translate tweets on Twitter / X.
AutoComplete
Get autocomplete suggestions for users and topics based on a search query. Returns matching users with profile information including verification status.
Search
Search Twitter / X for tweets, users, and content. Supports advanced search queries, pagination, and filtering by type (Top, Latest, Media, People, Lists).
Locations
Retrieve a list of available locations for trending topics. Leave the query blank to get all countries, or search for a specific location.
Tweet Detail & Conversation
Retrieve a tweet and its full conversation thread including replies. Supports pagination and sorting replies by relevance or recency.
Tweet Detail / Alternative
Retrieve tweet details using an alternative data source. Returns tweet metadata, engagement metrics, and author information.
Tweet Retweeters
Retrieve a paginated list of users who retweeted a specific tweet. Returns user profiles with follower counts and verification status.
Translate Tweet
Translate the text of a tweet into any supported language using Twitter / X's built-in translation service.
Hashflags
Retrieve all currently active hashflags on Twitter / X. Hashflags are special emoji that appear next to specific hashtags during campaigns or events.
Users
Access user profiles, tweets, followers, and social graph data on Twitter / X.
User By Screen Name
Retrieve a complete Twitter / X user profile by username (screen name). Returns follower counts, tweet counts, verification status, and profile metadata.
User About
Retrieve extended about/bio information for a Twitter / X user by username, including pinned tweets and profile highlights.
User Tweets
Retrieve a paginated list of tweets posted by a specific Twitter / X user. Returns tweet text, engagement metrics, and media attachments.
User Tweets And Replies
Retrieve a paginated list of tweets and replies posted by a specific Twitter / X user. Includes both original tweets and reply tweets.
User Media
Retrieve a paginated list of media tweets (photos and videos) posted by a specific Twitter / X user.
User Followers
Retrieve a paginated list of followers for a specific Twitter / X user. Returns user profiles with follower counts and verification status.
User Followers / Light
Retrieve a lightweight paginated list of followers. Accepts either a User ID or username. Returns basic user info with less data than the full Followers endpoint.
User Verified Followers
Retrieve a paginated list of verified (blue-check) followers for a specific Twitter / X user.
User Following
Retrieve a paginated list of accounts that a specific Twitter / X user is following.
User Subscriptions
Retrieve a paginated list of Twitter / X subscriptions (paid creator subscriptions) for a specific user.
User Affiliates
Retrieve a paginated list of affiliated accounts for a specific Twitter / X user. Affiliates are accounts associated with an organization or brand.
User Highlights
Retrieve a paginated list of highlighted tweets pinned or featured on a specific Twitter / X user's profile.
Translate Profile
Translate a Twitter / X user's profile bio/description into any supported language using Twitter / X's built-in translation service.
Lists
Access Twitter / X list details, timelines, subscribers, and members.
List Details
Retrieve metadata and details about a specific Twitter / X list including name, description, member count, and owner information.
List Timeline
Retrieve a paginated timeline of tweets from all members of a specific Twitter / X list.
List Subscribers
Retrieve a paginated list of users who subscribe to a specific Twitter / X list.
List Members
Retrieve a paginated list of Twitter / X accounts that are members of a specific list.
Communities
Access Twitter / X community members and content.
Actions
Perform authenticated actions on Twitter / X such as posting tweets, following users, and managing your account.
Notifications
Retrieve notifications for an authenticated Twitter / X account. Requires an auth_token from the account.
Update Profile
Update the name, bio, location, and URL of an authenticated Twitter / X account. Requires an auth_token.
Create Tweet
Create and post a new tweet from an authenticated Twitter / X account. Requires an auth_token.
Delete Tweet
Delete a specific tweet from an authenticated Twitter / X account. Requires an auth_token and the tweet ID.
Favorite Tweet
Like (favorite) a specific tweet from an authenticated Twitter / X account. Requires an auth_token and the tweet ID.
Unfavorite Tweet
Unlike (unfavorite) a specific tweet from an authenticated Twitter / X account. Requires an auth_token and the tweet ID.
Create Retweet
Retweet a specific tweet from an authenticated Twitter / X account. Requires an auth_token and the tweet ID.
Delete Retweet
Undo a retweet of a specific tweet from an authenticated Twitter / X account. Requires an auth_token and the tweet ID.
Tweet Analytics
Retrieve detailed analytics (impressions, engagements, clicks) for a specific tweet from an authenticated Twitter / X account. Requires an auth_token.
Follow
Follow a specific Twitter / X user from an authenticated account. Requires an auth_token and the target user's ID.
Unfollow
Unfollow a specific Twitter / X user from an authenticated account. Requires an auth_token and the target user's ID.
Twitter / X API Quick Start Guide
Every request returns real-time, accurate data directly from Twitter / X.
curl --request GET \ --url 'https://api.keyapi.ai/v1/twitter/UserByScreenName?username=elonmusk' \ --header 'Authorization: Bearer YOUR_API_KEY'
{
"code": 0,
"message": "success",
"data": {
"data": {
"user": {
"result": {
"legacy": {
"name": "Elon Musk",
"screen_name": "elonmusk",
"followers_count": 180000000,
"friends_count": 621,
"statuses_count": 42000,
"is_blue_verified": true
}
}
}
}
}
}Why Choose KeyAPI Twitter / X API
Built for scale, reliability, and developer experience.
Tweet Search & Monitoring
Real-time keyword, hashtag, and mention tracking across Twitter / X. Supports advanced search syntax and filtering by type (Top, Latest, Media, People, Lists).
User Profile & Social Graph
Full profile data, follower/following lists, verified followers, subscriptions, affiliates, and highlights for any public Twitter / X account.
Tweet Threads & Conversations
Pull full conversation threads and reply chains. Retrieve tweet details with pagination and sort replies by relevance or recency.
Lists & Communities
Access Twitter / X list details, timelines, subscribers, and members. Retrieve community members for niche audience analysis.
No Twitter API Tier Restrictions
Access public Twitter data without the $100/month Basic tier or $5,000/month Pro tier. Pay only for what you use.
Authenticated Actions
Post tweets, like, retweet, follow/unfollow, update profiles, and retrieve notifications for authenticated accounts.
Twitter / X API Use Cases
Trend & Keyword Monitoring
Track breaking topics, brand mentions, and hashtag campaigns in real time. Get ahead of news cycles before they hit mainstream media.
Sentiment Analysis
Pull tweet threads and replies at scale to analyze public sentiment around products, events, or public figures.
Influencer Research
Identify high-engagement accounts by follower count, tweet frequency, and engagement rate. Validate influencers before partnerships.
Audience Intelligence
Map follower networks, analyze who follows whom, and understand the audience composition of any public Twitter account.
Frequently Asked Questions
Is the Twitter / X API official?
No, KeyAPI provides an unofficial Twitter / X API that lets you access Twitter / X data through our platform. We handle the complexities of data collection so you can focus on building your application.
How current is the data?
We provide real-time data from Twitter / X. When you make a request, we fetch the latest information available.
How do credits work?
Each API endpoint consumes credits. Most endpoints cost just 1 credit. All pricing is transparent in our API documentation with no hidden fees.
Can I use this for AI model training?
Yes. KeyAPI provides structured, AI-ready data ideal for training datasets, fine-tuning LLMs, and building AI pipelines. Our historical archives are particularly valuable for large-scale training workloads.
Ready to unlock unified
social intelligence?
Register today and receive 100 free API calls to test our infrastructure.
Join the growing community of developers, AI builders, automation engineers, and global businesses who trust KeyAPI for reliable, scalable social media data access.