User lookup by username
GET
/2/users/by/username/{username}This endpoint returns information about a user. Specify user by username.
Request
Path Params
username
string
required
Required. A username.
Example:
TwitterDev
Query Params
expansions
array[string]
optional
A comma separated list of fields to expand.
tweet.fields
array[string]
optional
A comma separated list of Tweet fields to display.
user.fields
array[string]
optional
A comma separated list of User fields to display.
Request samples
Responses
The request was successful(200)
500(500)
The request was successful
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
Not configured
Last modified: 2 years ago