User lookup by usernames
GET
/2/users/byThis endpoint returns information about users. Specify users by their username.
请求参数
Required . A list of usernames, comma-separated. You can specify up to 100 usernames.
A comma separated list of fields to expand.
A comma separated list of Tweet fields to display.
A comma separated list of User fields to display.
示例代码
返回响应
Creation time of this user.
The text of this user's profile description (also known as bio), if the user provided one.
A list of metadata found in the user's profile description.
The location specified in the user's profile, if the user provided one. As this is a freeform value, it may not indicate a valid location, but it may be fuzzily evaluated when performing searches with location queries.
The friendly name of this user, as shown on their profile.
The URL to the profile image for this user.
Indicates if this user has chosen to protect their Tweets (in other words, if this user's Tweets are private).
A list of metrics for this user
The URL specified in the user's profile.
Indicate if this user is a verified Twitter User.
A generic problem with no additional information beyond that provided by the HTTP status code.
A problem that indicates this request is invalid.
A problem that indicates your client is forbidden from making this request.
A problem that indicates that a given Tweet, User, etc. does not exist.
A problem that indicates a particular Tweet, User, etc. is not available to you.
A problem that indicates you are not allowed to see a particular Tweet, User, etc.
A problem that indicates that you are not allowed to see a particular field on a Tweet, User, etc.
A problem that indicates that the resource requested violates the precepts of this API.
A problem that indicates that the authentication used is not supported.
A problem that indicates that a usage cap has been exceeded.
A problem that indicates something is wrong with the connection
Your client has gone away.
You have been disconnected for operational reasons.
You have exceeded the maximum number of rules.
The rule you have submitted is invalid.
The rule you have submitted is a duplicate.