> ## 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.

# Herramientas y bibliotecas

> SDKs oficiales de la X API en Python y TypeScript, herramientas CLI como xurl, el servidor playground, servidores MCP para IA y bibliotecas cliente de la comunidad.

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>;
};

Acelera tu desarrollo con SDKs oficiales, herramientas para desarrolladores y bibliotecas de la comunidad.

***

## SDKs oficiales

<CardGroup cols={2}>
  <Card title="Python SDK" icon="python" href="/xdks/python/overview">
    Soporte async, type hints y renovación automática de tokens. Perfecto para análisis de datos y automatización.
  </Card>

  <Card title="TypeScript SDK" icon="js" href="/xdks/typescript/overview">
    Seguridad total de tipos y soporte de ESM. Funciona en Node.js y bundlers modernos.
  </Card>
</CardGroup>

### Inicio rápido

<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">Guía completa de 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">Guía completa de TypeScript</Button>
  </Tab>
</Tabs>

***

## Herramientas para desarrolladores

<CardGroup cols={2}>
  <Card title="Colección de Postman" icon="server" href="https://www.postman.com/xapidevelopers/x-api-public-workspace/collection/34902927-2efc5689-99c6-4ab6-8091-996f35c2fd80">
    Pruebas interactivas de la API para todos los endpoints de v2.
  </Card>

  <Card title="xurl" icon="terminal" href="/tools/xurl">
    CLI similar a curl para la X API con autenticación OAuth integrada. Sin gestión manual de tokens.
  </Card>

  <Card title="API Playground" icon="flask" href="https://github.com/xdevplatform/playground">
    Servidor mock local para probar los endpoints de la X API v2 sin usar créditos reales.
  </Card>

  <Card title="Recursos para agentes" icon="robot" href="/tools/ai">
    XMCP, llms.txt, skill.md, servidor MCP de la documentación y recursos para el desarrollo con IA.
  </Card>
</CardGroup>

### Otras herramientas

| Herramienta                                             | Descripción                                              |
| :------------------------------------------------------ | :------------------------------------------------------- |
| [OpenAPI Spec](https://api.x.com/2/openapi.json)        | Especificación de la API legible por máquina             |
| [twitter-text](https://github.com/twitter/twitter-text) | Analizar y validar el texto de posts, contar caracteres  |
| [Generador de embeds](https://publish.x.com/#)          | Crea posts, timelines o botones embebibles para tu sitio |

***

## Bibliotecas de la comunidad

Bibliotecas mantenidas por la comunidad con soporte para X API v2. Consulta la documentación de cada biblioteca para conocer la cobertura actual.

<Tabs>
  <Tab title="Python">
    | Biblioteca                                                   | Descripción                                      |
    | :----------------------------------------------------------- | :----------------------------------------------- |
    | [tweepy](https://github.com/tweepy/tweepy)                   | Popular biblioteca de Python con soporte para v2 |
    | [twarc](https://twarc-project.readthedocs.io/)               | CLI y biblioteca para recolección de datos       |
    | [python-twitter](https://github.com/sns-sdks/python-twitter) | Wrapper simple en Python                         |
    | [TwitterAPI](https://github.com/geduldig/TwitterAPI)         | Wrapper minimalista en Python                    |
  </Tab>

  <Tab title="JavaScript/TypeScript">
    | Biblioteca                                                           | Descripción                                                  |
    | :------------------------------------------------------------------- | :----------------------------------------------------------- |
    | [node-twitter-api-v2](https://github.com/PLhery/node-twitter-api-v2) | Cliente Node.js fuertemente tipado y con todas las funciones |
    | [twitter.js](https://github.com/twitterjs/twitter.js)                | Biblioteca orientada a objetos para Node.js                  |
    | [twitter-v2](https://github.com/HunterLarco/twitter-v2)              | Biblioteca cliente asíncrona                                 |
  </Tab>

  <Tab title="Go">
    | Biblioteca                                                      | Descripción                  |
    | :-------------------------------------------------------------- | :--------------------------- |
    | [go-twitter](https://github.com/g8rswimmer/go-twitter)          | Biblioteca Go para la API v2 |
    | [gotwi](https://github.com/michimani/gotwi)                     | Wrapper Go para v2           |
    | [twitter-stream](https://github.com/Fallenstedt/twitter-stream) | Wrapper de filtered stream   |
  </Tab>

  <Tab title="Java/Kotlin">
    | Biblioteca                                            | Descripción                    |
    | :---------------------------------------------------- | :----------------------------- |
    | [twittered](https://github.com/redouane59/twittered)  | Cliente Java para v2           |
    | [twitter4j-v2](https://github.com/takke/twitter4j-v2) | Wrapper de Twitter4J v2        |
    | [KTweet](https://github.com/ChromasIV/KTweet)         | Biblioteca Kotlin para v2      |
    | [Tweedle](https://github.com/tyczj/Tweedle)           | Biblioteca Kotlin para Android |
  </Tab>

  <Tab title="PHP">
    | Biblioteca                                                        | Descripción                 |
    | :---------------------------------------------------------------- | :-------------------------- |
    | [twitter-api-v2-php](https://github.com/noweh/twitter-api-v2-php) | Cliente PHP para v2         |
    | [bird-elephant](https://github.com/danieldevine/bird-elephant)    | Biblioteca PHP para v2      |
    | [twitteroauth](https://github.com/abraham/twitteroauth)           | Biblioteca popular de OAuth |
  </Tab>

  <Tab title="Ruby">
    | Biblioteca                                                        | Descripción               |
    | :---------------------------------------------------------------- | :------------------------ |
    | [tweetkit](https://github.com/julianfssen/tweetkit)               | Cliente Ruby para v2      |
    | [twitter\_oauth2](https://github.com/nov/twitter_oauth2)          | Biblioteca para OAuth 2.0 |
    | [omniauth-twitter2](https://github.com/unasuke/omniauth-twitter2) | Estrategia para OmniAuth  |
  </Tab>

  <Tab title="Otros">
    | Lenguaje       | Biblioteca                                                                                                 |
    | :------------- | :--------------------------------------------------------------------------------------------------------- |
    | **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>
  Las bibliotecas de la comunidad no son mantenidas por X. Consulta sus repositorios para soporte y estado actual.
</Note>

***

## Código de muestra

* [X API v2 Sample Code](https://github.com/xdevplatform/Twitter-API-v2-sample-code) — Ejemplos en Python, JavaScript, Ruby y más
* [Repositorio de Code Samples](https://github.com/xdevplatform/samples) — Ejemplos usando los XDKs oficiales
* [GitHub de X Developer](https://github.com/xdevplatform) — Repositorios y herramientas oficiales

***

## Bibliotecas de X Ads API

Para herramientas y bibliotecas específicas de la X Ads API, consulta la página de [herramientas y bibliotecas de la Ads API](/x-ads-api/tools-and-libraries).
