GET /users/search
Request without providing basic authentication or access token will result empty
| Name | Type | Description |
|---|---|---|
| q | string | Required Keyword of username |
| field | string | What field to search on. Only allows name (default) and email |
| limit | int | Limit number of search results. Default is 10 |
$ curl https://try.gogs.io/api/v1/users/search?q=u&limit=5
Status: 200 OK
{
"data": [
{
"id": 1,
"username": "unknwon",
"full_name": "",
"email": "fake@local",
"avatar_url": "/avatars/1"
},
{
"id": 4,
"username": "user1",
"full_name": "",
"email": "user1@user.com",
"avatar_url": "/avatars/4"
}
],
"ok": true
}