Skip to main content
Shopee slider captcha is a common image challenge. The user has to drag a small puzzle piece to the correct position on the background image.

Example of Shopee slider captcha

ShopeeSliderWebTask supports two modes:
  • Regular slider — drag horizontally (returns end coordinates).
  • Undetermined trajectory (typeCaptcha = "rotate") — drag along an arbitrary path (returns point).

1a. Create task — Regular slider

Request

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

Code samples

Response

Success:
The server returns errorId = 0 and taskId on success.

1b. Create task — Undetermined trajectory

Used when the captcha requires dragging along an arbitrary path (not restricted to horizontal). Add typeCaptcha = "rotate".

Example of Shopee undetermined-trajectory captcha

Request

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

Code samples

Response

Success:
Failure:
The server returns errorId = 1 and the corresponding errorCode. See the Error codes list.

2a. Get task result — Regular slider

Request

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

Response

Success:

2b. Get task result — Undetermined trajectory

Request

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

Response

Success:
Coordinates are in the pixel space of the uploaded background image. Combine the starting position of the puzzle piece with the returned coordinate to compute the path, then simulate the drag gesture (mousedown → mousemove → mouseup) along a natural trajectory.
Processing:
The server returns errorId = 0 and status = processing. Wait 2 seconds then retry. Failure:
The server returns errorId = 1. See details at Error codes.