Search Twitter/X users by keyword. Returns profile data including username, display name, bio, follower/following counts, verification status, and profile image. Supports fetching multiple pages of results in a single API call.
curl "https://apidirect.io/v1/twitter/users?query=AI&pages=1" \
-H "X-API-Key: YOUR_API_KEY"
{
"users": [
{
"username": "OpenAI",
"name": "OpenAI",
"user_id": "4398626122",
"description": "Creating safe AGI that benefits all of humanity.",
"followers_count": 3842150,
"following_count": 0,
"tweet_count": 2145,
"verified": true,
"profile_image_url": "https://pbs.twimg.com/profile_images/.../photo.jpg",
"created_at": "2015-12-09 20:42:45",
"url": "https://twitter.com/OpenAI"
}
],
"pages": 1,
"count": 20
}