Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

Twitter Search communities

API dokümanları
https://api.sandbase.ai/v1/api/twitter/web/search-communities

Search communities on Twitter. Returns the platform data as structured JSON.

Fiyat
$0.001USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
1 gerekli · 1 isteğe bağlı

Oynatma Alanı

Girdi
Search Keyword
Cursor
ÇıktıHazır

Çıktınız burada görünecek

Girdileri tamamlayın, ardından Çalıştır'a tıklayın.

API README

Twitter Search communities API

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.

Use cases

  • Find communities about a topic or franchise, such as superman, to join or study.
  • Rank communities on a topic by member_count to see which ones are largest.
  • Collect community IDs to feed into community info, member or timeline lookups.
  • Filter out adult communities with the is_nsfw flag before showing results in an app.

Request

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.

Parameters

NameTypeRequiredDescription
keywordstringYesSearch Keyword
cursorstringNoCursor

Example response

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"
}

Response fields

FieldMeaning
communities[]List of communities that match the keyword.
communities[].community_idID of the community as a numeric string. Use it to look up the community in other APIs.
communities[].nameDisplay name of the community.
communities[].member_countNumber of members in the community.
communities[].primary_topicMain topic label of the community, such as Comics or Movies.
communities[].is_nsfwtrue if the community is marked as adult content, false otherwise.
communities[].custom_banner / communities[].default_bannerBanner image URLs. custom_banner is the image the community set, and default_banner is a stock image.
communities[].user_idUser ID field. It was an empty string in the sample response.
next_cursorCursor string for the next page of results.

Notes

  • Pass 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.
  • Use Twitter Community timeline to read the posts of a community you found.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
X (Twitter)$0.001 çağrı başınaJSON
Twitter$0.001 çağrı başınaJSON
Twitter$0.001 çağrı başınaJSON
Twitter$0.001 çağrı başınaJSON
Twitter$0.001 çağrı başınaJSON
Twitter$0.001 çağrı başınaJSON

Kılavuzlar:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared

Sorular

SSS

Twitter Search communities API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/twitter/web/search-communities adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

Twitter Search communities API'sinin fiyatı nedir?

çağrı başına $0.001, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.

Twitter Search communities API'si hangi parametreleri kabul eder?

Gerekli: keyword (string). İsteğe bağlı: cursor (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

Twitter Search communities API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.

Bir X (Twitter) geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. Twitter Search communities, 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.