v6

latestOpenAPI 3.0.0raw.githubusercontent.com2025-03-123918105.6 KB
Social Actions API

Verify User Commented on a Tweet

This endpoint provides a convenient way to check if a user identified by user_id posted a comment in response to a tweet identified by tweet_id. This endpoint only detects direct replies to a target tweet, and not comments posted under other comments.

The endpoint returns an array of comment_ids taking into account that a single user may have posted more than a single reply.

get/twitter/tweets/{tweet_id}/commented_by/{user_id}

Path parameters

tweet_idstring required

The numeric ID of the target tweet. When using languages where the id value exceeds the default Integer type limit (e.g., JavaScript), you should store id as a String. Use the id_str property returned by the API for these values.

user_idstring required

The numeric ID of the user. When using languages where the id value exceeds the default Integer type limit (e.g., JavaScript), you should store id as a String. Use the id_str property returned by the API for these values.

Response

Request succeeded

statusstring required

Status of the request, "success" when successful

is_commentedboolean required

Indicates whether the user has commented on the target tweet

comment_idsstring[] required

List of comment IDs made by the user on the target tweet

Example response

{
  "status": "success",
  "is_commented": true,
  "comment_ids": [
    "1111111...",
    "2222222..."
  ]
}