Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

Twitter Community info

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

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

Preis
$0.001USD / Aufruf
Methode
POST
Antwort
JSON
Parameter
1 erforderlich · 0 optional

Playground

Eingabe
Community ID
AusgabeBereit

Ihre Ausgabe wird hier angezeigt

Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.

API-README

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.

Mehr entdecken

Verwandte APIs

Alle APIs
APIPreisAntwort
X (Twitter)$0.001 pro AufrufJSON
Twitter$0.001 pro AufrufJSON
Twitter$0.001 pro AufrufJSON
Twitter$0.001 pro AufrufJSON
Twitter$0.001 pro AufrufJSON
Twitter$0.001 pro AufrufJSON

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

Fragen

FAQ

Wie verwende ich die Twitter Community info API?

Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/twitter/web/community-info mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.

Was kostet die Twitter Community info API?

$0.001 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.

Welche Parameter akzeptiert die Twitter Community info API?

Erforderlich: community_id (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.

Was gibt die Twitter Community info API zurück?

Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.

Benötige ich ein X (Twitter)-Entwicklerkonto oder einen API-Schlüssel?

Nein. Twitter Community info läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für X (Twitter) API beantragen.