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.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก 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.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform 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 key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
community_idstringจำเป็นCommunity ID
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Twitter Community infoAPI นี้ 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
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/twitter/web/community-info โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: community_id (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Twitter Community info ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง X (Twitter) API แยกต่างหาก