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

# Likes Streams

> The Likes Streams endpoints deliver real-time like events through persistent HTTP GET connections. Reference for the X API v2 standard tier covering stream.

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 Likes Streams endpoints deliver real-time like events through persistent HTTP GET connections. These streams provide access to like activity across X, enabling you to track engagement patterns, monitor content performance, and analyze liking behavior at scale.

Two streams are available:

* **All Likes stream** — Delivers all public like events in real time (firehose).
* **Sampled Likes stream** — Delivers a 10% sample of public like events.

These streaming endpoints use [OAuth 2.0 App-Only](/resources/fundamentals/authentication#oauth-2-0) authentication.

*To use these APIs, you must first set up an account with our enterprise sales team.*

<Note>
  **Account setup**

  To access these endpoints, you will need:

  * An approved [developer account](https://developer.x.com/en/portal/petition/essential/basic-info).
  * To authenticate using the keys and tokens from a [developer App](/resources/fundamentals/developer-apps) that is located within a [Project](/resources/fundamentals/developer-apps).

  Learn more about getting access to the X API v2 endpoints in our [getting started guide](/x-api/getting-started/getting-access).
</Note>

***

## Endpoints

| Method | Endpoint                                                         | Description                         |
| :----- | :--------------------------------------------------------------- | :---------------------------------- |
| GET    | [`/2/likes/firehose/stream`](/x-api/stream/stream-all-likes)     | Stream all like events in real time |
| GET    | [`/2/likes/sample10/stream`](/x-api/stream/stream-sampled-likes) | Stream a 10% sample of like events  |

***

## Streaming fundamentals

<CardGroup cols={2}>
  <Card title="Consuming streaming data" icon="stream" href="/x-api/fundamentals/consuming-streaming-data">
    Best practices for streaming clients
  </Card>

  <Card title="Handling disconnections" icon="plug" href="/x-api/fundamentals/handling-disconnections">
    Reconnect gracefully
  </Card>

  <Card title="High volume capacity" icon="gauge-high" href="/x-api/fundamentals/high-volume-capacity">
    Handle high throughput
  </Card>

  <Card title="Recovery and redundancy" icon="shield" href="/x-api/fundamentals/recovery-and-redundancy">
    Build resilient applications
  </Card>
</CardGroup>
