OpenAPI 文档/X (Twitter)GET

X (Twitter) — 用户推文列表

SpiderHubs OpenAPI 文档:X (Twitter) — 用户推文列表,分类 X (Twitter)。接口 GET /openapi/v1/contentcreator/twitter/web/fetch_user_post_tweet。获取用户发布的推文时间线(含转推 / 引用),cursor...

OpId: tw-user-tweets · 最近更新: 2026-05-23

说明

获取用户发布的推文时间线(含转推 / 引用),cursor 翻页。

基础信息

Endpoint:
GET /openapi/v1/contentcreator/twitter/web/fetch_user_post_tweet
计费:
1 积分 / 次
限流:
300 次 / 分钟 / 用户

请求参数说明

参数类型必填说明
screen_namestring用户名,与 rest_id 二选一
rest_idstring用户数字 ID,与 screen_name 二选一
cursorstring游标,首次不传,翻页传上次返回的 next_cursor

响应字段说明

字段类型说明
codeint业务状态码,200 表示成功
request_idstring本次请求唯一标识,排查问题时可提供
dataobject业务数据容器,具体字段见下
data.timelinearray推文列表,单条字段同「推文详情」(tweet_id / text / favorites / retweets / replies / views / media / author ...)
data.timeline[].quotedobject被引用的推文(若有)
data.next_cursorstring下一页游标,传回 cursor 参数翻页
data.prev_cursorstring上一页游标
请求示例 · cURL
curl 'https://api.spiderhubs.com/openapi/v1/contentcreator/twitter/web/fetch_user_post_tweet?screen_name=elonmusk' \
  -H 'Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxxxxxx'
响应示例
{
  "code": 200,
  "request_id": "e0f4c2ce-3f18-4910-ae38-3f5cf51d9e41",
  "data": {
    "timeline": [
      {
        "tweet_id": "2078086509052227916",
        "created_at": "Fri Jul 17 11:56:47 +0000 2026",
        "text": "This is messed up",
        "lang": "en",
        "favorites": 6234,
        "retweets": 946,
        "replies": 954,
        "quotes": 46,
        "bookmarks": 189,
        "views": "1583956",
        "conversation_id": "2078086509052227916",
        "media": [],
        "author": {
          "rest_id": "44196397",
          "name": "Elon Musk",
          "screen_name": "elonmusk",
          "followers_count": 240919659,
          "blue_verified": true
        },
        "quoted": { "tweet_id": "2078080937343041882", "text": "..." }
      }
      // ... 20 more items
    ],
    "next_cursor": "DAAHCgABHNcEz1O__-wLAAIAAAATMjA3Nzg2...",
    "prev_cursor": "DAAHCgABHNcEz1PAJxELAAIAAAATMjA3ODA4...",
    "status": "ok"
  }
}

开始调用 SpiderHubs API

使用账户中心生成的 API Key,通过 Authorization: Bearer sk_live_xxx 调用接口。