TikTok Captcha Solver
Solve TikTok challenges by providing base64-encoded images. The API uses TiktokClassification with a question field to distinguish between challenge types.
Supported Modes
| Mode | question | Input | Response |
|---|---|---|---|
| Whirl | whirl | Background + puzzle piece | Rotation angle number[] |
| Grid | grid | Background + slider images | Grid indices number[] |
| Click | click | Background image | Click coordinates |
Create Task β Whirl (Rotation)
Send the background image in queries and the puzzle piece in examples.
POST
/createTaskHostapi.captchasonic.com
Content-Typeapplication/json
{
"apiKey": "YOUR_API_KEY",
"task": {
"type": "TiktokClassification",
"question": "whirl",
"queries": ["BASE64_BACKGROUND_IMAGE"],
"examples": ["BASE64_PUZZLE_PIECE"]
}
}
Response
{
"code": 200,
"msg": "",
"answers": [[142.5]]
}
Create Task β Grid
Send grid images in queries.
{
"apiKey": "YOUR_API_KEY",
"task": {
"type": "TiktokClassification",
"question": "grid",
"queries": ["BASE64_BG", "BASE64_SLIDER"]
}
}
Response
{
"code": 200,
"msg": "",
"answers": [2, 5]
}
Task Parameters
| Property | Type | Required | Description |
|---|---|---|---|
type | string | β | TiktokClassification |
question | string | β | whirl, grid, or click |
queries | string[] | β | Base64-encoded images |
examples | string[] | Whirl only | Puzzle piece image(s) for rotation tasks |
API Playground
POST
Log in to auto-fill your API key
Payload
Response
Hit Send to see response
β + Enter
Parameters
Error Codes
terminal