Tweets
Bookmark
Bookmark a tweet programmatically via API. $0.001 per call. GetXAPI bookmark tweet endpoint documentation with code examples.
POST
/twitter/tweet/bookmarkThis endpoint costs $0.001 per API call.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
auth_token | string | Yes | User's auth token |
tweet_id | string | Yes | Tweet id to bookmark |
proxy | string | No | Proxy URL (http://, https://, socks5://, or socks4://) |
Notes
- Adds a tweet to the auth_token owner's bookmarks.
- Idempotent on already-bookmarked tweets — Twitter returns the same
Doneconfirmation.
Response (200)
{
"status": "success",
"msg": "Tweet bookmarked successfully",
"data": {
"tweetId": "2019264360682778716",
"bookmarked": true
}
}Error Responses
400 - Missing fields
{
"error": "Missing required field: tweet_id"
}401 - Invalid auth_token
{
"error": "Invalid auth_token - could not extract userId"
}Example
curl -X POST "https://api.getxapi.com/twitter/tweet/bookmark" \
-H "Authorization: Bearer API_KEY" \
-H "Content-Type: application/json" \
-d '{
"auth_token": "your_auth_token",
"tweet_id": "2019264360682778716"
}'