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 full surface of objects, relationships, and operations exposed by that API. This schema captures tweets, users, spaces, lists, direct messages, media, polls, streams, compliance, and advertising data.
Overview
Twitter (X) GraphQL Schema is a GraphQL API specification published by X (Twitter) on the APIs.io network.
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 full surface of objects, relationships, and operations exposed by that API. This schema captures tweets, users, spaces, lists, direct messages, media, polls, streams, compliance, and advertising data.
The specification includes 2 reference links.
Tagged areas include Social-Media, Microblogging, Real-Time Data, Streaming, and Advertising.
Endpoint
References
- Documentation https://docs.x.com/x-api
- GitHub Organization https://github.com/xdevplatform
Related API Specs
Work with this as data
Every GraphQL schema here is available over the APIs.io API and to AI agents over MCP.