Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

X Posts API

The Posts API from X — 4 operation(s) for posts.

X Posts API is one of 4 APIs that X publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Posts. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 5 operations across 4 paths. It is described by OpenAPI 3.1.0, at version 2.0.

Requests are made against a single base URL, https://api.x.com/2.

5 operations 4 paths 0 schemas 3 GET2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
2.0
Server
https://api.x.com/2
Authentication
HTTP Bearer
Resource Areas
1

Authentication & Security 1

X Posts API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (JWT) (BearerAuth). By default, every request must be authenticated.

  • BearerAuth — App-only authentication using an OAuth 2.0 Bearer Token issued by the X Developer Platform, passed via the Authorization header.

Paths & Operations 5

Across 4 paths, the API surfaces 5 operations — 3 GET, 2 POST. Each is listed below with its method, path, parameters, and response codes.

Posts 5
POST
/tweets
Create a new post
createTweet → 201
GET
/tweets/search/all
Full-archive search of posts
searchAllTweets 1 param → 200
GET
/tweets/search/stream
Near real-time filtered stream of posts
getFilteredStream → 200
POST
/tweets/search/stream/rules
Add or delete rules for the filtered stream
updateFilteredStreamRules → 201
GET
/tweets/search/stream/rules
List the active rules for the filtered stream
getFilteredStreamRules → 200

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

x-posts-api-openapi.yml Raw ↑

Other APIs X publishes across the network.

X Trends API
X Users API