community_idstringจำเป็น
ID of the community
https://api.sandbase.ai/v1/api/twitter/community-moderatorsModerators of an X Community by community ID, with profile details and cursor pagination.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns the moderators of an X Community, with profile details for each moderator. It needs a community_id and supports cursor pagination.
can_dm.id values over time.curl -X POST "https://api.sandbase.ai/v1/api/twitter/community-moderators" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"community_id": "1493446837214187523"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
community_id | string | Yes | ID of the community |
cursor | string | No | Cursor for pagination |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"has_next": false,
"has_next_page": false,
"moderators": [
{
"can_dm": true,
"created_at": "Mon Jan 15 23:55:33 +0000 2007",
"description": "🚧 https://t.co/aMZ4K3azU0 🏠 https://t.co/1KH3Ex4L2r 🤑 https://t.co/z2G662Uvhl 👀 …",
"email": null,
"favourites_count": 38120,
"followers_count": 90269,
"following_count": 977,
"friends_count": 977,
"id": "641633",
"isBlueVerified": true,
"location": "",
"media_tweets_count": 4910
}
],
"msg": "success",
"next_cursor": null,
"status": "success"
}
| Field | Meaning |
|---|---|
moderators[].id | Numeric ID of the moderator's X account, returned as a string. |
moderators[].screen_name / moderators[].name | The moderator's @handle and display name. |
moderators[].description | The profile bio text. Links appear as shortened t.co URLs. |
moderators[].followers_count / moderators[].following_count | Number of accounts that follow the moderator, and number of accounts the moderator follows. |
moderators[].statuses_count / moderators[].media_tweets_count | Total posts by the account, and the count of posts that contain media. |
moderators[].isBlueVerified / moderators[].verified | Verification flags for the account. isBlueVerified can be true while verified is false. |
moderators[].can_dm | Whether the account can receive direct messages, as a boolean. |
moderators[].created_at | When the account was created, in a format like Mon Jan 15 23:55:33 +0000 2007. |
has_next / next_cursor | Show whether more moderators exist. next_cursor is null when there are no more pages. |
next_cursor value as cursor in the next request to get the following page. Stop when has_next is false.has_next_page.community_id, try X / Twitter Community Search or X (Twitter) Twitter Community.Billed at the actual cost of each call, about $0.0036 for the request above. Failed calls are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/twitter/community-moderators" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"community_id": "1493446837214187523"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
community_idstringจำเป็นID of the community
cursorstringCursor for pagination
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
X (Twitter) | เริ่มต้นที่ $0.0036 ต่อครั้ง | JSON |
X (Twitter) | เริ่มต้นที่ $0.00054 ต่อครั้ง | JSON |
Twitter | เริ่มต้นที่ $0.0006 ต่อครั้ง | Async JSON |
X (Twitter) | เริ่มต้นที่ $0.0001 ต่อครั้ง | JSON |
X (Twitter) | เริ่มต้นที่ $0.00045 ต่อครั้ง | JSON |
X (Twitter) | เริ่มต้นที่ $0.00045 ต่อครั้ง | 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/community-moderators โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
เริ่มต้นที่ $0.0036 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: community_id (string). ตัวเลือก: cursor (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น X (Twitter) Community Moderators ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง X (Twitter) API แยกต่างหาก