Twitter / X
Base URL:https://drain.lat/api/v1/twitter
First requests may be slower than usual while the scraper initializes.
GET /profile/:username
GET /profile/:username
Fetch a Twitter/X public profile.
The Twitter/X username to look up.
Display name.
Twitter handle.
Profile bio.
Follower count (formatted, e.g.
219.4M).Following count.
Total post count.
Whether the account is verified.
Profile image URL.
Banner image URL.
Location listed on profile.
Website listed on profile.
When the account was created.
Response
GET /profile/:username/stats
GET /profile/:username/stats
Get just the key stats for a Twitter user - faster than the full profile.
The Twitter/X username.
Response
GET /search
GET /search
Search for Twitter users by keyword.
Search query keyword.
Response
Returns up to 10 results per query.
POST /bulk/profiles
POST /bulk/profiles
Fetch multiple Twitter profiles in a single request.
Array of Twitter usernames to look up. Maximum 5.
Response
