keywordstringจำเป็น
Search Keyword
https://api.sandbase.ai/v1/api/twitter/web/search-communitiesSearch communities on Twitter. Returns the platform data as structured JSON.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก 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.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform 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 key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
keywordstringจำเป็นSearch Keyword
cursorstringCursor
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Twitter Search communitiesAPI นี้ 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/search-communities โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: keyword (string). ตัวเลือก: cursor (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Twitter Search communities ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง X (Twitter) API แยกต่างหาก