Manage Retweets: Standard v1.1 compared to X API v2
If you have been working with the standard v1.1 POST statuses/retweet/:id, and POST statuses/unretweet/:id endpoints, the goal of this guide is to help you understand the similarities and differences between the standard and X API v2 Retweets endpoints.- Similarities
- Authentication
- Differences
- Endpoint URLs and HTTP methods
- Request limitations
- App and Project requirements
- Request parameters
Similarities
Authentication Both the standard v1.1 and X API v2 manage Retweets (POST statuses/retweet/:id, and POST statuses/unretweet/:id) endpoints use OAuth 1.0a User Context. Therefore, if you were previously using one of the standard v1.1 Retweets lookup endpoints, you can continue using the same authentication method if you migrate to the X API v2 version.Differences
Endpoint URLs and HTTP methods- Standard v1.1 endpoints:
- https://api.x.com/1.1/statuses/retweet/:id.json (Retweets a Post. Returns the original Post with Retweet details embedded)
- https://api.x.com/1.1/statuses/unretweet/:id.json (Undo a Retweet. Returns the original Post with Retweet details embedded)
- X API v2 endpoint:
- https://api.x.com/2/tweets/:id/retweets (Retweets a given Post)
- https://api.x.com/2/users/:id/retweets/:source\_tweet\_id (Undo a Retweet of a given Post)
| Standard v1.1 | X API v2 |
|---|---|
| id | id |
| includes_entities | No equivalent |
Code examples
Retweet a Post (v2)
cURL
Undo a Retweet (v2)
cURL