Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

Twitter Community info

Dokumentacja API
https://api.sandbase.ai/v1/api/twitter/web/community-info

Get community info on Twitter. Returns the platform data as structured JSON.

Cena
$0.001USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
1 wymaganych · 0 opcjonalnych

Playground

Wejście
Community ID
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

README API

Twitter Community info API

Returns the profile of one Twitter community: its name, description, member count, banner images and rules. It needs a community_id.

Use cases

  • Show a community's name, description and member count in a dashboard.
  • Track the growth of a community by saving member_count over time.
  • Check a community's rules before posting or moderating.
  • Flag communities marked as NSFW with is_nsfw before showing them to users.

Request

curl -X POST "https://api.sandbase.ai/v1/api/twitter/web/community-info" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"community_id": "1493290339532222469"}'

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

Parameters

NameTypeRequiredDescription
community_idstringYesCommunity ID

Example response

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

{
  "created_at": 1644863135598,
  "custom_banner_media": "https://pbs.twimg.com/media/FECS7TfVcAcCrj2.jpg",
  "default_banner_media": "https://pbs.twimg.com/media/FECS7TfVcAcCrj2.jpg",
  "description": "XRP community",
  "id": "1493290339532222469",
  "is_nsfw": false,
  "last_cursor": "",
  "member_count": 123243,
  "name": "XRP",
  "primary_topic": null,
  "rules": [
    {
      "description": "You should be respectful towards others.",
      "name": "Be Respectful"
    }
  ],
  "status": "failed"
}

Response fields

FieldMeaning
idCommunity ID. It matches the community_id you sent.
nameDisplay name of the community.
descriptionShort text that describes the community.
member_countNumber of members in the community.
created_atCreation time of the community as a number. The value looks like a Unix time in milliseconds.
is_nsfwtrue if the community is marked as NSFW, otherwise false.
custom_banner_media / default_banner_mediaURLs of the community banner images.
rules[].name / rules[].descriptionTitle and full text of each community rule.
primary_topicMain topic of the community. It is null when none is set.
statusStatus string in the response. The sample shows failed, so check this field in your own code.

Notes

Pricing

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

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
X (Twitter)$0.001 za wywołanieJSON
Twitter$0.001 za wywołanieJSON
Twitter$0.001 za wywołanieJSON
Twitter$0.001 za wywołanieJSON
Twitter$0.001 za wywołanieJSON
Twitter$0.001 za wywołanieJSON

Przewodniki:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared

Pytania

FAQ

Jak używać API Twitter Community info?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/twitter/web/community-info z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API Twitter Community info?

$0.001 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API Twitter Community info?

Wymagane: community_id (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API Twitter Community info?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego X (Twitter) lub klucza API?

Nie. Twitter Community info działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API X (Twitter).