Skip to main content

Pay-per-usage pricing: Now Available

Grok logo
Pay only for what you use. Plus, earn free xAI API credits when you purchase X API credits!

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
Assistant
Responses are generated using AI and may contain mistakes.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.