X/Twitter API docs

X/Twitter API: Posts — Comments by post ID

Retrieve public Posts conversations from X/Twitter for audience monitoring, moderation, and content analysis.

Use “Comments by post ID” when you need discussion text, authors, timestamps, and sequential pagination.

Method GET
Entity Posts
Versions 2
What this endpoint does

What you can build with this API method

Review the result and common workflows first, then move to parameters and a working request example.

What this endpoint helps with

The response includes conversation items, public author data, engagement signals, and pagination fields.

When to use it

Use “Comments by post ID” when you need discussion text, authors, timestamps, and sequential pagination.

Common use cases

Conversation monitoring

Track audience reactions under content and around selected objects.

Moderation

Send public messages into review, classification, and quality-control queues.

Feedback analysis

Use discussion text and metadata in reports and audience research.

Available versions

Response version

Both versions solve the same job and accept the same parameters. Use the switch to compare the response structure and choose the version your client expects.

Response version V2

Switch versions on this page to compare response structures while keeping the same documentation URL.

What stays the same

Authentication, required parameters, and the request shape stay the same across V1 and V2. In practice, you choose the version when you build the endpoint path and when you parse the response.

What changes between versions

The main difference is the response envelope. Use V2 for new integrations and keep V1 only when you need compatibility with an existing client contract.

How to use it

How to call the method

Use the same API key header and the same query parameters for both versions. This documentation shows the shared parameter set first, then version-specific endpoint paths and code snippets.

Input parameters

Shared parameters
Parameter Required Type Example Description
tweet_id Yes str value Numeric Twitter/X post identifier. Example: 1153155448012300288.
cursor No str | None QVFB... Next-page cursor returned by the previous response. Omit it for the first page.

Version-specific request path

V2

Choose a version when you copy the exact endpoint path, example URL, and code snippet. The parameter list above stays the same.

GET /api/v2/twitter.com/tweets/comments-by-tweet-id

Normalized format

Code examples

curl --request GET \
  --url "https://www.scrapestorm.net/api/v2/twitter.com/tweets/comments-by-tweet-id" \
  --header "X-API-Key: 00000000-0000-4000-8000-000000000000" \
  --get --data-urlencode 'tweet_id=value' \
  # Optional parameters:
  # --data-urlencode 'cursor=QVFB...'
Response example

Live response by version

The preview keeps key fields and the first collection items so you can scan the response shape quickly. Switching versions changes the JSON format.

Response example

V2 response JSON

Verified example

This compact JSON example comes from the latest successful verification run for V2.

