Skip to main content
Rotate-on-web is a common Tiktok captcha challenge. The user must rotate the inner image so it aligns with the outer image.

Example of Tiktok rotate captcha

1. Create task

Request

POST https://api.omocaptcha.com/v2/createTask
imageBase64s must be a 2-element array in this exact order: first element is the inside image, second element is the outside image. Do not include the data:image/...;base64, prefix.

Image types

Response

Success:
The server returns errorId = 0 and a taskId on success. Failure:
The server returns errorId = 1 and an errorCode describing the error.

2. Get task result

Request

POST https://api.omocaptcha.com/v2/getTaskResult

Response

Success:
The server returns errorId = 0 and status = ready. Read the result from the solution field.

Computing the slider drag position

The drag button can only move within a range equal to the slider track length minus the button length. The CAPTCHA system does not return raw pixel values — it returns a ratio called solution in the range 0 to 1 that represents the correct button position on the track. To convert this ratio into an actual pixel position, use the formula:
The result is the target X coordinate the button should reach on the track — not an additional drag distance.
Example: if the track is 300px long and the button is 40px wide, the maximum travel is 260px. When solution = 0.76, the target position is 260 × (1 − 0.76) = 62.4px. This means the drag button should be positioned at roughly 62px on the track to pass verification.
In short, the system uses a ratio to stay layout-agnostic, and converting to pixels gives you the exact drag position for the button.
Slider position sample
Processing:
The server returns errorId = 0 and status = processing — the request is still being processed. Wait 2 seconds and try again. Failure:
The server returns errorId = 1 along with an errorCode describing the failure.