Skip to main content
Bookmark these essential resources for X API development.

Documentation

API Reference

Complete endpoint documentation with parameters and examples.

Data Dictionary

Object schemas for posts, users, media, and more.

Authentication

OAuth 1.0a and OAuth 2.0 implementation guides.

Rate Limits

Per-endpoint limits and best practices.

Tools

ToolDescription
Developer ConsoleManage apps, credentials, and billing
Postman CollectionInteractive API testing
Python SDKOfficial Python library
TypeScript SDKOfficial TypeScript library
OpenAPI SpecMachine-readable API specification

Learning

Tutorials

Step-by-step guides for common use cases.

Sample Code

Example apps and code samples.

What to Build

Ideas and inspiration for projects.

Migration Guide

Upgrade from v1.1 to v2.

Community & Support

Developer Forum

Ask questions and share solutions with the community.

Support Hub

FAQs, troubleshooting, and contact options.

@XDevelopers

Official updates and announcements.

@API

API-specific news and tips.

Stay updated

ResourceWhat you’ll get
ChangelogAll platform changes and updates
NewsletterMonthly roundup of news and features
Forum AnnouncementsImportant platform notices
API StatusReal-time service availability
Follow @XDevelopers and turn on notifications to catch breaking changes and new features.

Quick reference

Response structure

All v2 responses follow this structure:
{
  "data": { ... },      // Primary object(s)
  "includes": { ... },  // Expanded objects (if requested)
  "meta": { ... },      // Pagination info
  "errors": [ ... ]     // Partial errors (if any)
}

Common parameters

ParameterUse
tweet.fieldsRequest specific post fields
user.fieldsRequest specific user fields
expansionsInclude related objects
max_resultsLimit results per page
pagination_tokenGet next/previous page

Authentication methods

MethodUse case
Bearer TokenRead-only public data
OAuth 2.0User actions with fine-grained scopes
OAuth 1.0aUser actions (legacy, full permissions)
Full authentication guide →