X Twitter Get Following By Username
2.07积分/次
ae_x_twitter_get_following_by_username
按用户名获取X账号关注的用户列表,用于查看关注对象、分析关注关系,而非查询粉丝或关联账号。仅必填screen_name,无需数字ID或前置查询。首次省略cursor,后续使用本接口返回的next_cursor。每次直接返回一页data.following,数量可变,不自动翻页;next_cursor和其他字段以实际返回为准,不保证所有统计字段齐全。
2.07积分/次
价格说明
2.07积分/次
| 条件 | 费用 |
|---|---|
| 每次调用 | 2.07积分/次 |
每次固定费用为2.07积分。
按成功调用次数收费,成功返回空结果也收费;失败不收费。每次调用获取指定用户名所关注用户的一页列表,返回数量可变,不影响单次费用。使用返回的游标获取下一页时,按一次新调用另行计费。
工具参数
未传入的可选参数将使用平台默认值。
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
cursor | string | 否 | 游标/Cursor | — |
screen_name | string | 是 | 用户名/Screen Name | — |
调用示例
复制请求代码,查看对应的返回示例。
POST
/agent-api/v1/tool/executeX-Api-Key请求代码request.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.json
{
"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"
}返回示例仅展示部分内容,不代表完整响应;复制内容为合法 JSON。





