community_idstringbắt buộc
Community ID
https://api.sandbase.ai/v1/api/twitter/web/community-membersGet community members (no pagination) on Twitter. Returns the platform data as structured JSON.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
This API returns a list of members of a Twitter Community. It needs a community_id and returns each member's name, handle, user ID, profile image and Blue verification flag.
user_id values to look up full profiles in other APIs.curl -X POST "https://api.sandbase.ai/v1/api/twitter/web/community-members" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"community_id": "1493290339532222469"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
community_id | string | Yes | Community ID |
cursor | string | No | Cursor (no pagination, has no effect) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"members": [
{
"blue_verified": true,
"name": "DustyBC Crypto",
"profile_image": "https://pbs.twimg.com/profile_images/1644089081360445442/XLMlSx4u_normal.jpg",
"screen_name": "DustyBC",
"user_id": "913778551555608576"
}
],
"next_cursor": "CycRAAAAAAwABAwKmwzBVQo+vRNHWkZXlyACCm07AAABfvmCq3QADJorCj69f/////////8KbTt/////…",
"status": "ok"
}
| Field | Meaning |
|---|---|
members[] | List of Community members returned in this response. |
members[].user_id | Numeric ID of the member's account, as a string. |
members[].screen_name | The member's handle, without the @ sign. |
members[].name | The member's display name. |
members[].blue_verified | true if the account has Blue verification, false if not. |
members[].profile_image | URL of the member's profile image. The URL points to a small _normal size version. |
next_cursor | Cursor string returned with the list. |
status | Request status. ok means the call worked. |
community_id from a Community search or from the Community info API. Try Twitter Search communities or Twitter Community info.cursor parameter has no effect, even though the response includes next_cursor.user_id or screen_name from each member with Twitter (X) User Profile to get full profile details.$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/community-members" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"community_id": "1493290339532222469"
}'Đặ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.
community_idstringbắt buộcCommunity ID
cursorstringCursor (no pagination, has no effect)
Đâ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.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
X (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/community-members 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: community_id (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 Community members (no pagination) 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 X (Twitter).