keywordstring必填
Search Keyword
https://api.sandbase.ai/v1/api/twitter/web/search-communitiesSearch communities on Twitter. Returns the platform data as structured JSON.
您的输出将显示在这里
完成输入,然后点击运行。
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.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
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"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
keywordstring必填Search Keyword
cursorstringCursor
这是该 API 保存的示例响应;查看时不会发起实时请求。
尚未发布已保存的响应。请在 Playground 中运行 API 以查看其响应。
探索更多
| API | 价格 | 响应 |
|---|---|---|
X (Twitter) | $0.001 每次调用 | JSON |
Twitter | $0.001 每次调用 | JSON |
Twitter | $0.001 每次调用 | JSON |
Twitter | $0.001 每次调用 | JSON |
Twitter | $0.001 每次调用 | JSON |
Twitter | $0.001 每次调用 | JSON |
指南:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared
问题
向 https://api.sandbase.ai/v1/api/twitter/web/search-communities 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.001,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:keyword (string)。 可选:cursor (string)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。Twitter Search communities 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 X (Twitter) API 访问权限。