> ## Documentation Index
> Fetch the complete documentation index at: https://x-preview-mintlify-b8c19c78.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-b8c19c78/oeE9e4yE1fVC7B9c/icons/xds/icon-chat.svg?fit=max&auto=format&n=oeE9e4yE1fVC7B9c&q=85&s=97e4698b61e7e1479d506c33b17cb410" 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-b8c19c78/Oop4M09Xh0w9BDyo/icons/xds/icon-history.svg?fit=max&auto=format&n=Oop4M09Xh0w9BDyo&q=85&s=61c025746ffee808b9eb69e00ebf43d8" 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-b8c19c78/dFhTI5o_cnAxhj8C/icons/xds/icon-rocket.svg?fit=max&auto=format&n=dFhTI5o_cnAxhj8C&q=85&s=3106e95425211d3b3a3bf22fdc4d994f" 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-b8c19c78/E26_WOQX_WsneS5z/icons/xds/icon-book.svg?fit=max&auto=format&n=E26_WOQX_WsneS5z&q=85&s=5c792c385b10a7b9a4cb673257c8d1f8" 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-b8c19c78/oeE9e4yE1fVC7B9c/icons/xds/icon-code.svg?fit=max&auto=format&n=oeE9e4yE1fVC7B9c&q=85&s=236739f51e6676fcc23005cc510ca3d5" 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>
