community_idstring必須
Community ID
https://api.sandbase.ai/v1/api/twitter/web/community-infoGet community info on Twitter. Returns the platform data as structured JSON.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
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.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
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"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
community_idstring必須Community ID
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Twitter Community infoこの 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
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/twitter/web/community-info に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: community_id (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Twitter Community info は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。X (Twitter) の API アクセスを別途申請する必要はありません。