Skip to main content

Twitter / X

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