Official tools and libraries

The X teams maintain a small number of SDKs that support the Ads API.

Python

Clients
SDKs / Librariestwitter-python-ads-sdk
Tools

Ruby

Clients
SDKs / Librariestwitter-ruby-ads-sdk
Tools

Additional resources

Postman collection

Explore the Ads API endpoints using Postman, the visual REST client.


Community tools and libraries

These are some of the many community-supported libraries that cover the X Ads API, across several programming languages and platforms. The libraries listed here should support most features of the Ads API, unless otherwise noted - check with the authors for details.

If you have built a library that supports the X APIs, please let us know about it via our Developer Community forums.

PHP

Clients
SDKs / Librariestwitter-php-ads-sdk by @hborras
codebird-php by @jublo
Tools

Java

Clients
SDKs / Librariestwitter4j-ads by @sprinklr
Tools

JavaScript / Node.js

Clients
SDKs / Librariestwitter-ads by @FallenTech
Tools

Additional resources

The community tools below can also be useful when working with the X Ads API.