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

# 도구 & 라이브러리

> Python 및 TypeScript의 공식 X API SDK, xurl 같은 CLI 도구, 플레이그라운드 서버, AI용 MCP 서버 및 커뮤니티 클라이언트 라이브러리입니다.

export const Button = ({href, children}) => {
  return <div className="not-prose group">
    <a href={href}>
      <button className="flex items-center space-x-2.5 py-1 px-4 bg-primary-dark dark:bg-white text-white dark:text-gray-950 rounded-full group-hover:opacity-[0.9] font-medium">
        <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>;
};

공식 SDK, 개발자 도구 및 커뮤니티 라이브러리로 개발 속도를 높이세요.

***

## 공식 SDK

<CardGroup cols={2}>
  <Card title="Python SDK" icon="python" href="/xdks/python/overview">
    비동기 지원, 타입 힌트, 자동 토큰 갱신을 제공합니다. 데이터 분석 및 자동화에 적합합니다.
  </Card>

  <Card title="TypeScript SDK" icon="js" href="/xdks/typescript/overview">
    완전한 타입 안전성 및 ESM 지원. Node.js 및 최신 번들러에서 작동합니다.
  </Card>
</CardGroup>

### 빠른 시작

<Tabs>
  <Tab title="Python">
    ```bash theme={null}
    pip install xdk
    ```

    ```python theme={null}
    from xdk import Client

    client = Client(bearer_token="YOUR_BEARER_TOKEN")

    for page in client.posts.search_recent(query="api", max_results=10):
        if page.data and len(page.data) > 0:
            print(page.data[0].text)
            break
    ```

    <Button href="/xdks/python/overview">전체 Python 가이드</Button>
  </Tab>

  <Tab title="TypeScript">
    ```bash theme={null}
    npm install @xdevplatform/xdk
    ```

    ```typescript theme={null}
    import { Client } from '@xdevplatform/xdk';

    const client = new Client({ bearerToken: 'YOUR_BEARER_TOKEN' });
    const userResponse = await client.users.getByUsername('XDevelopers');
    console.log(userResponse.data?.username);
    ```

    <Button href="/xdks/typescript/overview">전체 TypeScript 가이드</Button>
  </Tab>
</Tabs>

***

## 개발자 도구

<CardGroup cols={2}>
  <Card title="Postman Collection" icon="server" href="https://www.postman.com/xapidevelopers/x-api-public-workspace/collection/34902927-2efc5689-99c6-4ab6-8091-996f35c2fd80">
    모든 v2 엔드포인트에 대한 대화형 API 테스트입니다.
  </Card>

  <Card title="xurl" icon="terminal" href="/tools/xurl">
    OAuth 인증이 내장된 X API용 curl 유사 CLI입니다. 수동 토큰 관리가 없습니다.
  </Card>

  <Card title="API Playground" icon="flask" href="https://github.com/xdevplatform/playground">
    실제 크레딧을 사용하지 않고 X API v2 엔드포인트를 테스트하기 위한 로컬 목 서버입니다.
  </Card>

  <Card title="에이전트 리소스" icon="robot" href="/tools/ai">
    XMCP, llms.txt, skill.md, docs MCP 서버 및 AI 기반 개발용 리소스입니다.
  </Card>
</CardGroup>

### 기타 도구

