Rotate captcha
Rotate captcha: parameters, request, response and the 2Captcha method of RotateTask.
On this page
A picture that must be turned to stand upright. Send the image and get the angle in degrees in solution.rotate.
| Status | coming soon |
| Type codes | RotateTask — without a proxy |
| Proxy | not needed |
| Also accepted as | — |
| Price | set when the type is switched on — see pricing |
Parameters#
Fields of the task object in createTask:
ParameterDescription
typestringrequired- Task type:
RotateTask. bodystringrequired- The captcha file in base64. Base64 picture (PNG, JPEG, GIF, WEBP or BMP), a
data:image/…;base64,prefix is allowed; up to 600 KB decoded. angleinteger- Angle of one rotation step in degrees (360 divided by the number of steps). Integer from 1 to 360.
commentstring- Instruction for the solver. One line of text, up to 1024 characters.
imgInstructionsstring- Instruction as a picture. Base64 picture (PNG, JPEG, GIF, WEBP or BMP), a
data:image/…;base64,prefix is allowed; up to 100 KB decoded.
Request#
A RotateTask task:
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "RotateTask",
"body": "iVBORw0KGgoAAAANSUhEUgAA…"
}
}Response#
getTaskResult once the task is solved:
{
"errorId": 0,
"status": "ready",
"solution": {
"rotate": 120,
"userAgent": ""
},
"cost": "0.000500",
"ip": "198.51.100.7",
"createTime": 1793370000,
"endTime": 1793370012,
"solveCount": 1
}2Captcha in.php#
The same task through the 2Captcha API: method=rotatecaptcha, parameters → task fields:
| in.php | task |
|---|---|
body | body |
angle | angle |
textinstructions | comment |
imginstructions | imgInstructions |
res.php returns rotate of the solution as text (OK|…), or in request with json=1.