X Twitter Get Following By Username

2.07 credits/call
ae_x_twitter_get_following_by_username

X关注列表(按用户名)。列出指定用户名账号关注的用户列表;必填screen_name用户名,不要求数字ID,也无需先调用其他工具查ID。首次省略cursor;后续将本接口上次返回的next_cursor作为cursor传入。每次直接返回一页,关注列表位于data.following,并在可用时返回next_cursor;数量可变,不自动翻页,不保证一次查全。适合查看账号关注对象和分析关注关系,不用于查询粉丝或关联账号。个别字段可能缺失,统计信息以实际返回为准。

Social
2.07 credits/call

Pricing

2.07 credits/call
ConditionCharge
Each call2.07 credits/call

The fixed fee is 2.07 credits per call.

Successful calls are charged, including calls that return no results. Failed calls are not charged. Each call retrieves one page of accounts followed by the specified username; the number returned may vary and does not affect the per-call fee. Fetching the next page using the returned cursor is a separate billable call.

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
cursorstringNo游标/Cursor—
screen_namestringYes用户名/Screen Name—

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_x_twitter_get_following_by_username' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "cursor": "1874732468032007506|2122681201561960376",
    "screen_name": "elonmusk"
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "code": 200,
  "data": {
    "following": [
      {
        "created_at": "Sun Mar 30 07:13:49 +0000 2014",
        "description": "Deploying compute @spacex. Also building lasers at @meshoptical Helped build the Starlink Laser Mesh 🛰️",
        "followers_count": 1939,
        "friends_count": 305,
        "media_count": 117,
        "name": "Travis Brashears"
      }
    ],
    "more_users": true,
    "next_cursor": "1867721691911071625|2122681201561960324",
    "status": "ok"
  },
  "docs": "https://api.tikhub.io/#/Twitter-Web-API/fetch_user_followings_api_v1_twitter_web_fetch_user_followings_get",
  "message": "Request successful. This request will incur a charge.",
  "message_zh": "请求成功,本次请求将被计费。",
  "request_id": "f6efce73-a227-49f0-9d4d-78953dc00e90"
}

This example shows part of the response. Copied content is valid JSON.