X (Twitter)
X (formerly Twitter) is a social media platform providing APIs for accessing and integrating with posts, users, spaces, direct messages, lists, media, trends, and real-time streaming data. The X API enables developers to build applications that read and write X data, manage advertising campaigns, and subscribe to real-time activity events. Available through pay-per-use credit-based pricing with enterprise options for high-volume access.
APIs
X API
The core X API providing programmatic access to posts, users, spaces, lists, direct messages, bookmarks, likes, reposts, follows, blocks, mutes, trends, communities, and complia...
X Ads API
The X Ads API enables programmatic management of advertising campaigns on the X platform including campaign creation and scheduling, custom audience building, creative managemen...
X Activity API
The X Activity API provides real-time activity event subscriptions with sub-second delivery via streaming or webhooks. Subscribe to profile updates, follows, likes, reposts, and...
Collections
Arazzo Workflows
X Search, Bookmark a Post, Then Remove the Bookmark
Find a post by search, bookmark it, then delete that bookmark.
ARAZZOX Create a List and Add a Member by Username
Create a new List, resolve a member handle, and add them to the List.
ARAZZOX Confirm a List and Follow It
Read a List by id to confirm it exists, then follow that List.
ARAZZOX List the Followers of a Handle
Resolve a username to an id, then page that user's followers.
ARAZZOX List the Posts a Handle Has Liked
Resolve a username to an id, then fetch that user's liked posts.
ARAZZOX Fetch a List's Details and Its Members
Read a List by id, then page the members of that List.
ARAZZOX List the Posts Mentioning a Handle
Resolve a username to an id, then fetch posts that mention that user.
ARAZZOX Pin the Authenticated User's First Owned List
List the owned Lists, then pin the first one to the user's profile.
ARAZZOX Audit Engagement on a User's Latest Post
Resolve a handle, get their latest post, then list who liked it.
ARAZZOX Create a Post, Like It, Then Delete It
Publish a post, like it from the authenticated account, then remove it.
ARAZZOX Quote a Post Found by Search
Search recent posts, then publish a quote post of the top match.
ARAZZOX Find a Post, Repost It, Then Undo the Repost
Search for a post, repost the top match, then remove the repost.
ARAZZOX List Who Reposted a Handle's Latest Post
Resolve a handle, get their latest post, then list who reposted it.
ARAZZOX Search Recent Posts and Hydrate the Top Match
Run a recent search, then fetch full details for the first matching post.
ARAZZOX Unfollow a User by Their Username
Resolve a target handle to an id, then unfollow that user.
ARAZZOX Resolve User and List Their Recent Posts
Look up a user by username, then pull their most recent posts.
ARAZZOGraphQL
Twitter (X) GraphQL Schema
This conceptual GraphQL schema models the Twitter (X) API v2 data model. The X API v2 is a REST API available at `https://api.x.com/2`, but the types defined here represent the ...
GRAPHQLPricing Plans
Rate Limits
FinOps
Twitter Finops
FINOPSFeatures
Create, delete, edit, repost, quote, like, and bookmark posts programmatically.
Access filtered streams, sampled streams, firehose, and language-specific streams for real-time post data.
Search the complete archive of public posts with advanced query operators and date filtering.
Look up users by ID or username, manage follows, blocks, mutes, and retrieve user metrics.
Discover and look up live audio Spaces with host, speaker, and listener data.
Send and receive direct messages, create conversations, and manage participants.
Create, manage, and query lists including membership, followers, and pinned lists.
Access personalized and geographic trending topics.
Upload images, videos, and large files using chunked upload with metadata and subtitle support.
Access compliance streams and batch jobs for data deletion and user protection events.
Access community data and community notes for collaborative fact-checking.
Programmatically create, schedule, and manage advertising campaigns with targeting and budget controls.
Use Cases
Monitor brand mentions, sentiment, and conversations in real-time using filtered streams and search endpoints.
Automate post creation, scheduling, and thread publishing for social media management platforms.
Retrieve post metrics, user engagement data, and campaign performance for business intelligence.
Build automated accounts that respond to mentions, post updates, or provide customer service.
Access full-archive search and streaming data for social media research and trend analysis.
Programmatically manage ad campaigns, audiences, creatives, and bidding strategies at scale.
Track live events, breaking news, and trending topics with streaming APIs and trend endpoints.
Manage followers, lists, and direct messages for community engagement and moderation.
Integrations
Official Postman collections for exploring and testing X API endpoints interactively.
Integration with AI tools and agents through Model Context Protocol servers.
Real-time event delivery via webhooks for the Activity API.
Solutions
Credit-based pricing with no commitments. Pay only for what you use with access to core X API endpoints.
High-volume access with custom rate limits, dedicated account management, full firehose, and premium support.
Advertising platform API for campaign management, audience targeting, creative management, and analytics.