Tweet Replies Endpoints

Get Replies by Page (Recommended)

Recommended endpoint for scraping tweet replies and conversation threads. Uses cursor-based pagination to avoid timeouts on viral posts. The first request (omit next_cursor) returns root_tweet plus the first batch of replies. Pass next_cursor from the previous response to fetch the next page. Perfect for customer feedback analysis, brand sentiment, and social listening. Pricing: $0.05 per 1,000 replies.

post/twitter/tweets/{tweet_id}/replies/page

Request

  • Base URL: https://api.twexapi.io
  • URL: https://api.twexapi.io/twitter/tweets/{tweet_id}/replies/page
  • Auth: HTTP bearer

Path parameters

tweet_idstring required

The ID of the tweet to get replies for.

Example:2104354931595423762

Request body

next_cursorstring nullable

Cursor returned by the previous page. Leave empty to fetch the first page.

sort_by'Relevance' | 'Recency' | 'Likes'

Sort replies by Relevance, Recency, or Likes.

Example request

{
  "sort_by": "Recency"
}

Response

Current page replies, optional root_tweet on first page, and pagination metadata.

codeinteger

HTTP status code

msgstring

Response message

has_next_pageboolean required

Whether another page is available.

next_cursorstring nullable

Use this cursor to fetch the next page when has_next_page is true.

Example response

{
  "root_tweet": {
    "tweet_id": "2104354931595423762",
    "is_paid_promotion": true,
    "created_at": "Mon Jun 17 03:51:48 +0000 2024",
    "created_at_datetime": "2024-06-17T03:51:48.000Z",
    "hashtags": [
      "AI",
      "Python"
    ],
    "cashtags": [
      "$TSLA"
    ],
    "lang": "en",
    "media": [
      {
        "id": "1802991873836883968",
        "type": "photo",
        "display_url": "pic.twitter.com/...",
        "height": 1080,
        "width": 1920,
        "aspect_ratio": [
          16,
          9
        ],
        "streams": [
          {
            "url": "https://video.twimg.com/...",
            "bitrate": 832000,
            "content_type": "video/mp4"
          }
        ]
      }
    ],
    "user": {
      "id": "1717001045992251392",
      "name": "Cryptoklepto",
      "screen_name": "CK_Cryptoklepto",
      "created_at": "Mon Oct 28 02:32:47 +0000 2024",
      "created_at_datetime": "2024-10-28T02:32:47.000Z",
      "urls": [
        {
          "url": "https://www.google.com",
          "expanded_url": "https://www.google.com",
          "display_url": "www.google.com"
        }
      ],
      "verified_type": "government",
      "profile_image_shape": "Circle",
      "location": "New York, USA"
    }
  },
  "data": [
    {
      "tweet_id": "2104354931595423762",
      "is_paid_promotion": true,
      "created_at": "Mon Jun 17 03:51:48 +0000 2024",
      "created_at_datetime": "2024-06-17T03:51:48.000Z",
      "hashtags": [
        "AI",
        "Python"
      ],
      "cashtags": [
        "$TSLA"
      ],
      "lang": "en",
      "media": [
        {
          "id": "1802991873836883968",
          "type": "photo",
          "display_url": "pic.twitter.com/...",
          "height": 1080,
          "width": 1920,
          "aspect_ratio": [
            16,
            9
          ],
          "streams": [
            {
              "url": "https://video.twimg.com/...",
              "bitrate": 832000,
              "content_type": "video/mp4"
            }
          ]
        }
      ],
      "user": {
        "id": "1717001045992251392",
        "name": "Cryptoklepto",
        "screen_name": "CK_Cryptoklepto",
        "created_at": "Mon Oct 28 02:32:47 +0000 2024",
        "created_at_datetime": "2024-10-28T02:32:47.000Z",
        "urls": [
          {
            "url": "https://www.google.com",
            "expanded_url": "https://www.google.com",
            "display_url": "www.google.com"
          }
        ],
        "verified_type": "government",
        "profile_image_shape": "Circle",
        "location": "New York, USA"
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.