Get the accounts that a specific Twitter/X user is following. Returns profile details for each followed account. Supports pagination.
curl "https://apidirect.io/v1/twitter/user/following?username=elonmusk&pages=1" \
-H "X-API-Key: YOUR_API_KEY"
{
"following": [
{
"username": "SpaceX",
"name": "SpaceX",
"user_id": "34743251",
"description": "SpaceX designs, manufactures and launches...",
"followers_count": 35000000,
"following_count": 50,
"tweet_count": 5000,
"verified": true,
"profile_image_url": "https://pbs.twimg.com/profile_images/.../photo.jpg",
"created_at": "2009-04-23 19:30:00",
"url": "https://twitter.com/SpaceX"
}
],
"username": "elonmusk",
"pages": 1,
"count": 20
}