跳转到主要内容
GET
Get User TimeLine
按数字 userId 获取用户自己发布的推文,按时间倒序排列,与 X 应用中其个人主页展示的顺序一致。每页最多 20 条;传入返回的 cursor 可获取更多。可选择包含回复以及每条回复的父推文。适合用于查看某账号随时间发布的内容。此接口不支持时间范围过滤——如果需要特定时间窗口内的推文,请使用 get_twitter_user_mentions(支持 sinceTime/untilTime),或在查询中使用日期运算符配合 get_twitter_tweet_advanced_search。 如果你只有 @handle,get_twitter_user_last_tweets 同时接受 handle 或 ID。
第一次用? 把任意 MCP 客户端指向 https://mcp.aisa.one/mcp —— Claude Code、 Codex、Cursor、VS Code 都可以。鉴权走 OAuth:客户端打开浏览器,你点一次 Allow,不需要粘贴任何 key。之后智能体通过几个元工具调用所有端点: search、list_categories、get_details 和 batch_quote 免费,batch_use 按次计费。各客户端的接入步骤见通过 MCP 连接;实时工具列表和 每次调用的价格见 aisa.one/zh-cn/mcp。
在你的 agent 里把这个端点跑起来 →

请求规范

  • 方法与路径: GET /apis/v1/twitter/user/tweet_timeline
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/twitter/user/tweet_timeline
  • cursor: query; 可选
  • includeParentTweet: query; 可选
  • includeReplies: query; 可选
  • userId: query; 可选
  • userName: query; 可选
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

按实际计费结果数量收费。 默认请求预估费用:$0.0057 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

Authorization
string
header
必填

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

查询参数

cursor
string

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

includeParentTweet
string

Whether to include the parent tweet when a tweet is a reply. Defaults to false.

Provider reference (supplier schema): {"default":false,"type":"boolean"}.

includeReplies
string

Whether to include replies in the results. Defaults to false.

Provider reference (supplier schema): {"default":false,"type":"boolean"}.

userId
string

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

userName
string

响应

用户推文时间线

code
integer

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

data
object
has_next_page
boolean
msg
string
next_cursor
string | null
status
enum<string>
可用选项:
success,
error