Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

X / Twitter Community Search

เอกสาร API
https://api.sandbase.ai/v1/api/twitter/search-communities

Search X (Twitter) communities by keyword and get their id, name, topic, and member count with cursor pagination. This is how you find a community URL to pass to twitter.community or twitter.community_tweets.

ราคา
เริ่มต้นที่ $0.0011USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 1 ไม่บังคับ

Playground

อินพุต
Keyword to match against X (Twitter) community names and topics (e.g. artificial intelligence).
Opaque pagination cursor from a previous response's nextCursor. Omit for the first page; pass it to fetch the next page of communities.
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

X / Twitter Community Search API

Returns a list of X (Twitter) communities that match a keyword. Each result has the community id, name, topic, member count, and URL. The only required input is query.

Use cases

  • Find communities about a topic such as artificial intelligence and rank them by member count.
  • Collect community URLs to feed into a community tweet or community info lookup.
  • Build a list of communities in a niche for outreach or research.
  • Filter out adult communities using the nsfw flag before showing results to users.

Request

curl -X POST "https://api.sandbase.ai/v1/api/twitter/search-communities" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "artificial intelligence"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
querystringYesKeyword to match against X (Twitter) community names and topics (e.g. artificial intelligence).
cursorstringNoOpaque pagination cursor from a previous response's nextCursor. Omit for the first page; pass it to fetch the next page of communities.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "communities": [
      {
        "id": "1724390935406981529",
        "memberCount": 17280,
        "name": "Artificial Intelligence + Tech",
        "nsfw": false,
        "topic": "Artificial Intelligence",
        "url": "https://x.com/i/communities/1724390935406981529"
      }
    ],
    "nextCursor": "cur_Hri4z2wlX1vEE2iyBu6uog"
  },
  "found": true
}

Response fields

FieldMeaning
data.communities[].idNumeric ID of the community, returned as a string. It is also the last part of the community URL.
data.communities[].nameDisplay name of the community. Several communities can share the same name.
data.communities[].topicTopic label of the community, such as Artificial Intelligence.
data.communities[].memberCountNumber of members in the community.
data.communities[].nsfwtrue if the community is marked as adult content, otherwise false.
data.communities[].urlFull link to the community on x.com.
data.nextCursorCursor value for the next page of results. Pass it as cursor in the next request.
foundtrue when the search returned results.

Notes

  • For the next page, repeat the same query and add cursor set to the data.nextCursor value from the previous response.
  • Use the id or url of a result with X (Twitter) Twitter Community or X (Twitter) Twitter Community Tweets.
  • Results are not sorted by memberCount, so sort them yourself if you need the largest communities first.

Pricing

Billed at the actual cost of each call, about $0.0011 for the request above. Failed calls are not charged.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
X (Twitter)เริ่มต้นที่ $0.0011 ต่อครั้งJSON
X (Twitter)เริ่มต้นที่ $0.00054 ต่อครั้งJSON
Twitterเริ่มต้นที่ $0.0006 ต่อครั้งAsync JSON
X (Twitter)เริ่มต้นที่ $0.0001 ต่อครั้งJSON
X (Twitter)เริ่มต้นที่ $0.0036 ต่อครั้งJSON
X (Twitter)เริ่มต้นที่ $0.00045 ต่อครั้งJSON

คู่มือ:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ X / Twitter Community Search API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/twitter/search-communities โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

X / Twitter Community Search API ราคาเท่าไร?

เริ่มต้นที่ $0.0011 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

X / Twitter Community Search API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: query (string). ตัวเลือก: cursor (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

X / Twitter Community Search API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ X (Twitter) ไหม?

ไม่จำเป็น X / Twitter Community Search ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง X (Twitter) API แยกต่างหาก