Ir al contenido
Documentación de Endless

X user connections

POST
/social/x_user_connections

List an X (Twitter) account's followers or accounts it follows. Use for audience/network questions ('who follows X', 'who does X follow'). X-only — Instagram has no equivalent.

Authorization

bearerAuth
AuthorizationBearer <token>

JWT token from authentication

In: header

Header Parameters

Endless-Api-Version?string

Pin the caller to an API major (1). Omit to accept the current version. A major this deployment cannot serve is refused with 400 unsupported_api_version.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/social/x_user_connections" \  -H "Content-Type: application/json" \  -d '{    "organization_id": "string",    "input": {      "username": "string",      "relation": "followers"    }  }'
{  "operation": "instagram_profile",  "result": {    "summary": "string",    "username": "string",    "relation": "followers",    "count": -9007199254740991,    "users": [      {        "id": "string",        "username": "string",        "name": "string",        "verified": true,        "followers_count": 0,        "following_count": 0      }    ]  },  "requests": 0,  "credits_charged": 0}