> ## Documentation Index
> Fetch the complete documentation index at: https://x-preview-mintlify-5e62557c.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# User Search

> X API v2 User search 엔드포인트로 키워드를 통해 X 사용자를 검색하여 이름, handle, 소개 용어, 기타 공개 프로필 필드 및 메타데이터로 계정을 찾을 수 있습니다.

export const Button = ({href, children}) => {
  return <div className="not-prose">
    <a href={href}>
      <button className="x-btn">
        <span>{children}</span>
        <svg width="3" height="24" viewBox="0 -9 3 24" class="h-6 rotate-0 overflow-visible"><path d="M0 0L3 3L0 6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg>
      </button>
    </a>
  </div>;
};

User Search 엔드포인트를 사용하면 키워드로 사용자를 검색할 수 있습니다. 이름, username 또는 소개의 내용으로 사용자를 찾을 수 있습니다.

## 개요

<CardGroup cols={2}>
  <Card title="키워드 검색" icon="https://mintcdn.com/x-preview-mintlify-5e62557c/GytiLHUg9NqWoUD-/icons/xds/icon-search.svg?fit=max&auto=format&n=GytiLHUg9NqWoUD-&q=85&s=99f4fce14d7ef13d21178fc37cb09631" width="24" height="24" data-path="icons/xds/icon-search.svg">
    이름, username 또는 소개로 검색
  </Card>

  <Card title="사용자 발견" icon="user-plus">
    관련 계정 찾기
  </Card>
</CardGroup>

***

## 엔드포인트

| Method | Endpoint                                       | Description |
| :----- | :--------------------------------------------- | :---------- |
| GET    | [`/2/users/search`](/x-api/users/search-users) | 사용자 검색      |

***

## 요청 예시

```bash theme={null}
curl "https://api.x.com/2/users/search?\
query=python%20developer&\
user.fields=description,verified,public_metrics" \
  -H "Authorization: Bearer $BEARER_TOKEN"
```

## 응답 예시

```json title="응답 예시" lines wrap icon="https://mintcdn.com/x-preview-mintlify-5e62557c/QVCcrJRuVU5c6Fli/icons/xds/icon-brackets.svg?fit=max&auto=format&n=QVCcrJRuVU5c6Fli&q=85&s=8c7124cd379f973762b135033c4e3df8" theme={null}
{
  "data": [
    {
      "id": "1234567890",
      "name": "Python Developer",
      "username": "pythondev",
      "description": "Building cool things with Python",
      "verified": false,
      "public_metrics": {
        "followers_count": 5000,
        "following_count": 200,
        "tweet_count": 1500
      }
    }
  ],
  "meta": {
    "result_count": 1
  }
}
```

***

## 시작하기

<Note>
  **사전 요구사항**

  * 승인된 [developer account](https://developer.x.com/en/portal/petition/essential/basic-info)
  * Developer Console 내의 [Project와 App](/resources/fundamentals/developer-apps)
  * App의 [key와 token](/resources/fundamentals/authentication)
</Note>

<CardGroup cols={2}>
  <Card title="User lookup" icon="https://mintcdn.com/x-preview-mintlify-5e62557c/dxXIRy5tzOESXfjK/icons/xds/icon-person.svg?fit=max&auto=format&n=dxXIRy5tzOESXfjK&q=85&s=b9f49bc6c7deb6ad896faddec9f3be35" href="/x-api/users/lookup/introduction" width="24" height="24" data-path="icons/xds/icon-person.svg">
    ID나 username으로 사용자 조회
  </Card>

  <Card title="API 레퍼런스" icon="https://mintcdn.com/x-preview-mintlify-5e62557c/NnGYBQFO1PDkJQK7/icons/xds/icon-code.svg?fit=max&auto=format&n=NnGYBQFO1PDkJQK7&q=85&s=e6a5208c5ad4cc59a4a97fed7db5ed00" href="/x-api/users/user-search" width="24" height="24" data-path="icons/xds/icon-code.svg">
    전체 엔드포인트 문서
  </Card>
</CardGroup>
