X

X Posts API

Endpoints related to retrieving, searching, and modifying Posts — 14 operation(s) in the X-published contract.

Operations 19

GET /2/tweets Get Posts by IDs #
POST /2/tweets Create Posts #
GET /2/tweets/analytics Get Posts Analytics #
GET /2/tweets/counts/all Get Posts Counts All #
GET /2/tweets/counts/recent Get Posts Counts Recent #
GET /2/tweets/search/all Search Posts All #
GET /2/tweets/search/recent Search Posts Recent #
DELETE /2/tweets/{id} Delete Posts #
GET /2/tweets/{id} Get Posts by ID #
GET /2/tweets/{id}/liking_users Get Posts Liking Users #
GET /2/tweets/{id}/quote_tweets Get Posts Quoted Posts #
GET /2/tweets/{id}/retweeted_by Get Posts Reposted by #
GET /2/tweets/{id}/retweets Get Posts Reposts #
PUT /2/tweets/{tweet_id}/hidden Hide reply #
POST /tweets Create a new post #
GET /tweets/search/all Full-archive search of posts #
GET /tweets/search/stream Near real-time filtered stream of posts #
POST /tweets/search/stream/rules Add or delete rules for the filtered stream #
GET /tweets/search/stream/rules List the active rules for the filtered stream #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/x-posts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

x-posts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: X Posts API
  version: '1.0'
  description: 'Operations tagged Posts across 2 of this provider''s published API definitions: x-api-v2-openapi.json, x-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- description: X API
  url: https://api.x.com
- url: https://api.x.com/2
  description: X API v2 production server
tags:


# --- truncated at 32 KB (106 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/x/refs/heads/main/openapi/x-posts-api-openapi.yml