Multiple users by username

GET https://api.twitter.com/labs/2/users/by?usernames

This endpoint returns information about users. You can specify users by their ID or username.

For full details, see the API reference for this endpoint.

Request Params

| Key | Datatype | Required | Description | | usernames | null | | Required. A comma separated list of usernames. Up to 100 are allowed in a single request. | | expansions | null | | pinned_tweet_id | | tweet.fields | null | | attachments,author_id,created_at,entities,geo,id,in_reply_to_user_id,lang,possibly_sensitive,public_metrics,referenced_tweets,source,text,withheld | | media.fields | null | | duration_ms,height,media_key,preview_image_url,type,url,width | | poll.fields | null | | duration_minutes,end_datetime,id,options,voting_status | | place.fields | null | | contained_within,country,country_code,full_name,geo,id,name,place_type | | user.fields | null | | created_at,description,entities,id,location,name,pinned_tweet_id,profile_image_url,protected,public_metrics,url,username,verified,withheld |

HEADERS

| Key | Datatype | Required | Description |

RESPONSES

status: OK

{"data":[{"id":"2244994945","created_at":"2013-12-14T04:35:55.000Z","name":"Twitter Dev","username":"TwitterDev","protected":false,"location":"Internet","url":"https://t.co/FGl7VOULyL","description":"Your official source for Twitter Platform news, updates \u0026 events. Need technical help? Visit https://t.co/mGHnxZU8c1 ⌨️ #TapIntoTwitter","verified":true,"entities":{"url":{"urls":[{"start":0,"end":23,"url":"https://t.co/FGl7VOULyL","expanded_url":"https://developer.twitter.com/","display_url":"developer.twitter.com"}]},"description":{"urls":[{"start":93,"end":116,"url":"https://t.co/mGHnxZU8c1","expanded_url":"https://twittercommunity.com/","display_url":"twittercommunity.com"}],"hashtags":[{"start":120,"end":135,"tag":"TapIntoTwitter"}]}},"profile_image_url":"https://pbs.twimg.com/profile_images/880136122604507136/xHrnqf1T_normal.jpg","most_recent_tweet_id":"1171537108504215552","pinned_tweet_id":"1166401263170281472","format":"default"}]}