Users
Bookmark Search
Search inside a user's Twitter bookmarks via API. $0.001 per call, ~20 results per call. GetXAPI bookmark search endpoint documentation.
POST
/twitter/user/bookmark_searchThis endpoint costs $0.001 per API call and returns ~20 results per page.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
auth_token | string | Yes | User's auth token |
q | string | Yes | Search query |
cursor | string | No | Pagination cursor |
Notes
- Searches your bookmarks.
- Pagination uses
next_cursoruntilhas_moreis false.
Response (200)
{
"userId": "1858475867762270208",
"query": "claude",
"tweet_count": 20,
"has_more": true,
"next_cursor": "DAAHCgABHAY...",
"bookmarks": [
{
"type": "tweet",
"id": "2010705621524292007",
"text": "Hello from GetXAPI.",
"author": {
"userName": "example_user"
}
}
]
}Error Responses
400 - Missing fields
{
"error": "Missing required field: q"
}401 - Invalid auth_token
{
"error": "Invalid auth_token - could not extract userId"
}Example
curl -X POST "https://api.getxapi.com/twitter/user/bookmark_search" \
-H "Authorization: Bearer API_KEY" \
-H "Content-Type: application/json" \
-d '{
"auth_token": "your_auth_token",
"q": "claude"
}'
# With pagination
curl -X POST "https://api.getxapi.com/twitter/user/bookmark_search" \
-H "Authorization: Bearer API_KEY" \
-H "Content-Type: application/json" \
-d '{
"auth_token": "your_auth_token",
"q": "claude",
"cursor": "DAAHCgABHAY..."
}'