Pass up to 100 Twitter usernames and get complete profile data for all of them in a single API call.
Average response time: 100ms
const names = 'elonmusk,sama,sataborasu';
const response = await fetch(
`https://scrapebadger.com/v1/twitter/users/batch_by_usernames?usernames=${names}`,
{ headers: { 'x-api-key': 'YOUR_API_KEY' } }
);
const users = await response.json();
users.data.forEach(u => console.log(u.username, u.followers_count));{
"data": [
{ "id": "44196397", "username": "elonmusk", "followers_count": 170000000 },
{ "id": "14718006", "username": "sama", "followers_count": 3400000 }
]
}/v1/twitter/users/batch_by_usernames| Parameter | Type | Required | Description |
|---|---|---|---|
usernames | string | Required | Comma-separated list of usernames without @ (max 100) |
Track competitor accounts, engagement rates, and content strategies to benchmark performance and identify opportunities.
Profile your audience by analyzing follower demographics, interests, activity patterns, and engagement behavior.
Identify and vet influencers by analyzing follower quality, engagement rates, audience demographics, and content authenticity.
Find potential customers by monitoring purchase-intent keywords, industry discussions, and competitor dissatisfaction signals.
Discover and research potential hires by analyzing their public Twitter activity, expertise signals, and professional network.
Identify automated accounts and inauthentic behavior by analyzing posting patterns, account metadata, and network structures.
No. Twitter usernames are case-insensitive in lookups.
No. Pass plain usernames without the @ prefix.
The API resolves the current username. If a user changed their handle, the old one may return a 404.
Yes. Use batch lookup to resolve usernames to IDs, then use ID-based endpoints for detailed data.
Sign up for free and get 1,000 API credits instantly. No credit card required.