Skip to Content
AnySolver logo
AnySolver
Token

TwitchPublicIntegrityTokenProxyLess

Mint a Twitch Client-Integrity token for GraphQL requests from an account OAuth token. Shows the request schema, an example and provider prices.

TwitchPublicIntegrityTokenProxyLess runs Twitch's client-side integrity check for an account and returns the Client-Integrity token together with the device and client ids it belongs to. Twitch signs its GraphQL traffic with the Client-Integrity header. The token has an expiry time and is bound to the device and client ids it was issued for.

Find the parameters

  • websiteURL is the Twitch page the GraphQL requests belong to, for example https://www.twitch.tv/.
  • accessToken is the OAuth access token of the Twitch account. The token is tied to this account, so use one integrity token per account session.
  • deviceId and clientId are optional. If you pin your own X-Device-Id and Client-Id, pass them here so the token is issued for that pair. A token issued for one pair does not belong to another.

Send the token

Every GraphQL request carries all three values together, alongside your Authorization: OAuth <accessToken>:

Client-Integrity: <solution.integrityToken>
X-Device-Id: <solution.deviceId>
Client-Id: <solution.clientId>

Send the returned solution.userAgent on the requests that carry the token.

solution.expiration is a Unix timestamp in milliseconds. Create a new token before that time passes instead of retrying requests that fail with an expired one.

Check Provider stats for live success rates and solve times before you pick a provider.

Supported Providers

ProviderPrice per 1,000Routing
Salamoonder
$3.60

Request Schema

FieldTypeRequiredDescription
clientKey*
stringYes

Your API key. Create one in a workspace of the AnySolver dashboard.

Example: your-api-key-from-dashboard

task*
objectYes

The task body. Required fields depend on the task type. See Tasks for per-task schemas.

View task properties
settings
objectNo

Per-request settings for routing, Auto Retry, Auto Fallback, proxy reuse, response statistics and detailed analytics. Each field overrides the API key's value. See Routing modes.

View settings reference

Task Object Properties

The task field accepts an object with the following properties:

FieldTypeRequiredDescription
type*
Yes
websiteURL*
URLYes

Full URL of the page where the CAPTCHA is displayed.

Example: https://www.twitch.tv/

accessToken*
stringYes

OAuth access token of the Twitch account the integrity token is minted for.

Example: YOUR_TWITCH_OAUTH_TOKEN

deviceId
stringNo

Existing X-Device-Id to bind the token to. The provider chooses one when omitted.

Example: K3sKKpQhYQwymZFP6zIcu5LCOxyT24

clientId
stringNo

Twitch Client-Id the token is bound to. The provider uses its default client id when omitted.

Example: kimne78kx3ncx6brgo4mv6wki5h1ko

{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "TwitchPublicIntegrityTokenProxyLess",
        "websiteURL": "https://www.twitch.tv/",
        "accessToken": "YOUR_TWITCH_OAUTH_TOKEN"
    }
}

Optional fields are not guaranteed across providers

Required fields are guaranteed across every provider that supports this task. Optional fields may be honored by some providers and silently ignored by others. AnySolver does not document per-provider parameter support, so before relying on an optional field, check that provider's own docs for the task you are using.

Response Schema

FieldTypeRequiredDescription
status*
Yes

Task status: "processing", "ready", or "failed".

Example: ready

errorId*
Yes

0 on success; 1 or 2 on an error. Branch on errorCode: Error IDs explains the two error groups.

Example: 0

taskId
stringNo

Unique identifier returned when the task was created.

Example: 01KFNDF328KAN2AJ3BNHCQYE88

errorCode
No

Machine-readable error code.

Example: CAPTCHA_UNSOLVABLE

errorDescription
stringNo

Human-readable error message with resolution hints.

Example: The captcha could not be solved.

cost
numberNo

Actual cost charged for this task in USD.

Example: 0.002

taskType
No

The type of CAPTCHA task to solve.

Example: ReCaptchaV2TokenProxyLess

provider
No

Provider that handled this task. While processing, the provider currently solving it.

Example: Multibot

solution
objectNo

Solution Object Properties

The solution field contains an object with the following properties:

FieldTypeRequiredDescription
integrityToken*
stringYes

Value for the Client-Integrity header on GraphQL requests.

Example: v4.local.IvusFCEJ6-Srca31_dOMU6WnJRLFy7P-rH_4...

deviceId*
stringYes

Device id the token is bound to. Send it as X-Device-Id on every request that uses the token.

Example: ba478854e9d42411...

clientId*
stringYes

Client id the token is bound to. Send it as Client-Id.

Example: kimne78kx3ncx6brgo4mv6wki5h1ko

expiration*
unionYes

Unix timestamp in milliseconds at which the integrity token expires.

Example: 1763692850412

raw*
Record<string, unknown>Yes

Raw provider response data for advanced use cases.

userAgent
stringNo

User-Agent string used during solving.

Example: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36