GETusers

Bulk Lookup by Usernames

Pass up to 100 Twitter usernames and get complete profile data for all of them in a single API call.

Average response time: 100ms

Code Examples

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));
Response
{
  "data": [
    { "id": "44196397", "username": "elonmusk", "followers_count": 170000000 },
    { "id": "14718006", "username": "sama", "followers_count": 3400000 }
  ]
}

API Reference

GET/v1/twitter/users/batch_by_usernames
ParameterTypeRequiredDescription
usernamesstringRequiredComma-separated list of usernames without @ (max 100)

Use Cases

Competitor Analysis

Track competitor accounts, engagement rates, and content strategies to benchmark performance and identify opportunities.

Audience Analysis

Profile your audience by analyzing follower demographics, interests, activity patterns, and engagement behavior.

Influencer Research

Identify and vet influencers by analyzing follower quality, engagement rates, audience demographics, and content authenticity.

Lead Generation

Find potential customers by monitoring purchase-intent keywords, industry discussions, and competitor dissatisfaction signals.

Recruitment & Talent

Discover and research potential hires by analyzing their public Twitter activity, expertise signals, and professional network.

Bot Detection

Identify automated accounts and inauthentic behavior by analyzing posting patterns, account metadata, and network structures.

Frequently Asked Questions

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.