Docs
Engagement check

Engagement check

Whether one user retweeted, replied to or quoted a tweet.

GET/tweet/{tweetId}/engagement

Parameters

  • tweetIdpath · string · required

    Numeric tweet ID (digits only, up to 30), the number at the end of the tweet URL.

  • usernamequery · string · optional

    Handle of the user to check, with or without @. Either username or userId is required.

  • userIdquery · string · optional

    Numeric ID of the user to check, instead of username.

Notes

  • Billed as three calls: one each for retweets, replies and quotes.
  • No simple format: with format=simple the response is the same as without it.

Example request

curl 'https://api.twittrapi.com/tweet/2127075627668832611/engagement?username=NASA' \
  --header 'X-API-KEY: YOUR_API_KEY'

Base URL https://api.twittrapi.com, key in the X-API-KEY header. Python and Node.js use the official SDKs.

Response

Built by the API: {"tweetId", "userId", "username", "retweeted", "retweetId", "replied", "replyIds", "repliedInThread", "threadReplyIds", "quoted", "quoteIds"}. replied means a direct reply to the tweet; repliedInThread also counts replies elsewhere in its conversation. retweeted is null when the user retweets so often that the check could not reach the tweet's time; retweetId is the user's retweet.

{
  "tweetId": "2127075627668832611",
  "userId": "11348282",
  "username": "NASA",
  "retweeted": true,
  "retweetId": "2127101633247019094",
  "replied": false,
  "replyIds": [],
  "repliedInThread": false,
  "threadReplyIds": [],
  "quoted": false,
  "quoteIds": []
}

In the raw format, field names and nesting come from X and can change without notice. See Response format.

Errors

  • 422tweetId is not numeric.
  • 400username and userId are both missing.
  • 422username or userId is not valid, or the username lookup failed.
  • 404The user could not be found.

Errors every endpoint can return (401, 402, 403, 404, 408, 409, 429, 5xx), and which of them are charged, are on the Errors page. Calls that fail with 400, 407, 408, 409 or a 5xx error are refunded.