---
title: "获取用户信息"
method: GET
path: "/api/user/{id}"
tags: ["user-api"]
---

# 获取用户信息

`GET /api/user/{id}`

## Request

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

## Path parameters

- `id` string, required

## Request body

- UserInfoReq
  - `id` string

## Response `200`

A successful response.

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

## Changes

- **2026-07-17** `02eb9de49433`: 1 breaking, 1 info
  - api path removed without deprecation
  - endpoint added
- **2021-01-01** `e7de8c26f5e0`: 1 breaking, 1 info
  - api path removed without deprecation
  - endpoint added

[Operation history](https://skmtc.dev/zeromicro/apis/go-zero-team-example-api/changes/api/user/:id/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)
