community_idstringwajib
Community ID
https://api.sandbase.ai/v1/api/twitter/web/community-infoGet community info on Twitter. Returns the platform data as structured JSON.
Output Anda akan muncul di sini
Lengkapi input, lalu klik 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.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
community_idstringwajibCommunity ID
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Twitter Community infoAPI ini X (Twitter) | $0.001 per panggilan | JSON |
Twitter | $0.001 per panggilan | JSON |
Twitter | $0.001 per panggilan | JSON |
Twitter | $0.001 per panggilan | JSON |
Twitter | $0.001 per panggilan | JSON |
Twitter | $0.001 per panggilan | JSON |
Panduan:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/twitter/web/community-info dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.001 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: community_id (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Twitter Community info berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API X (Twitter) secara terpisah.