screen_namestringobrigatório
Screen Name
https://api.sandbase.ai/v1/api/twitter/web/user-affiliatesGet user affiliates on Twitter. Returns the platform data as structured JSON.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
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.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento de uso.
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"
}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
screen_namestringobrigatórioScreen Name
cursorstringCursor
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
Twitter User affiliatesEsta API X (Twitter) | $0.001 por chamada | JSON |
Twitter | $0.001 por chamada | JSON |
Twitter | $0.001 por chamada | JSON |
Twitter | $0.001 por chamada | JSON |
Twitter | $0.001 por chamada | JSON |
Twitter | $0.001 por chamada | JSON |
Guias:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/twitter/web/user-affiliates com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
$0.001 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Obrigatórios: screen_name (string). Opcionais: cursor (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Não. Twitter User affiliates funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do X (Twitter) separadamente.