X (Twitter)/Tweet Comments

Tweet Comments

GET
https://api.shofo.ai/x/comments

Get comments/replies from an X tweet.

Pricing

Base cost: $0.0001 per comment

Parameters

ParameterTypeRequiredDescription
tweet_idstring
Required
X/Twitter tweet ID
countinteger
Optional
Number of comments (min: 10)Default: 20
cursorstring
Optional
Pagination cursor from previous response

Note: The minimum count is 10 comments per request.

Pagination

To fetch more comments, use the cursor value from the previous response. Continue fetching while has_more is true.

// First request
GET /x/comments?tweet_id=1808168603721650364&count=20

// Subsequent requests
GET /x/comments?tweet_id=1808168603721650364&count=20&cursor=cursor_value

Use Cases

  • Sentiment analysis: Gauge public reaction to tweets
  • Thread analysis: Follow conversations and discussions
  • Crisis monitoring: Track responses during PR events
  • Engagement research: Analyze reply patterns and quality

Response Format

{
  "success": true,
  "data": {
    "tweet_id": "1808168603721650364",
    "comments": [
      {
        "id": "1808234567890123456",
        "text": "Great thread!",
        "author": {
          "id": "123456789",
          "username": "user123",
          "name": "User Name",
          "profile_image_url": "https://..."
        },
        "created_at": "2024-01-15T12:00:00Z",
        "like_count": 25,
        "reply_count": 3,
        "retweet_count": 2
      }
    ],
    "cursor": "cursor_value",
    "has_more": true,
    "total_fetched": 20,
    "api_calls": 1
  },
  "cost": "$0.0020",
  "request_id": "req_abc123"
}

Try It

GET
https://api.shofo.ai/x/comments
$0.0001

Send a request to see the response