Skip to main content
Slider on the web is a common captcha type. The user needs to drag a puzzle piece to the correct position on the background image.

Example of Tiktok slider captcha

1. Create task

Request

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

Sample code

Response

Success:
The server returns errorId = 0 and a taskId on success. Failure:
The server returns errorId = 1 and the corresponding errorCode. See the Error codes list.

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.
end is the target position of the puzzle piece on the image (scaled to widthView). Combine it with the original slider button position to compute the drag distance, then simulate a natural mouse drag (mousedown → mousemove → mouseup).
Processing:
The server returns errorId = 0 and status = processing. Please wait 2 seconds and retry. Failure:
The server returns errorId = 1. See details in Error codes.