| 도구                                                      | 설명                              |
| :------------------------------------------------------ | :------------------------------ |
| [OpenAPI Spec](https://api.x.com/2/openapi.json)        | 머신 판독 가능한 API 명세                |
| [twitter-text](https://github.com/twitter/twitter-text) | 게시물 텍스트 파싱 및 검증, 글자 수 계산        |
| [Embed Generator](https://publish.x.com/#)              | 사이트에 임베드 가능한 게시물, 타임라인 또는 버튼 생성 |

***

## 커뮤니티 라이브러리

X API v2를 지원하는 커뮤니티 유지 관리 라이브러리입니다. 현재 지원 범위는 각 라이브러리의 문서를 확인하세요.

<Tabs>
  <Tab title="Python">
    | 라이브러리                                                        | 설명                            |
    | :----------------------------------------------------------- | :---------------------------- |
    | [tweepy](https://github.com/tweepy/tweepy)                   | v2 지원이 포함된 인기 있는 Python 라이브러리 |
    | [twarc](https://twarc-project.readthedocs.io/)               | 데이터 수집을 위한 CLI 및 라이브러리        |
    | [python-twitter](https://github.com/sns-sdks/python-twitter) | 간단한 Python 래퍼                 |
    | [TwitterAPI](https://github.com/geduldig/TwitterAPI)         | 미니멀한 Python 래퍼                |
  </Tab>

  <Tab title="JavaScript/TypeScript">
    | 라이브러리                                                                | 설명                            |
    | :------------------------------------------------------------------- | :---------------------------- |
    | [node-twitter-api-v2](https://github.com/PLhery/node-twitter-api-v2) | 강력한 타입 지정, 풀 기능 Node.js 클라이언트 |
    | [twitter.js](https://github.com/twitterjs/twitter.js)                | 객체 지향 Node.js 라이브러리           |
    | [twitter-v2](https://github.com/HunterLarco/twitter-v2)              | 비동기 클라이언트 라이브러리               |
  </Tab>

  <Tab title="Go">
    | 라이브러리                                                           | 설명               |
    | :-------------------------------------------------------------- | :--------------- |
    | [go-twitter](https://github.com/g8rswimmer/go-twitter)          | v2 API용 Go 라이브러리 |
    | [gotwi](https://github.com/michimani/gotwi)                     | v2용 Go 래퍼        |
    | [twitter-stream](https://github.com/Fallenstedt/twitter-stream) | 필터링된 스트림 래퍼      |
  </Tab>

  <Tab title="Java/Kotlin">
    | 라이브러리                                                 | 설명                   |
    | :---------------------------------------------------- | :------------------- |
    | [twittered](https://github.com/redouane59/twittered)  | v2용 Java 클라이언트       |
    | [twitter4j-v2](https://github.com/takke/twitter4j-v2) | Twitter4J v2 래퍼      |
    | [KTweet](https://github.com/ChromasIV/KTweet)         | Kotlin v2 라이브러리      |
    | [Tweedle](https://github.com/tyczj/Tweedle)           | Kotlin Android 라이브러리 |
  </Tab>

  <Tab title="PHP">
    | 라이브러리                                                             | 설명                |
    | :---------------------------------------------------------------- | :---------------- |
    | [twitter-api-v2-php](https://github.com/noweh/twitter-api-v2-php) | PHP v2 클라이언트      |
    | [bird-elephant](https://github.com/danieldevine/bird-elephant)    | PHP v2 라이브러리      |
    | [twitteroauth](https://github.com/abraham/twitteroauth)           | 인기 있는 OAuth 라이브러리 |
  </Tab>

  <Tab title="Ruby">
    | 라이브러리                                                             | 설명              |
    | :---------------------------------------------------------------- | :-------------- |
    | [tweetkit](https://github.com/julianfssen/tweetkit)               | Ruby v2 클라이언트   |
    | [twitter\_oauth2](https://github.com/nov/twitter_oauth2)          | OAuth 2.0 라이브러리 |
    | [omniauth-twitter2](https://github.com/unasuke/omniauth-twitter2) | OmniAuth 전략     |
  </Tab>

  <Tab title="기타">
    | 언어             | 라이브러리                                                                                                      |
    | :------------- | :--------------------------------------------------------------------------------------------------------- |
    | **C#/.NET**    | [Tweetinvi](https://github.com/linvi/tweetinvi), [LinqToTwitter](https://github.com/JoeMayo/LinqToTwitter) |
    | **Rust**       | [twitter-v2](https://github.com/jpopesculian/twitter-v2-rs)                                                |
    | **Swift**      | [Twift](https://github.com/daneden/Twift/), [TwitterAPIKit](https://github.com/mironal/TwitterAPIKit)      |
    | **R**          | [academictwitteR](https://github.com/cjbarrie/academictwitteR)                                             |
    | **PowerShell** | [BluebirdPS](https://github.com/thedavecarroll/BluebirdPS)                                                 |
  </Tab>
</Tabs>

<Note>
  커뮤니티 라이브러리는 X가 유지 관리하지 않습니다. 지원 및 현재 상태에 대해서는 해당 저장소를 확인하세요.
</Note>

***

## 코드 샘플

* [X API v2 Sample Code](https://github.com/xdevplatform/Twitter-API-v2-sample-code) — Python, JavaScript, Ruby 등의 예제
* [Code Samples Repo](https://github.com/xdevplatform/samples) — 공식 XDK를 사용한 예제
* [X Developer GitHub](https://github.com/xdevplatform) — 공식 저장소 및 도구

***

## X Ads API 라이브러리

X Ads API 전용 도구 및 라이브러리는 [Ads API 도구 및 라이브러리](/x-ads-api/tools-and-libraries) 페이지를 참조하세요.
