screen_namestringerforderlich
Screen Name
https://api.sandbase.ai/v1/api/twitter/web/user-affiliatesGet user affiliates on Twitter. Returns the platform data as structured JSON.
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
Returns the accounts affiliated with a Twitter account, such as the staff, missions and sub-accounts of an organization. It needs the screen_name of the parent account, for example NASA.
user_id values of affiliated accounts to feed into other profile lookups.curl -X POST "https://api.sandbase.ai/v1/api/twitter/web/user-affiliates" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"screen_name": "NASA"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
screen_name | string | Yes | Screen Name |
cursor | string | No | Cursor |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"affilates": [
{
"description": "Official Twitter account of NASA’s Chandra X-ray Observatory. Operated for NASA …",
"followers_count": 418886,
"friends_count": 198,
"media_count": 4664,
"name": "Chandra Observatory",
"profile_image": null,
"screen_name": "chandraxray",
"statuses_count": 78136,
"user_id": "12415722"
}
],
"next_cursor": "DAAHCgABHWL0WQD__-wLAAIAAAAIMzAyNTU4MzMIAAMAAAACAAA"
}
| Field | Meaning |
|---|---|
affilates | List of affiliated accounts. The key is spelled affilates in the response. |
affilates[].screen_name / affilates[].name | The handle and display name of the affiliated account. |
affilates[].user_id | Numeric ID of the account, returned as a string. |
affilates[].description | Bio text of the affiliated account. Long bios are cut off with an ellipsis. |
affilates[].followers_count / affilates[].friends_count | Number of followers and number of accounts it follows. |
affilates[].statuses_count / affilates[].media_count | Number of posts and number of media posts on the account. |
affilates[].profile_image | Profile image value. It is null in this response. |
next_cursor | Cursor string for the next page of affiliates. |
next_cursor from the response as cursor in the next request to get the next page.screen_name is the handle without the @ sign, for example NASA.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
curl -X POST "https://api.sandbase.ai/v1/api/twitter/web/user-affiliates" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"screen_name": "NASA"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
screen_namestringerforderlichScreen Name
cursorstringCursor
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Twitter User affiliatesDiese API X (Twitter) | $0.001 pro Aufruf | JSON |
Twitter | $0.001 pro Aufruf | JSON |
Twitter | $0.001 pro Aufruf | JSON |
Twitter | $0.001 pro Aufruf | JSON |
Twitter | $0.001 pro Aufruf | JSON |
Twitter | $0.001 pro Aufruf | JSON |
Anleitungen:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/twitter/web/user-affiliates 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.
$0.001 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: screen_name (string). Optional: cursor (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. Twitter User affiliates 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.