screen_namestringwajib
Screen Name
https://api.sandbase.ai/v1/api/twitter/web/user-affiliatesGet user affiliates on Twitter. Returns the platform data as structured JSON.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
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.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
screen_namestringwajibScreen Name
cursorstringCursor
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Twitter User affiliatesAPI ini X (Twitter) | $0.001 per panggilan | JSON |
Twitter | $0.001 per panggilan | JSON |
Twitter | $0.001 per panggilan | JSON |
Twitter | $0.001 per panggilan | JSON |
Twitter | $0.001 per panggilan | JSON |
Twitter | $0.001 per panggilan | JSON |
Panduan:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/twitter/web/user-affiliates dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.001 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: screen_name (string). Opsional: cursor (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Twitter User affiliates berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API X (Twitter) secara terpisah.