screen_namestringbắt buộc
Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk
https://api.sandbase.ai/v1/api/twitter/web/user-followersRetrieves follower profiles for a specified Twitter (X) account, including follower counts and verification statuses. Supports pagination.
[
{
"data": {
"followers": [
{
"affiliates": [],
"blue_verified": true,
"business_account": null,
"can_dm": null,
"created_at": "Thu Apr 23 21:53:30 +0000 2009",
"description": null,
"followers_count": 41935094,
"friends_count": null,
"location": "Earth",
"media_count": null,
"name": "SpaceX",
"profile_image": "https://pbs.twimg.com/profile_images/1697749409851985920/HbrI04tM_normal.jpg",
"screen_name": "SpaceX",
"statuses_count": null,
"user_id": "34743251",
"verified": false,
"website": null
},
{
"affiliates": [],
"blue_verified": true,
"business_account": null,
"can_dm": null,
"created_at": "Tue Nov 18 21:28:10 +0000 2008",
"description": null,
"followers_count": 28090983,
"friends_count": null,
"location": "Global",
"media_count": null,
"name": "National Geographic",
"profile_image": "https://pbs.twimg.com/profile_images/2050149546685022208/72MxNUv-_normal.jpg",
"screen_name": "NatGeo",
"statuses_count": null,
"user_id": "17471979",
"verified": false,
"website": null
},
{
"affiliates": {
"label": {
"badge": {
"url": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_bigger.jpg"
},
"description": "NASA",
"url": {
"url": "https://twitter.com/NASA",
"urlType": "DeepLink"
},
"userLabelDisplayType": "Badge",
"userLabelType": "BusinessLabel"
}
},
"blue_verified": true,
"business_account": null,
"can_dm": null,
"created_at": "Thu Mar 06 20:15:02 +0000 2008",
"description": null,
"followers_count": 8900821,
"friends_count": null,
"location": "Goddard Space Flight Center",
"media_count": null,
"name": "Hubble",
"profile_image": "https://pbs.twimg.com/profile_images/3468011581/efb985f24af0a814a722457a768f3cc5_normal.jpeg",
"screen_name": "NASAHubble",
"statuses_count": null,
"user_id": "14091091",
"verified": false,
"website": null
},
"… 67 more items in the full response"
],
"followers_count": 92375012,
"more_users": true,
"next_cursor": "1878303560861741507|2107451161253511096",
"status": "ok"
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Returns a page of follower profiles for a public Twitter (X) account. It needs the account's screen_name and returns each follower's name, handle, ID, and follower count, plus a cursor for the next page.
user_id.curl -X POST "https://api.sandbase.ai/v1/api/twitter/web/user-followers" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"screen_name": "NASA"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
screen_name | string | Yes | Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk |
cursor | string | No | Cursor, default is None, used for paging, obtained from the last request |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"followers": [
{
"affiliates": [],
"blue_verified": true,
"business_account": null,
"can_dm": null,
"created_at": "Thu Apr 23 21:53:30 +0000 2009",
"description": null,
"followers_count": 41933560,
"friends_count": null,
"location": "Earth",
"media_count": null,
"name": "SpaceX",
"profile_image": "https://pbs.twimg.com/profile_images/1697749409851985920/HbrI04tM_normal.jpg"
}
],
"followers_count": 92289815,
"more_users": true,
"next_cursor": "1880822017849790130|2117523445288796127",
"status": "ok"
}
| Field | Meaning |
|---|---|
followers[].screen_name / followers[].name | The follower's handle and display name. |
followers[].user_id | The follower's numeric account ID, returned as a string. |
followers[].followers_count | How many followers this follower account has. |
followers[].blue_verified / followers[].verified | Verification flags for the follower. A profile can be blue_verified while verified is false. |
followers[].created_at | When the follower account was created, in a format like Thu Apr 23 21:53:30 +0000 2009. |
followers[].location | Location text from the follower's profile. |
followers[].affiliates | Affiliation data for the follower. It is an empty list when there is none, and an object with a label (for example a business badge) when the account is linked to an organization. |
followers_count | Follower total for the target account (the screen_name you sent). |
more_users | true when more follower pages are available. |
next_cursor | Cursor string to pass as cursor in the next request. |
screen_name from the profile URL. For https://twitter.com/NASA, use NASA.next_cursor value as cursor and keep the same screen_name. Stop when more_users is false.description, friends_count, media_count, and statuses_count came back as null in this response, so do not rely on them here.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/twitter/web/user-followers" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"screen_name": "NASA"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
screen_namestringbắt buộcScreen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk
cursorstringCursor, default is None, used for paging, obtained from the last request
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
[
{
"data": {
"followers": [
{
"affiliates": [],
"blue_verified": true,
"business_account": null,
"can_dm": null,
"created_at": "Thu Apr 23 21:53:30 +0000 2009",
"description": null,
"followers_count": 41935094,
"friends_count": null,
"location": "Earth",
"media_count": null,
"name": "SpaceX",
"profile_image": "https://pbs.twimg.com/profile_images/1697749409851985920/HbrI04tM_normal.jpg",
"screen_name": "SpaceX",
"statuses_count": null,
"user_id": "34743251",
"verified": false,
"website": null
},
{
"affiliates": [],
"blue_verified": true,
"business_account": null,
"can_dm": null,
"created_at": "Tue Nov 18 21:28:10 +0000 2008",
"description": null,
"followers_count": 28090983,
"friends_count": null,
"location": "Global",
"media_count": null,
"name": "National Geographic",
"profile_image": "https://pbs.twimg.com/profile_images/2050149546685022208/72MxNUv-_normal.jpg",
"screen_name": "NatGeo",
"statuses_count": null,
"user_id": "17471979",
"verified": false,
"website": null
},
{
"affiliates": {
"label": {
"badge": {
"url": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_bigger.jpg"
},
"description": "NASA",
"url": {
"url": "https://twitter.com/NASA",
"urlType": "DeepLink"
},
"userLabelDisplayType": "Badge",
"userLabelType": "BusinessLabel"
}
},
"blue_verified": true,
"business_account": null,
"can_dm": null,
"created_at": "Thu Mar 06 20:15:02 +0000 2008",
"description": null,
"followers_count": 8900821,
"friends_count": null,
"location": "Goddard Space Flight Center",
"media_count": null,
"name": "Hubble",
"profile_image": "https://pbs.twimg.com/profile_images/3468011581/efb985f24af0a814a722457a768f3cc5_normal.jpeg",
"screen_name": "NASAHubble",
"statuses_count": null,
"user_id": "14091091",
"verified": false,
"website": null
},
"… 67 more items in the full response"
],
"followers_count": 92375012,
"more_users": true,
"next_cursor": "1878303560861741507|2107451161253511096",
"status": "ok"
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Twitter (X) User FollowersAPI này Twitter | $0.001 mỗi lần gọi | JSON |
Twitter | $0.001 mỗi lần gọi | JSON |
Twitter | $0.001 mỗi lần gọi | JSON |
Twitter | $0.001 mỗi lần gọi | JSON |
Twitter | $0.001 mỗi lần gọi | JSON |
Twitter | $0.001 mỗi lần gọi | JSON |
Hướng dẫn:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/twitter/web/user-followers với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.001 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: screen_name (string). Tùy chọn: cursor (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Twitter (X) User Followers chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Twitter.