Skip to content

Popular Captcha Solver

Solve object-interaction captchas using the PopularCaptchaImage or PopularClassification task types. The questionType field determines how the challenge is processed.

Supported Modes

questionTypeDescriptionResponse Format
objectClassifySelect all matching images from a gridboolean[] per image
objectClickClick on the center of a target object{x, y}[] coordinates
objectDragDrag puzzle pieces to their correct position{start, end}[]
objectTagTag objects in an imageLabels array
gridGeneric grid selectionBoolean array
bboxBounding box detectionCoordinates

Create Task — Grid Classify

POST/createTask
Hostapi.captchasonic.com
Content-Typeapplication/json
{
    "apiKey": "YOUR_API_KEY",
    "task": {
        "type": "PopularCaptchaImage",
        "questionType": "objectClassify",
        "question": "Select all objects with a bridge",
        "queries": ["BASE64_IMG_1", "BASE64_IMG_2"]
    }
}

Response

{
    "code": 200,
    "msg": "",
    "answers": [true, false, true, true, false, true],
    "questionType": "objectClassify",
    "meta": { "pass_report": true, "fail_report": true }
}

Create Task — Object Click

{
    "apiKey": "YOUR_API_KEY",
    "task": {
        "type": "PopularCaptchaImage",
        "questionType": "objectClick",
        "question": "Click on the center of the car",
        "queries": ["BASE64_MAIN_IMAGE"]
    }
}

Create Task — Object Drag

{
    "apiKey": "YOUR_API_KEY",
    "task": {
        "type": "PopularCaptchaImage",
        "questionType": "objectDrag",
        "question": "Drag the puzzle piece to the gap",
        "queries": ["BASE64_BACKGROUND"],
        "examples": ["BASE64_PUZZLE_PIECE"]
    }
}

Task Parameters

PropertyTypeRequiredDescription
typestringPopularCaptchaImage or PopularClassification
questionTypestringobjectClassify, objectClick, objectDrag, objectTag, grid, bbox
questionstringThe challenge instruction text
queriesstring[]Base64-encoded images
examplesstring[]Drag onlyTarget objects for drag tasks
screenshortbooleanNoSet true if images are screenshots

API Playground

POST
Log in to auto-fill your API key
Payload
Response

Hit Send to see response

⌘ + Enter

Parameters

apiKeystringYOUR_API_KEY
taskobject{...}
typestringPopularCaptchaImage
questionTypestringobjectClassify
questionstringSelect all objects with a brid…
queriesarray[2 items]

Error Codes

1KEY_DOES_NOT_EXIST
2NO_SLOT_AVAILABLE
3ZERO_BALANCE
10ERROR_BAD_PARAMETERS
12ERROR_CAPTCHA_UNSOLVABLE
14PLAN_EXPIRED
16RATE_LIMITED
17DAILY_LIMIT_EXCEEDED
18QUOTA_LIMIT_EXCEEDED
21SERVICE_UNAVAILABLE
Code
terminal