> ## Documentation Index
> Fetch the complete documentation index at: https://x-preview-mintlify-143107c1.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-143107c1/-vUZNvNnsedeyKnT/icons/xds/icon-chat.svg?fit=max&auto=format&n=-vUZNvNnsedeyKnT&q=85&s=65931703120a2ba61763b171daa57b14" 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-143107c1/uZ6JH_Ehl3VlPvhS/icons/xds/icon-history.svg?fit=max&auto=format&n=uZ6JH_Ehl3VlPvhS&q=85&s=e236d26f548f0032247e9d51caf85daf" 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-143107c1/LjDupcgIJeQhUrTV/icons/xds/icon-rocket.svg?fit=max&auto=format&n=LjDupcgIJeQhUrTV&q=85&s=ab9d87f67ff2827df976c782467c9fe1" 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-143107c1/r6g1kiGndqT3mXyl/icons/xds/icon-book.svg?fit=max&auto=format&n=r6g1kiGndqT3mXyl&q=85&s=221001d25934bdf1f9d20077f943b9c8" 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-143107c1/-vUZNvNnsedeyKnT/icons/xds/icon-code.svg?fit=max&auto=format&n=-vUZNvNnsedeyKnT&q=85&s=1df744166b46c62535ed328bca70d1c0" 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>
