Get user timeline
GET/twitter/user/tweet_timeline15 credits
Fetch a user’s timeline by numeric user ID (use when you have the ID rather than the handle). The sample response below is captured from the live API. List endpoints paginate with `has_next_page` and `next_cursor`.
Authentication required
Send your key in the
x-api-key header. Requests without a valid key return 401.Query parameters
userId
stringrequired
Numeric user ID to fetch the timeline for.
cursor
stringoptional
Pagination cursor for the next page.
Response fields
dataobject
Response payload.
has_next_pageboolean
Whether another page of results is available.
next_cursorstring
Cursor for the next page; null or empty when exhausted.
statusstring
Request status: "success" or "error".
codeinteger
Numeric status code (0 = OK).
msgstring
Status message from the upstream.
data.tweetsarray
Timeline tweet objects in reverse-chronological order.
Request
Response200 OK
base url · https://v2.xapis.dev
Ready to call Get user timeline?
Get an API key or explore the full interactive reference.
