Skip to main content
Every reply on X belongs to a conversation thread. The conversation_id field lets you identify, track, and reconstruct entire conversation trees.

How it works

When someone posts and others reply, all replies share the same conversation_id—the ID of the original post that started the conversation. No matter how deep the thread goes, all posts share the same conversation_id.

Requesting conversation_id

Add conversation_id to your tweet.fields:
Response:

Getting a full conversation

Use conversation_id as a search operator to retrieve all posts in a thread:
This returns all replies to the original post, sorted reverse-chronologically.

Use cases

Build the full conversation tree:


Example: Full thread retrieval


Notes

  • The original post’s conversation_id equals its own id
  • conversation_id is available on all v2 endpoints that return posts
  • Use with filtered stream to monitor conversations in real-time
  • Combine with pagination for large threads

Next steps

Search posts

Search by conversation_id.

Filtered stream

Monitor conversations in real-time.