The Post lookup endpoints allow you to retrieve one or more Posts by their IDs. Use these endpoints to get up-to-date Post details, verify Post availability, or examine edit history.Documentation Index
Fetch the complete documentation index at: https://docs.x.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Posts are the core content on X. Each Post can contain:- Up to 280 characters of text
- Attached media (images, videos, GIFs)
- Polls, places, and URLs
- Replies, quotes, and mentions
Single Post
Retrieve a specific Post by ID
Multiple Posts
Retrieve up to 100 Posts in one request
Edit History
Access the complete edit history of a Post
Expanded Objects
Include author, media, polls, and more
Use cases
- Display Post content — Show Post details in your application
- Verify availability — Check if a Post still exists or was deleted
- Compliance management — Track Post changes for compliance events
- Analytics — Retrieve engagement metrics for specific Posts
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /2/tweets/:id | Retrieve a single Post by ID |
| GET | /2/tweets | Retrieve multiple Posts by IDs (up to 100) |
Getting started
Prerequisites
- An approved developer account
- A Project and App in the Developer Console
- Your App’s keys and tokens
Quickstart
Make your first Post lookup request
Integration guide
Learn key concepts and best practices
API Reference
See full endpoint documentation
Sample code
Explore code examples