Social Media
X User Followings
List the accounts a user follows by handle — screen name, display name, bio, follower and following counts, and profile image — with pagination cursors, as JSON. Costs 1 credit per request.
POST/api/v1/x/user/followings
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonscreen_namestringrequiredAn X handle without the @.
Example: elonmusk
cursorstringPagination cursor from a previous response (next_cursor). Keep passing it while has_more is true.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.x.user_followings(screen_name="elonmusk")
print(results)Response
"next_cursor": "DAABCgABGY-lJH0AAAoAAgAA",
"more_users": true,
"has_more": true
},
"response_time": 1090,
"credits_used": 1,
"credits_remaining": 4811
}