Get detailed profile information for a Twitter/X user by username. Returns account details, follower/following counts, bio, verification status, and account metadata.
curl "https://apidirect.io/v1/twitter/user?username=elonmusk" \
-H "X-API-Key: YOUR_API_KEY"
{
"user": {
"username": "elonmusk",
"name": "Elon Musk",
"user_id": "44196397",
"description": "",
"url": "https://twitter.com/elonmusk",
"followers_count": 235918920,
"following_count": 1292,
"tweet_count": 98359,
"favourites_count": 214306,
"listed_count": 167743,
"media_count": 4372,
"verified": true,
"protected": false,
"profile_image_url": "https://pbs.twimg.com/profile_images/.../photo_400x400.jpg",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/44196397/...",
"created_at": "2009-06-02 20:12:29",
"pinned_tweet_ids": ["2028500984977330453"],
"account_based_in": "United States",
"username_changes": 0
}
}