Skip to main content

Retweet / Unretweet

Retweet / Unretweet

Retweet or unretweet from your connected X account. Each operation consumes 100 flat credits.

POST/v2/tweets/:tweetId/retweetRetweet a tweet.
ParameterTypeRequiredDefaultDescription
tweetIdstringrequired—The numeric tweet ID to retweet (path parameter)
BASH
curl -X POST https://xcrop.io/api/v2/tweets/1893045621038174208/retweet \
  -H "Authorization: Bearer $XCROP_API_KEY"
ResponseJSON
{
  "success": true,
  "data": {
    "tweet_id": "1893045621038174208",
    "retweeted": true
  },
  "meta": { "latency_ms": 401 }
}
DELETE/v2/tweets/:tweetId/retweetUnretweet a previously retweeted tweet.
BASH
curl -X DELETE https://xcrop.io/api/v2/tweets/1893045621038174208/retweet \
  -H "Authorization: Bearer $XCROP_API_KEY"
ResponseJSON
{
  "success": true,
  "data": {
    "tweet_id": "1893045621038174208",
    "unretweeted": true
  },
  "meta": { "latency_ms": 312 }
}

More in Write API

Full documentation with search: xcrop.io/docs