Skip to main content

X Activity API: Now Generally Available

Grok logo
The X Activity API is officially out of beta. Subscribe to real-time activity events like profile updates, follows, and more with sub-second delivery via streaming or webhooks.

Build, analyze, and innovate with X’s real-time global data. Access posts, users, trends, and more through modern APIs with flexible pay-per-usage pricing.

Quickstart

Get your API keys and make your first request in minutes.

API Reference

Explore endpoints for posts, users, spaces, DMs, lists, and more.

SDKs

Official Python and TypeScript SDKs for faster development.

Products

X API

Access posts, users, spaces, DMs, lists, trends, media, and more. Search, stream, and analyze X’s public conversation.

X Ads API

Programmatically manage ad campaigns, targeting, creatives, and analytics.

X for Websites

Embed posts, timelines, and follow buttons on your website.

Pricing

The X API uses pay-per-usage pricing. No monthly subscriptions — pay only for what you use.

Pay-per-usage

Flexible, credit-based pricing. Scale up or down based on your needs with no commitments or minimum spend.

Enterprise

Dedicated support, complete streams, and custom integrations for high-volume needs.
Earn free xAI API credits when you purchase X API credits—up to 20% back based on your spend. Learn more

Resources

Tutorials

Step-by-step guides for common use cases and integrations.

Tools & Libraries

Official SDKs and community libraries for every language.

Developer Forum

Get help from the community and X team.

Changelog

Stay updated on API changes and new features.

ResourceDescription
Developer ConsoleManage apps, view usage, and purchase credits
API StatusCheck current API availability
SupportTroubleshooting and FAQs
NewsletterMonthly platform updates