Skip to main content
GET
Tweet Comments
💳 1 credit per request

Authorizations

X-API-Key
string
header
required

API key for authentication. Format: sk_live_xxxxxxxxxxxxx

Get your API key from the Dashboard.

Query Parameters

pid
string
required

The tweet ID to get comments for

Example:

"1234567890123456789"

rankingMode
enum<string>

Sort comments by ranking criterion: Relevance (default), Recency (most recent), or Likes (highest likes)

Available options:
Relevance,
Recency,
Likes
Example:

"Relevance"

cursor
string

Pagination cursor from a previous response to get the next page of results

Response

Successful response

Key Response Fields:

Pagination:

  • data.cursor.bottom: Pass as cursor query param to get the next page of comments

Comment List:

  • data.result.instructions[0].entries[]: Array of comment entries (type TimelineAddEntries)
  • data.result.instructions[1]: TimelineTerminateTimeline — indicates end of available results

Each Comment (at entries[].content.itemContent.tweet_results.result):

  • .rest_id: Comment tweet ID
  • .legacy.full_text: Comment text
  • .legacy.created_at: Timestamp when the comment was posted
  • .views.count: View count (returned as string)
  • .legacy.favorite_count: Likes
  • .legacy.retweet_count: Retweets
  • .legacy.reply_count: Replies
  • .legacy.quote_count: Quote tweets
  • .legacy.bookmark_count: Bookmarks
  • .legacy.lang: Language code (e.g. en)
  • .legacy.conversation_id_str: The original tweet ID this comment is replying to
  • .legacy.in_reply_to_status_id_str: The tweet ID being directly replied to
  • .source: App used to post
  • .note_tweet.note_tweet_results.result.text: Full text for comments longer than 280 characters

Comment Author (at entries[].content.itemContent.tweet_results.result.core.user_results.result):

  • .rest_id: User's numeric ID
  • .is_blue_verified: Whether user has a blue checkmark
  • .legacy.name: Display name
  • .legacy.screen_name: Handle (username without @)
  • .legacy.description: Bio
  • .legacy.followers_count: Follower count
  • .legacy.profile_image_url_https: Profile picture URL

Media (at entries[].content.itemContent.tweet_results.result.legacy.extended_entities.media[]):

  • .type: photo, video, or animated_gif
  • .media_url_https: Image URL or video thumbnail
  • .video_info.variants[].url: Video file URL