> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omocaptcha.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GeetestSelectObjectTask

> Solve Geetest Select Object captcha - pick images matching the anchor

Select object captcha is a common image verification. The user selects grid cells whose subject matches the requested anchor.

<Frame>
  <img src="https://mintcdn.com/omocaptcha/Jc1mwaiUF23R0W3R/images/geetest-select-object-modal.png?fit=max&auto=format&n=Jc1mwaiUF23R0W3R&q=85&s=fea5783f261c280d0f6e4b6545e6246c" style={{ maxWidth: "360px", width: "100%" }} width="338" height="382" data-path="images/geetest-select-object-modal.png" />
</Frame>

## 1. Create task

**Request**

```text theme={null}
POST https://api.omocaptcha.com/v2/createTask
```

| Parameter          | Type     | Required | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ------------------ | -------- | :------: | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `clientKey`        | `String` |     ✅    | Client account key                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `task.type`        | `String` |     ✅    | `GeetestSelectObjectTask`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `task.imageBase64` | `String` |     ✅    | Base64-encoded 3×3 grid image <br /><br /><img src="https://mintcdn.com/omocaptcha/Jc1mwaiUF23R0W3R/images/geetest-select-object-image.png?fit=max&auto=format&n=Jc1mwaiUF23R0W3R&q=85&s=13fc3ce841d1d81ef574904e33ea96f9" style={{ maxWidth: "260px", width: "100%" }} width="299" height="258" data-path="images/geetest-select-object-image.png" />                                        |
| `task.question`    | `String` |     ✅    | Captcha question (e.g. `Select 3 images with`)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `task.anchor`      | `String` |     ✅    | Base64-encoded anchor image (shown right after the question) <br /><br /><img src="https://mintcdn.com/omocaptcha/Jc1mwaiUF23R0W3R/images/geetest-select-object-anchor.png?fit=max&auto=format&n=Jc1mwaiUF23R0W3R&q=85&s=90a487ca6d756496853c98765329f172" style={{ maxWidth: "120px", width: "100%" }} width="198" height="194" data-path="images/geetest-select-object-anchor.png" /> |

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST https://api.omocaptcha.com/v2/createTask \
    -H "Content-Type: application/json" \
    -d '{
      "clientKey": "OMO_API_KEY",
      "task": {
        "type": "GeetestSelectObjectTask",
        "imageBase64": "BASE64_BODY_HERE",
        "question": "Select 3 images with",
        "anchor": "BASE64_ICON_HERE"
      }
    }'
  ```

  ```javascript Node.js theme={null}
  const axios = require('axios');

  const { data } = await axios.post('https://api.omocaptcha.com/v2/createTask', {
    clientKey: 'OMO_API_KEY',
    task: {
      type: 'GeetestSelectObjectTask',
      imageBase64: 'BASE64_BODY_HERE',
      question: 'Select 3 images with',
      anchor: 'BASE64_ICON_HERE'
    }
  });
  console.log(data);
  ```

  ```python Python theme={null}
  import requests

  res = requests.post('https://api.omocaptcha.com/v2/createTask', json={
      'clientKey': 'OMO_API_KEY',
      'task': {
          'type': 'GeetestSelectObjectTask',
          'imageBase64': 'BASE64_BODY_HERE',
          'question': 'Select 3 images with',
          'anchor': 'BASE64_ICON_HERE'
      }
  })
  print(res.json())
  ```

  ```php PHP theme={null}
  <?php
  $ch = curl_init('https://api.omocaptcha.com/v2/createTask');
  curl_setopt($ch, CURLOPT_POST, true);
  curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
    'clientKey' => 'OMO_API_KEY',
    'task' => [
      'type' => 'GeetestSelectObjectTask',
      'imageBase64' => 'BASE64_BODY_HERE',
      'question' => 'Select 3 images with',
      'anchor' => 'BASE64_ICON_HERE'
    ]
  ]));
  echo curl_exec($ch);
  ```
</CodeGroup>

**Response**

Success:

```json theme={null}
{
  "errorId": 0,
  "taskId": "49f9f60a-c809-4af0-93c0-0409b72e67e0"
}
```

The server returns `errorId = 0` with a `taskId` on success.

Failure:

```json theme={null}
{
  "errorId": 1,
  "errorCode": "",
  "errorDescription": ""
}
```

The server returns `errorId = 1` and an `errorCode`.

## 2. Get task result

**Request**

```text theme={null}
POST https://api.omocaptcha.com/v2/getTaskResult
```

```json theme={null}
{
  "clientKey": "OMO_API_KEY",
  "taskId": "49f9f60a-c809-4af0-93c0-0409b72e67e0"
}
```

**Response**

Success:

```json theme={null}
{
  "errorId": 0,
  "errorCode": "",
  "errorDescription": "",
  "status": "ready",
  "solution": {
    "objects": [0, 1, 6]
  }
}
```

The server returns `errorId = 0` and `status = ready`. Read the answer from `solution.objects`.

<Info>
  `objects` is the list of matching cell indices (0–8), counted left-to-right, top-to-bottom:

  * Row 1: `0`, `1`, `2`
  * Row 2: `3`, `4`, `5`
  * Row 3: `6`, `7`, `8`
</Info>

Processing:

```json theme={null}
{
  "status": "processing",
  "errorId": 0,
  "errorCode": "",
  "errorDescription": ""
}
```

The server returns `errorId = 0` and `status = processing`. Wait 2 seconds and retry.

Failure:

```json theme={null}
{
  "errorId": 1,
  "errorCode": "ERROR_JOB_STATUS",
  "errorDescription": "Job failed",
  "status": "fail",
  "solution": {}
}
```

The server returns `errorId = 1`.
