Click captcha
Click captcha: parameters, request, response and the 2Captcha method of CoordinatesTask.
On this page
A picture where you must click certain objects in order, or drag a slider to a position. Send the image with an instruction and get the click points in solution.coordinates.
| Status | coming soon |
| Type codes | CoordinatesTask — without a proxy |
| Proxy | not needed |
| Also accepted as | ImageToCoordinatesTask |
| Price | set when the type is switched on — see pricing |
Parameters#
Fields of the task object in createTask:
ParameterDescription
typestringrequired- Task type:
CoordinatesTask. 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. 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. minClicksinteger- Minimum number of clicks. Integer from 1 to 100.
maxClicksinteger- Maximum number of clicks. Integer from 1 to 100.
Request#
A CoordinatesTask task:
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "CoordinatesTask",
"body": "iVBORw0KGgoAAAANSUhEUgAA…"
}
}Response#
getTaskResult once the task is solved:
{
"errorId": 0,
"status": "ready",
"solution": {
"coordinates": [
{
"x": 120,
"y": 45
},
{
"x": 33,
"y": 210
}
],
"userAgent": ""
},
"cost": "0.000700",
"ip": "198.51.100.7",
"createTime": 1793370000,
"endTime": 1793370012,
"solveCount": 1
}2Captcha in.php#
The same task through the 2Captcha API: method=post or method=base64 with coordinatescaptcha=1, parameters → task fields:
| in.php | task |
|---|---|
body | body |
textinstructions | comment |
imginstructions | imgInstructions |
min_clicks | minClicks |
max_clicks | maxClicks |
res.php returns the points as coordinate:x=120,y=45;x=33,y=210, or an array of {x, y} with json=1.