Get a complete user profile by numeric Twitter ID. Returns bio, follower/following counts, verification status, join date, and profile images.
Average response time: 70ms
const response = await fetch(
'https://scrapebadger.com/v1/twitter/users/44196397/by_id',
{ headers: { 'x-api-key': 'YOUR_API_KEY' } }
);
const user = await response.json();
console.log(user.data.username, user.data.followers_count);{
"data": {
"id": "44196397",
"username": "elonmusk",
"name": "Elon Musk",
"bio": "Mars & Cars, Chips & Dips",
"followers_count": 170000000,
"following_count": 500,
"tweet_count": 45000,
"verified": true,
"created_at": "2009-06-02T20:12:29Z",
"profile_image_url": "https://pbs.twimg.com/..."
}
}/v1/twitter/users/{user_id}/by_id| Parameter | Type | Required | Description |
|---|---|---|---|
user_id | string | Required | The numeric Twitter user ID |
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.
Identify automated accounts and inauthentic behavior by analyzing posting patterns, account metadata, and network structures.
Discover and research potential hires by analyzing their public Twitter activity, expertise signals, and professional network.
Track competitor accounts, engagement rates, and content strategies to benchmark performance and identify opportunities.
Monitor follower growth, engagement trends, and content performance over time to optimize your Twitter strategy.
You can get a user's numeric ID from any tweet they authored (the author.id field) or use the Get User by Username endpoint.
Suspended accounts return a 404 error. The API only returns data for active, public accounts.
The profile response includes a pinned_tweet field when available. For latest tweets, use the Get User Tweets endpoint.
For bulk lookups, use the Batch Get Users by IDs endpoint which accepts up to 100 IDs per request.
Sign up for free and get 1,000 API credits instantly. No credit card required.