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
websiteURLis the Twitch page the GraphQL requests belong to, for examplehttps://www.twitch.tv/.accessTokenis the OAuth access token of the Twitch account. The token is tied to this account, so use one integrity token per account session.deviceIdandclientIdare optional. If you pin your ownX-Device-IdandClient-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
| Provider | Price per 1,000 | Routing |
|---|---|---|
Salamoonder | $3.60 |
Request Schema
| Field | Type | Required | Description |
|---|---|---|---|
clientKey* | string | Yes | Your API key. Create one in a workspace of the AnySolver dashboard. Example: |
task* | object | Yes | The task body. Required fields depend on the task type. See Tasks for per-task schemas. View task properties |
settings | object | No | 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:
| Field | Type | Required | Description |
|---|---|---|---|
type* | Yes | ||
websiteURL* | URL | Yes | Full URL of the page where the CAPTCHA is displayed. Example: |
accessToken* | string | Yes | OAuth access token of the Twitch account the integrity token is minted for. Example: |
deviceId | string | No | Existing Example: |
clientId | string | No | Twitch Example: |
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "TwitchPublicIntegrityTokenProxyLess",
"websiteURL": "https://www.twitch.tv/",
"accessToken": "YOUR_TWITCH_OAUTH_TOKEN"
}
}Optional fields are not guaranteed across providers
Response Schema
| Field | Type | Required | Description |
|---|---|---|---|
status* | Yes | Task status: "processing", "ready", or "failed". Example: | |
errorId* | Yes |
Example: | |
taskId | string | No | Unique identifier returned when the task was created. Example: |
errorCode | No | Machine-readable error code. Example: | |
errorDescription | string | No | Human-readable error message with resolution hints. Example: |
cost | number | No | Actual cost charged for this task in USD. Example: |
taskType | No | The type of CAPTCHA task to solve. Example: | |
provider | No | Provider that handled this task. While processing, the provider currently solving it. Example: | |
solution | object | No |
Solution Object Properties
The solution field contains an object with the following properties:
| Field | Type | Required | Description |
|---|---|---|---|
integrityToken* | string | Yes | Value for the Example: |
deviceId* | string | Yes | Device id the token is bound to. Send it as Example: |
clientId* | string | Yes | Client id the token is bound to. Send it as Example: |
expiration* | union | Yes | Unix timestamp in milliseconds at which the integrity token expires. Example: |
raw* | Record<string, unknown> | Yes | Raw provider response data for advanced use cases. |
userAgent | string | No | User-Agent string used during solving. Example: |