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

# Outils et bibliothèques

> Bibliothèques officielles et communautaires pour 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>;
};

Accélérez vos développements avec les SDK officiels, les bibliothèques communautaires et les outils de développement.

***

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

X fournit des SDK officiels pour TypeScript et Python avec prise en charge complète de X API v2 :

<CardGroup cols={2}>
  <Card title="SDK Python" icon="python" href="/fr/xdks/python/overview">
    Prise en charge de l'asynchrone, annotations de type et actualisation automatique des jetons. Parfait pour l'analyse de données et l'automatisation.
  </Card>

  <Card title="SDK TypeScript" icon="js" href="/fr/xdks/typescript/overview">
    Typage statique complet et prise en charge d’ESM. Fonctionne avec Node.js et les bundlers modernes.
  </Card>
</CardGroup>

***

<div id="official-tools">
  ## Outils officiels
</div>

| Outil                                                                                                        | Description                                                            |
| :----------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------- |
| [Postman Collection](https://app.getpostman.com/run-collection/9956214-784efcda-ed4c-4491-a4c0-a26470a67400) | Tests interactifs de l’API pour tous les endpoints v2                  |
| [OpenAPI Spec](https://api.x.com/2/openapi.json)                                                             | Spécification d’API lisible par machine                                |
| [twitter-text](https://github.com/twitter/twitter-text)                                                      | Analyser et valider le texte d’une Publication, compter les caractères |

***

<div id="community-libraries">
  ## Bibliothèques communautaires
</div>

Ces bibliothèques maintenues par la communauté prennent en charge X API v2. Consultez la documentation de chaque bibliothèque pour connaître la couverture actuelle de l'API.

<Tabs>
  <Tab title="Python">
    | Bibliothèque                                                 | Description                                              |
    | :----------------------------------------------------------- | :------------------------------------------------------- |
    | [tweepy](https://github.com/tweepy/tweepy)                   | Bibliothèque Python populaire avec prise en charge de v2 |
    | [twarc](https://twarc-project.readthedocs.io/)               | CLI et bibliothèque pour la collecte de données          |
    | [python-twitter](https://github.com/sns-sdks/python-twitter) | Wrapper Python simple                                    |
    | [TwitterAPI](https://github.com/geduldig/TwitterAPI)         | Wrapper Python minimal                                   |
  </Tab>

  <Tab title="JavaScript/TypeScript">
    | Bibliothèque                                                         | Description                                               |
    | :------------------------------------------------------------------- | :-------------------------------------------------------- |
    | [node-twitter-api-v2](https://github.com/PLhery/node-twitter-api-v2) | Client Node.js fortement typé et riche en fonctionnalités |
    | [twitter.js](https://github.com/twitterjs/twitter.js)                | Bibliothèque Node.js orientée objet                       |
    | [twitter-v2](https://github.com/HunterLarco/twitter-v2)              | Bibliothèque cliente asynchrone                           |
  </Tab>

  <Tab title="Go">
    | Bibliothèque                                                    | Description                   |
    | :-------------------------------------------------------------- | :---------------------------- |
    | [go-twitter](https://github.com/g8rswimmer/go-twitter)          | Bibliothèque Go pour l’API v2 |
    | [gotwi](https://github.com/michimani/gotwi)                     | Wrapper Go pour v2            |
    | [twitter-stream](https://github.com/Fallenstedt/twitter-stream) | Wrapper de flux filtré        |
  </Tab>

  <Tab title="Java/Kotlin">
    | Bibliothèque                                          | Description                      |
    | :---------------------------------------------------- | :------------------------------- |
    | [twittered](https://github.com/redouane59/twittered)  | Client Java pour v2              |
    | [twitter4j-v2](https://github.com/takke/twitter4j-v2) | Wrapper Twitter4J v2             |
    | [KTweet](https://github.com/ChromasIV/KTweet)         | Bibliothèque Kotlin v2           |
    | [Tweedle](https://github.com/tyczj/Tweedle)           | Bibliothèque Kotlin pour Android |
  </Tab>

  <Tab title="PHP">
    | Bibliothèque                                                      | Description                  |
    | :---------------------------------------------------------------- | :--------------------------- |
    | [twitter-api-v2-php](https://github.com/noweh/twitter-api-v2-php) | Client PHP v2                |
    | [bird-elephant](https://github.com/danieldevine/bird-elephant)    | Bibliothèque PHP v2          |
    | [twitteroauth](https://github.com/abraham/twitteroauth)           | Bibliothèque OAuth populaire |
  </Tab>

  <Tab title="Ruby">
    | Bibliothèque                                                      | Description            |
    | :---------------------------------------------------------------- | :--------------------- |
    | [tweetkit](https://github.com/julianfssen/tweetkit)               | Client Ruby v2         |
    | [twitter\_oauth2](https://github.com/nov/twitter_oauth2)          | Bibliothèque OAuth 2.0 |
    | [omniauth-twitter2](https://github.com/unasuke/omniauth-twitter2) | Stratégie OmniAuth     |
  </Tab>

  <Tab title="Autres">
    | Langage        | Bibliothèque                                                                                               |
    | :------------- | :--------------------------------------------------------------------------------------------------------- |
    | **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>
  Les bibliothèques communautaires ne sont pas maintenues par X. Consultez leurs dépôts pour obtenir des informations sur la prise en charge et l’état actuels.
</Note>

***

<div id="code-samples">
  ## Exemples de code
</div>

Retrouvez des exemples sur GitHub :

* [X API v2 Sample Code](https://github.com/xdevplatform/Twitter-API-v2-sample-code) — Exemples en Python, JavaScript, Ruby, et bien plus encore
* [X Developer GitHub](https://github.com/xdevplatform) — Dépôts officiels et outils
* [Glitch Examples](https://glitch.com/@twitter) — Apps interactives et remixables
* [Replit Examples](https://replit.com/@twitter) — Écriture de code dans le navigateur

***

<div id="building-a-library">
  ## Vous développez une bibliothèque ?
</div>

Si vous avez créé une bibliothèque pour l’X API, partagez-la avec la communauté :

1. Publiez un message dans le [forum Libraries & SDKs](https://devcommunity.x.com/c/libraries-and-sdks/63)
2. Nous pourrons l’ajouter à cette page !

Utilisez nos [badges de version](https://twbadges.glitch.me/) dans votre README pour indiquer la compatibilité avec l’API.

***

<div id="getting-help">
  ## Obtenir de l’aide
</div>

<Card title="Forum des développeurs" icon="comments" href="https://devcommunity.x.com">
  Obtenez de l’aide auprès de la communauté.
</Card>
