Twitter / X API

Twitter / X Data API

Access Twitter / X public user profiles, timelines, followers, following, tweets, replies, retweets, trends, search results, lists, communities, jobs, and Spaces data.

30 Endpoints
99.9% Uptime SLA
<500ms Avg latency

What You Can Do With The Twitter / X API

30 endpoints across 1 data categories. Every request returns real-time, accurate data directly from Twitter / X.

twitter

Retrieve Twitter / X users, tweets, trends, search results, lists, communities, jobs, and Spaces data.

30 endpoints

Twitter / X API Quick Start Guide

All endpoints return clean, structured JSON.

Request
curl -X GET \
  "https://api.keyapi.ai/v1/twitter/screenname" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response200 OK
{
  "code": 0,
  "message": "success",
  "data": {
    "username": "johndoe",
    "followers": 2400000,
    "videos": 847,
    "avg_views": 124500,
    "platform": "twitter"
  }
}

Why Choose KeyAPI Twitter / X API

Built for scale, reliability, and developer experience.

Profiles & Social Graphs

Query user profiles, Rest IDs, followers, following, and affiliated accounts to build account profiles and relationship graphs.

Timelines & Media Content

Collect user timelines, media tweets, replies, and historical activity for account monitoring and content analysis.

Tweet Interaction Analysis

Inspect individual tweets, threads, retweets, quotes, comments, and engaged users to analyze content propagation.

Trends & Search Monitoring

Retrieve trending topics and keyword search results for social listening, public opinion tracking, and topic discovery.

Lists, Communities & Spaces

Collect Twitter / X lists, communities, jobs, and Spaces metadata for broader social context analysis.

Campaign Validation

Use retweet-check and related endpoints to verify user actions for campaign monitoring and growth workflows.

Frequently Asked Questions

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.