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

# Herramientas y bibliotecas

> Bibliotecas oficiales y de la comunidad para X API

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 el desarrollo con SDKs oficiales, bibliotecas de la comunidad y herramientas para desarrolladores.

***

<div id="official-sdks">
  ## SDK oficiales
</div>

X ofrece SDK oficiales para TypeScript y Python con compatibilidad total con X API v2:

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

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

***

<div id="official-tools">
  ## Herramientas oficiales
</div>

| Herramienta                                                                                                  | Descripción                                                            |
| :----------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------- |
| [Postman Collection](https://app.getpostman.com/run-collection/9956214-784efcda-ed4c-4491-a4c0-a26470a67400) | Pruebas interactivas de la API para todos los endpoints de v2          |
| [OpenAPI Spec](https://api.x.com/2/openapi.json)                                                             | Especificación de la API legible por máquinas                          |
| [twitter-text](https://github.com/twitter/twitter-text)                                                      | Analiza y valida el texto de las publicaciones y cuenta los caracteres |

***

<div id="community-libraries">
  ## Bibliotecas de la comunidad
</div>

Estas bibliotecas mantenidas por la comunidad admiten X API v2. Consulta la documentación de cada biblioteca para conocer la cobertura actual de la API.

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

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

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

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

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

  <Tab title="Ruby">
    | Biblioteca                                                        | Descripción            |
    | :---------------------------------------------------------------- | :--------------------- |
    | [tweetkit](https://github.com/julianfssen/tweetkit)               | Cliente v2 para Ruby   |
    | [twitter\_oauth2](https://github.com/nov/twitter_oauth2)          | Biblioteca OAuth 2.0   |
    | [omniauth-twitter2](https://github.com/unasuke/omniauth-twitter2) | Estrategia de 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 conocer el soporte y el estado actual.
</Note>

***

<div id="code-samples">
  ## Ejemplos de código
</div>

Consulta ejemplos en GitHub:

* [Código de ejemplo de X API v2](https://github.com/xdevplatform/Twitter-API-v2-sample-code) — Ejemplos en Python, JavaScript, Ruby y más
* [X Developer GitHub](https://github.com/xdevplatform) — Repositorios y herramientas oficiales
* [Ejemplos en Glitch](https://glitch.com/@twitter) — Apps interactivas y remezclables
* [Ejemplos en Replit](https://replit.com/@twitter) — Programación en el navegador

***

<div id="building-a-library">
  ## ¿Has creado una biblioteca?
</div>

Si has creado una biblioteca de la X API, compártela con la comunidad:

1. Publica en el [foro de Libraries & SDKs](https://devcommunity.x.com/c/libraries-and-sdks/63)
2. ¡Es posible que la añadamos a esta página!

Usa nuestras [insignias de versión](https://twbadges.glitch.me/) en tu README para mostrar la compatibilidad con la X API.

***

<div id="getting-help">
  ## Obtener ayuda
</div>

<Card title="Foro de desarrolladores" icon="comments" href="https://devcommunity.x.com">
  Obtén ayuda de la comunidad.
</Card>
