screen_namestringzorunlu
Screen Name
https://api.sandbase.ai/v1/api/twitter/web/user-affiliatesGet user affiliates on Twitter. Returns the platform data as structured JSON.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
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.
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/web/user-affiliates" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"screen_name": "NASA"
}'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.
screen_namestringzorunluScreen Name
cursorstringCursor
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 |
|---|---|---|
Twitter User affiliatesBu API X (Twitter) | $0.001 çağrı başına | JSON |
Twitter | $0.001 çağrı başına | JSON |
Twitter | $0.001 çağrı başına | JSON |
Twitter | $0.001 çağrı başına | JSON |
Twitter | $0.001 çağrı başına | JSON |
Twitter | $0.001 çağrı başına | 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/web/user-affiliates adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.001, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: screen_name (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. Twitter User affiliates, 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.