> ## Documentation Index
> Fetch the complete documentation index at: https://x-preview-mintlify-71f3eb2f.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Post Lookup

> The Post lookup endpoints allow you to retrieve one or more Posts by their IDs. Reference for the X API v2 standard tier covering lookup.

export const Button = ({href, children}) => {
  return <div className="not-prose">
    <a href={href}>
      <button className="x-btn">
        <span>{children}</span>
        <svg width="3" height="24" viewBox="0 -9 3 24" class="h-6 rotate-0 overflow-visible"><path d="M0 0L3 3L0 6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg>
      </button>
    </a>
  </div>;
};

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.

## 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

Posts can be edited up to 5 times within 30 minutes of creation. Each edit generates a new Post ID, and the edit history is preserved.

<CardGroup cols={2}>
  <Card title="Single Post" icon="https://mintcdn.com/x-preview-mintlify-71f3eb2f/h2yhEAnYqKImW4tE/icons/xds/icon-chat.svg?fit=max&auto=format&n=h2yhEAnYqKImW4tE&q=85&s=c8b77a35263aca721d4be42d065da0f2" width="24" height="24" data-path="icons/xds/icon-chat.svg">
    Retrieve a specific Post by ID
  </Card>

  <Card title="Multiple Posts" icon="messages">
    Retrieve up to 100 Posts in one request
  </Card>

  <Card title="Edit History" icon="https://mintcdn.com/x-preview-mintlify-71f3eb2f/05fzqEVt7W7lhVOc/icons/xds/icon-history.svg?fit=max&auto=format&n=05fzqEVt7W7lhVOc&q=85&s=c383082085c9989738c0143407d2252f" width="24" height="24" data-path="icons/xds/icon-history.svg">
    Access the complete edit history of a Post
  </Card>

  <Card title="Expanded Objects" icon="diagram-project">
    Include author, media, polls, and more
  </Card>
</CardGroup>

***

## 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`](/x-api/posts/get-post-by-id) | Retrieve a single Post by ID               |
| GET    | [`/2/tweets`](/x-api/posts/get-posts-by-ids)   | Retrieve multiple Posts by IDs (up to 100) |

***

## Getting started

<Note>
  **Prerequisites**

  * An approved [developer account](https://developer.x.com/en/portal/petition/essential/basic-info)
  * A [Project and App](/resources/fundamentals/developer-apps) in the Developer Console
  * Your App's [keys and tokens](/resources/fundamentals/authentication)
</Note>

<CardGroup cols={2}>
  <Card title="Quickstart" icon="https://mintcdn.com/x-preview-mintlify-71f3eb2f/M5rAKfbLR555h6HF/icons/xds/icon-rocket.svg?fit=max&auto=format&n=M5rAKfbLR555h6HF&q=85&s=9aa91dad251524d96fdb731fe12fea2b" href="/x-api/posts/lookup/quickstart" width="24" height="24" data-path="icons/xds/icon-rocket.svg">
    Make your first Post lookup request
  </Card>

  <Card title="Integration guide" icon="https://mintcdn.com/x-preview-mintlify-71f3eb2f/vl2W2mJ9NbtLcRBE/icons/xds/icon-book.svg?fit=max&auto=format&n=vl2W2mJ9NbtLcRBE&q=85&s=4b992392724d1ed3c733f7b2910f6216" href="/x-api/posts/lookup/integrate" width="24" height="24" data-path="icons/xds/icon-book.svg">
    Learn key concepts and best practices
  </Card>

  <Card title="API Reference" icon="https://mintcdn.com/x-preview-mintlify-71f3eb2f/h2yhEAnYqKImW4tE/icons/xds/icon-code.svg?fit=max&auto=format&n=h2yhEAnYqKImW4tE&q=85&s=7be3e0d96e1d46c7bde7c9ead229d05b" href="/x-api/posts/get-post-by-id" width="24" height="24" data-path="icons/xds/icon-code.svg">
    See full endpoint documentation
  </Card>

  <Card title="Sample code" icon="github" href="https://github.com/xdevplatform/Twitter-API-v2-sample-code">
    Explore code examples
  </Card>
</CardGroup>
