Twitter / X API

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.

8 endpoints

Users

Access user profiles, tweets, followers, and social graph data on Twitter / X.

13 endpoints

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.

Communities

Access Twitter / X community members and content.

1 endpoints

Actions

Perform authenticated actions on Twitter / X such as posting tweets, following users, and managing your account.

11 endpoints

Twitter / X API Quick Start Guide

Every request returns real-time, accurate data directly from Twitter / X.

Request
curl --request GET \
  --url 'https://api.keyapi.ai/v1/twitter/UserByScreenName?username=elonmusk' \
  --header 'Authorization: Bearer YOUR_API_KEY'
Response200 OK
{
  "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.

Start for free — no credit card required

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.