community_idstringbắt buộc
Community ID
https://api.sandbase.ai/v1/api/twitter/web/community-infoGet community info 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.
Returns the profile of one Twitter community: its name, description, member count, banner images and rules. It needs a community_id.
member_count over time.is_nsfw before showing them to users.curl -X POST "https://api.sandbase.ai/v1/api/twitter/web/community-info" \
-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 |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"created_at": 1644863135598,
"custom_banner_media": "https://pbs.twimg.com/media/FECS7TfVcAcCrj2.jpg",
"default_banner_media": "https://pbs.twimg.com/media/FECS7TfVcAcCrj2.jpg",
"description": "XRP community",
"id": "1493290339532222469",
"is_nsfw": false,
"last_cursor": "",
"member_count": 123243,
"name": "XRP",
"primary_topic": null,
"rules": [
{
"description": "You should be respectful towards others.",
"name": "Be Respectful"
}
],
"status": "failed"
}
| Field | Meaning |
|---|---|
id | Community ID. It matches the community_id you sent. |
name | Display name of the community. |
description | Short text that describes the community. |
member_count | Number of members in the community. |
created_at | Creation time of the community as a number. The value looks like a Unix time in milliseconds. |
is_nsfw | true if the community is marked as NSFW, otherwise false. |
custom_banner_media / default_banner_media | URLs of the community banner images. |
rules[].name / rules[].description | Title and full text of each community rule. |
primary_topic | Main topic of the community. It is null when none is set. |
status | Status string in the response. The sample shows failed, so check this field in your own code. |
community_id with Twitter Search communities.last_cursor is an empty string in this response.$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-info" \
-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
Đâ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 |
|---|---|---|
Twitter Community infoAPI này 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-info 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). 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 info 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).