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