---
title: "用户搜索"
method: GET
path: "/api/user/search"
tags: ["user-api"]
---

# 用户搜索

`GET /api/user/search`

## Request

- The document declares no server URL.
- Auth: none declared

## Request body

- UserSearchReq
  - `keyWord` string

## Response `200`

A successful response.

- UserSearchReply
  - `KeyWord` UserInfoReply[]
    - `name` string
    - `age` integer
    - `birthday` string
    - `description` string
    - `tag` string[]

## Changes

- **2026-07-17** `02eb9de49433`: 1 info
  - api operation id `/api/user/search` removed and replaced with `searchUser`
- **2021-01-01** `e7de8c26f5e0`: 1 info
  - api operation id `searchUser` removed and replaced with `/api/user/search`

[Operation history](https://skmtc.dev/zeromicro/apis/go-zero-team-example-api/changes/api/user/search/get.md)

---

[API](https://skmtc.dev/zeromicro/apis/go-zero-team-example-api.md) - [All operations](https://skmtc.dev/zeromicro/apis/go-zero-team-example-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zeromicro/apis/go-zero-team-example-api/revisions/02eb9de49433?raw)
