Skip to main content
Use the Go SDK when you want context-aware calls, typed request structs, retries, and pagination helpers for TwexAPI REST workflows in Go services and background workers.

Install

Source: twexapi-dev/x-api-scraper-go

Authenticate

Basic example

Look up a profile and paginate followers:

Workflow: search tweets

Workflow: post a tweet

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

Error handling

The SDK returns typed errors for HTTP failures. Check err from each call and inspect status codes before retrying 4xx responses. Configure retries with WithRetryConfig on the client or per-operation options.

References