# Get team member (Legacy)

From **GitHub v3 REST API**.

`GET /teams/{team_id}/members/{username}`

**Deprecated.**

The "Get team member" endpoint (described below) is deprecated.

We recommend using the [Get team membership for a user](https://docs.github.com/enterprise-server@3.0/rest/reference/teams#get-team-membership-for-a-user) endpoint instead. It allows you to get both active and pending memberships.

To list members in a team, the team must be visible to the authenticated user.

## Parameters

### `team_id`

- Location: path
- Required: true
- Type: `integer`

### `username`

- Location: path
- Required: true
- Type: `string`

## Responses

### `204`

if user is a member

### `404`

if user is not a member

## Request examples

### cURL

```shell
curl --request GET \
  --url {protocol}://{hostname}/api/v3/teams/{team_id}/members/{username}
```
