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

# 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 group">
    <a href={href}>
      <button className="flex items-center space-x-2.5 py-1 px-4 bg-primary-dark dark:bg-white text-white dark:text-gray-950 rounded-full group-hover:opacity-[0.9] font-medium">
        <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="message">
    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="clock-rotate-left">
    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="rocket" href="/x-api/posts/lookup/quickstart">
    Make your first Post lookup request
  </Card>

  <Card title="Integration guide" icon="book" href="/x-api/posts/lookup/integrate">
    Learn key concepts and best practices
  </Card>

  <Card title="API Reference" icon="code" href="/x-api/posts/get-post-by-id">
    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>
