Skip to main content
GET
获取用户推文时间线
按数字 userId 获取用户自己发布的推文,按时间倒序排列,与 X 应用中其个人主页展示的顺序一致。每页最多 20 条;传入返回的 cursor 可获取更多。可选择包含回复以及每条回复的父推文。适合用于查看某账号随时间发布的内容。此接口不支持时间范围过滤——如果需要特定时间窗口内的推文,请使用 get_twitter_user_mentions(支持 sinceTime/untilTime),或在查询中使用日期运算符配合 get_twitter_tweet_advanced_search 如果你只有 @handle,get_twitter_user_last_tweets 同时接受 handle 或 ID。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

查询参数

userId
string

要检索其时间线的用户的用户 ID。

includeReplies
boolean
默认值:false

是否在结果中包含回复。默认为 false。

includeParentTweet
boolean
默认值:false

当推文是回复时,是否包含父推文。默认为 false。

cursor
string

用于对结果进行分页的游标。第一页请留空。

响应

200 - application/json

用户推文时间线

status
enum<string>
可用选项:
success,
error
code
integer

AIsa 封装层返回的提供商状态码。

msg
string
data
object
has_next_page
boolean
next_cursor
string | null