Users
Followers You Know
Get mutual followers between two Twitter accounts via API. $0.001 per call, ~20 users per call. GetXAPI followers you know endpoint.
POST
/twitter/user/followers_you_knowThis endpoint costs $0.001 per API call and returns ~20 users per page.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
auth_token | string | Yes | User's auth token |
user_id | string | No | Target user id |
user_name | string | No | Target username (without @) |
cursor | string | No | Pagination cursor |
Notes
- Provide either
user_idoruser_name. - If
user_nameis provided, the API resolves it touser_id. - Pagination uses
next_cursoruntilhas_moreis false.
Response (200)
{
"userId": "1858475867762270208",
"targetUserId": "44196397",
"user_count": 20,
"has_more": true,
"next_cursor": "DAABCgABG...",
"followers_you_know": [
{
"type": "user",
"id": "1335924847940079620",
"userName": "0xumarkhatab",
"name": "Umar"
}
]
}Error Responses
400 - Missing fields
{
"error": "Missing required field: user_id or user_name"
}401 - Invalid auth_token
{
"error": "Invalid auth_token - could not extract userId"
}Example
curl -X POST "https://api.getxapi.com/twitter/user/followers_you_know" \
-H "Authorization: Bearer API_KEY" \
-H "Content-Type: application/json" \
-d '{
"auth_token": "your_auth_token",
"user_name": "elonmusk"
}'
# With pagination
curl -X POST "https://api.getxapi.com/twitter/user/followers_you_know" \
-H "Authorization: Bearer API_KEY" \
-H "Content-Type: application/json" \
-d '{
"auth_token": "your_auth_token",
"user_name": "elonmusk",
"cursor": "DAABCgABG..."
}'