querystringzorunlu
Keyword to match against X (Twitter) community names and topics (e.g. artificial intelligence).
https://api.sandbase.ai/v1/api/twitter/search-communitiesSearch 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.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
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.
nsfw flag before showing results to users.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.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Keyword to match against X (Twitter) community names and topics (e.g. artificial intelligence). |
cursor | string | No | Opaque pagination cursor from a previous response's nextCursor. Omit for the first page; pass it to fetch the next page of communities. |
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
}
| Field | Meaning |
|---|---|
data.communities[].id | Numeric ID of the community, returned as a string. It is also the last part of the community URL. |
data.communities[].name | Display name of the community. Several communities can share the same name. |
data.communities[].topic | Topic label of the community, such as Artificial Intelligence. |
data.communities[].memberCount | Number of members in the community. |
data.communities[].nsfw | true if the community is marked as adult content, otherwise false. |
data.communities[].url | Full link to the community on x.com. |
data.nextCursor | Cursor value for the next page of results. Pass it as cursor in the next request. |
found | true when the search returned results. |
query and add cursor set to the data.nextCursor value from the previous response.id or url of a result with X (Twitter) Twitter Community or X (Twitter) Twitter Community Tweets.memberCount, so sort them yourself if you need the largest communities first.Billed at the actual cost of each call, about $0.0011 for the request above. Failed calls are not charged.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
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"
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
querystringzorunluKeyword to match against X (Twitter) community names and topics (e.g. artificial intelligence).
cursorstringOpaque pagination cursor from a previous response's nextCursor. Omit for the first page; pass it to fetch the next page of communities.
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
X (Twitter) | Kullanım başına $0.0011'den itibaren | JSON |
X (Twitter) | Kullanım başına $0.00054'den itibaren | JSON |
Twitter | Kullanım başına $0.0006'den itibaren | Asenkron JSON |
X (Twitter) | Kullanım başına $0.0001'den itibaren | JSON |
X (Twitter) | Kullanım başına $0.0036'den itibaren | JSON |
X (Twitter) | Kullanım başına $0.00045'den itibaren | JSON |
Kılavuzlar:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/twitter/search-communities adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.0011'dan başlayan, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: query (string). İsteğe bağlı: cursor (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. X / Twitter Community Search, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. X (Twitter) API erişimi için ayrıca başvuru yapmanız gerekmez.