Engagement check
Whether one user retweeted, replied to or quoted a tweet.
/tweet/{tweetId}/engagementParameters
tweetIdpath · string · requiredNumeric tweet ID (digits only, up to 30), the number at the end of the tweet URL.
usernamequery · string · optionalHandle of the user to check, with or without @. Either username or userId is required.
userIdquery · string · optionalNumeric 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'import httpx
# No SDK method for this endpoint yet, so this is a plain HTTP call.
resp = httpx.get(
"https://api.twittrapi.com/tweet/2127075627668832611/engagement",
headers={"X-API-KEY": "YOUR_API_KEY"},
params={
"username": "NASA",
},
timeout=60,
)
data = resp.json()import { TwittrAPI } from "twittrapi";
const client = new TwittrAPI({ apiKey: process.env.TWITTRAPI_API_KEY });
// No wrapper method for this endpoint yet; client.get() sends the same authenticated GET.
const data = await client.get({
path: "/tweet/2127075627668832611/engagement",
query: {
username: "NASA",
},
});curl 'https://twitter-aio.p.rapidapi.com/tweet/2127075627668832611/engagement?username=NASA' \
--header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY' \
--header 'x-rapidapi-host: twitter-aio.p.rapidapi.com'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.