X (Twitter) · GraphQL Specification

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.

Documentation Endpoint View on GitHub Social MediaMicrobloggingReal-Time DataStreamingAdvertisingContentGraphQL

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

Related API Specs

X API (OpenAPI)
Back to X (Twitter) · All GraphQL Specs · GitHub