{
  "success": true,
  "status": "ok",
  "pagination": {
    "cursor": "QVFB...",
    "has_more": true
  },
  "search_context": {
    "tweet_id": "1153155448012300288"
  },
  "data": {
    "comments": {
      "count": 36,
      "items": [
        {
          "url": "https://x.com/grandayy/status/1153273250312597504",
          "tweet_id": "1153273250312597504",
          "text": "@elonmusk Elon Musk's twitter account is my favorite anime",
          "created_at": "2019-07-22T11:59:04Z",
          "language": "en",
          "source": "Twitter Web Client",
          "author": {
            "url": "https://x.com/grandayy",
            "user_id": "365956744",
            "username": "grandayy",
            "display_name": "Dr Grandayy",
            "description": "I make memes. Also music kinda. Also video games now.",
            "emails": [],
            "external_links": [],
            "location": "Malta",
            "created_at": "2011-09-01T09:40:13Z",
            "is_verified": false,
            "is_blue_verified": true,
            "is_protected": false,
            "possibly_sensitive": false,
            "default_profile": false,
            "default_profile_image": false,
            "followers_count": 1105082,
            "following_count": 688,
            "tweet_count": 19376,
            "media_count": 3553,
            "listed_count": 531,
            "like_count": 27341,
            "professional_type": null,
            "professional_category_name": null,
            "affiliated_account": null,
            "_more_fields": "5 more fields"
          },
          "is_from_automated_account": null,
          "media": {
            "images": [],
            "videos": [],
            "gifs": []
          },
          "hashtags": [],
          "external_links": [],
          "user_mentions": [
            {
              "user_id": "44196397",
              "username": "elonmusk",
              "display_name": "Elon Musk",
              "start_index": 0,
              "end_index": 9
            }
          ],
          "is_reply": true,
          "reply": {
            "tweet_id": "1153155448012300288",
            "user_id": "44196397",
            "username": "elonmusk"
          },
          "is_quote": false,
          "quote_tweet_id": null,
          "reply_count": 54,
          "retweet_count": 667,
          "quote_count": 5,
          "like_count": 23226,
          "bookmark_count": 19,
          "edit_control": {
            "is_editable": true,
            "editable_until": "2019-07-22T12:29:04.312000Z",
            "edits_remaining": 5
          }
        },
        {
          "url": "https://x.com/s8n/status/1153405383664443392",
          "tweet_id": "1153405383664443392",
          "text": "@elonmusk Is everything ok mr musk",
          "created_at": "2019-07-22T20:44:07Z",
          "language": "en",
          "source": "Twitter for iPhone",
          "author": {
            "url": "https://x.com/s8n",
            "user_id": "13615722",
            "username": "s8n",
            "display_name": "Satan",
            "description": "Would you like to make a deal?",
            "emails": [],
            "external_links": [],
            "location": "Gehenna",
            "created_at": "2008-02-18T09:16:57Z",
            "is_verified": false,
            "is_blue_verified": true,
            "is_protected": false,
            "possibly_sensitive": false,
            "default_profile": false,
            "default_profile_image": false,
            "followers_count": 2513122,
            "following_count": 665,
            "tweet_count": 90374,
            "media_count": 11492,
            "listed_count": 2283,
            "like_count": 24347,
            "professional_type": "Creator",
            "professional_category_name": null,
            "affiliated_account": null,
            "_more_fields": "5 more fields"
          },
          "is_from_automated_account": true,
          "media": {
            "images": [],
            "videos": [],
            "gifs": []
          },
          "hashtags": [],
          "external_links": [],
          "user_mentions": [
            {
              "user_id": "44196397",
              "username": "elonmusk",
              "display_name": "Elon Musk",
              "start_index": 0,
              "end_index": 9
            }
          ],
          "is_reply": true,
          "reply": {
            "tweet_id": "1153155448012300288",
            "user_id": "44196397",
            "username": "elonmusk"
          },
          "is_quote": false,
          "quote_tweet_id": null,
          "reply_count": 31,
          "retweet_count": 233,
          "quote_count": 1,
          "like_count": 10913,
          "bookmark_count": 6,
          "edit_control": {
            "is_editable": true,
            "editable_until": "2019-07-22T21:14:07.358000Z",
            "edits_remaining": 5
          }
        },
        {
          "_more_items": 34
        }
      ]
    }
  }
}
What to do next

Continue the evaluation

Use this documentation as the first decision point, then move into pricing, platform coverage, and integration rules before you connect the endpoint for recurring use.

Open the X/Twitter platform page

Compare adjacent entities, API method groups, and related docs before implementation.

Open platform page

Compare API method pricing

Check where this API method sits inside the public price table before you scale usage.

View pricing

Review integration rules

Use the starter docs to confirm authentication, versioning, retries, and mock vs live behavior.

Open docs
FAQ

Questions teams ask before implementation

Use these answers to decide whether this API method fits your workflow, versioning choice, and rollout plan.

What data does this X/Twitter API method return?

The method performs “Comments by post ID” for Posts. The compact response example below shows the exact field structure.

Should I choose V1 or V2?

Choose V2 for new integrations because it provides a normalized structure. Use V1 only for compatibility with clients that already consume the platform-native format.

What do I need for the first request?

Create an API key, send it in the request header, and provide the required parameters from the table. The code samples already contain the correct path and request structure.