Retweet
POST
/tw-v2/interaction/retweetDescription
Retweet a tweet on behalf of an authenticated user. This endpoint allows you to programmatically retweet any public tweet using the user's authentication token.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
| authToken | string | required | Twitter authentication token (auth_token cookie value) |
| tweetId | string | required | The ID of the tweet to retweet |
| proxy | string | optional | Optional proxy in format 'host:port@user:pass' |
Code Examples
const body = {
authToken: 'YOUR_AUTH_TOKEN',
tweetId: '1234567890'
};
const response = await fetch('https://api.tweetapi.com/tw-v2/interaction/retweet', {
method: 'POST',
headers: {
'X-API-Key': 'YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify(body)
});
const data = await response.json();
console.log(data);
Response
Success Response (200 OK)
200
{
"data": {
"id": "1973679189946671450",
"action": "retweet",
"timestamp": "2025-10-02T09:19:22.847Z",
"success": true,
"metadata": {
"retweet_id": "1973679189946671450",
"original_tweet_id": "1973111601470513650",
"text": "RT @lexfridman: Here's my 4+ hour conversation with Pavel Durov (@durov), founder and CEO of Telegram. This was one of the most fascinating…"
}
}
}API Playground
POST
/tw-v2/interaction/retweetSensitive Credentials Required
Requires your Twitter authToken. Use a test account.
Press ⌘ + Enter to execute
curl -X POST "https://api.tweetapi.com/tw-v2/interaction/retweet" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json"Response
Click "Try It!" to see the response