跳到正文
浏览文档

社交关系

粉丝

关注某用户的账号,每页最多 50 个。把 next 当作 cursor 传入以继续。

GET/api/v1/twitter/users/followers/:userId

价格

4 个 token 每次 (3 + 1 × ceil(count ÷ 50));失败的调用会退回,但 404(未找到)除外。

参数

userIdpath必填
Numeric user ID. 示例: 44196397
countquery
Items to return, 1–50. Default 50. 示例: 50
cursorquery
Cursor from a previous response's next field.

请求

curl
curl "https://api.xscraper.online/api/v1/twitter/users/followers/44196397?count=50" \
  -H "x-api-key: $XSCRAPER_KEY"

响应

200 OK(示例结构)
{
  "success": true,
  "message": "…",
  "data": {
    "profiles": [
      {
        "userId": "2244994945",
        "username": "XDevelopers",
        "name": "Developers",
        "url": "https://x.com/XDevelopers",
        "biography": "The voice of the X Dev team and your official source for updates, news, and events, related to the X API.",
        "bioLinks": [],
        "location": "127.0.0.1",
        "website": "https://docs.x.com/",
        "avatar": "https://pbs.twimg.com/profile_images/1683501992314798080/xl1POYLw.jpg",
        "banner": "https://pbs.twimg.com/profile_banners/2244994945/1690213128",
        "joined": "2013-12-14T04:35:55.000Z",
        "followersCount": 698112,
        "followingCount": 765,
        "friendsCount": 765,
        "tweetsCount": 4349,
        "likesCount": 2685,
        "mediaCount": 830,
        "listedCount": 2978,
        "pinnedTweetIds": [
          "2019881223666233717"
        ],
        "isPrivate": false,
        "isVerified": false,
        "isBlueVerified": true,
        "verifiedType": "Business",
        "canDm": true,
        "professional": {
          "type": "Business",
          "categories": [
            "Community"
          ]
        },
        "affiliation": {
          "label": "X",
          "url": "https://twitter.com/X",
          "badgeUrl": "https://pbs.twimg.com/profile_images/1955359038532653056/OSHY3ewP_bigger.jpg"
        },
        "parodyLabel": null,
        "defaultProfile": false,
        "defaultProfileImage": false,
        "possiblySensitive": false
      }
    ],
    "next": "1846419170546342870|2102219347227549663"
  },
  "errors": null
}

试一试

预计花费 4 个 token

只保存在这个标签页里,并且只作为这次请求的 x-api-key 头发送。

Numeric user ID.

Items to return, 1–50. Default 50.

Cursor from a previous response's next field.

GET /api/v1/twitter/users/followers/44196397?count=50

响应、状态码和消耗的 token 会显示在这里。