Skip to main content
Use the Java SDK when you want typed builders, CompletableFuture support, retries, and pagination helpers for TwexAPI REST workflows in Spring Boot, worker, and JVM backend applications.

Install

Gradle:
Maven:
Maven Central publication is pending. Build from source at twexapi-dev/x-api-scraper-java.

Authenticate

Basic example

Look up a profile and list followers:

Workflow: search tweets

Workflow: post a tweet

Write actions need a Twitter cookie or auth_token on the request:

Error handling

The SDK throws typed exceptions for HTTP failures. Use try/catch around .call() and inspect status codes before retrying 4xx responses. Add an SLF4j implementation such as Logback for debug logging during local development.

References