User lookup by username
GET
/2/users/by/username/{username}This endpoint returns information about a user. Specify user by username.
请求参数
Path 参数
username
必需
Required. A username.
示例值:
TwitterDev
Query 参数
expansions
可选
A comma separated list of fields to expand.
tweet.fields
可选
A comma separated list of Tweet fields to display.
user.fields
可选
A comma separated list of User fields to display.
示例代码
返回响应
The request was successful(200)
500(500)
The request was successful
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
No schema defined
示例
未设置
修改于 3 年前