keywordstringbắt buộc
Search Keyword
https://api.sandbase.ai/v1/api/twitter/web/search-communitiesSearch communities 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 a list of Twitter communities that match a search keyword. Each result includes the community name, ID, primary topic, member count and banner images. The only required input is keyword.
superman, to join or study.member_count to see which ones are largest.is_nsfw flag before showing results in an app.curl -X POST "https://api.sandbase.ai/v1/api/twitter/web/search-communities" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "superman"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | Search Keyword |
cursor | string | No | Cursor |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"communities": [
{
"community_id": "1589365710655979520",
"custom_banner": "https://pbs.twimg.com/community_banner_img/2107751704808579073/T11UFoyj?format=j…",
"default_banner": "https://pbs.twimg.com/media/FECQfL3UcAc3IfU.jpg",
"is_nsfw": false,
"member_count": 111548,
"name": "DC",
"primary_topic": "Comics",
"user_id": ""
}
],
"next_cursor": "WzgwLjQwNzEzLDE5NDM5Mjk1MzU4ODU3MjIwMTBd"
}
| Field | Meaning |
|---|---|
communities[] | List of communities that match the keyword. |
communities[].community_id | ID of the community as a numeric string. Use it to look up the community in other APIs. |
communities[].name | Display name of the community. |
communities[].member_count | Number of members in the community. |
communities[].primary_topic | Main topic label of the community, such as Comics or Movies. |
communities[].is_nsfw | true if the community is marked as adult content, false otherwise. |
communities[].custom_banner / communities[].default_banner | Banner image URLs. custom_banner is the image the community set, and default_banner is a stock image. |
communities[].user_id | User ID field. It was an empty string in the sample response. |
next_cursor | Cursor string for the next page of results. |
next_cursor from the response as cursor in the next request to get more results.community_id is a numeric string. Pass it to Twitter Community info for details about one community.$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/search-communities" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "superman"
}'Đặ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.
keywordstringbắt buộcSearch Keyword
cursorstringCursor
Đâ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 Search communitiesAPI 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/search-communities 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: keyword (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 Search communities 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).