Get a user profile by username.
GET/twitter/user/{username}
- Takes: Username
- Passive: the target is not contacted
- Cost: $0.0002 per request
Returns profile fields. The docs' curl example also calls this path with a numeric ID.
Path parameters
usernameUsername without the @ symbol
Response fields · 12ShowHide
id_str
User ID
name
Display name
screen_name
Username
location
Location text
description
Bio
protected
Whether the account is protected
verified
Whether the account is verified
followers_count
Follower count
friends_count
Following count
statuses_count
Post count
created_at
Account creation timestamp
can_dm
Whether direct messages are allowed
curl 'https://api.socialdata.tools/twitter/user/example_user' \
-H 'Authorization: Bearer YOUR_API_KEY'{
"id_str": "1000000000",
"name": "Example User",
"screen_name": "example_user",
"location": "Example City",
"description": "Example bio",
"protected": false,
"verified": false,
"followers_count": 120,
"friends_count": 80,
"statuses_count": 450,
"created_at": "2015-06-02T20:12:29.000000Z",
"can_dm": false
}