# AntiTurnstileTask

求解此驗證碼類型。

## 任務類型

`AntiTurnstileTask`

## 同步或輪詢

非同步，輪詢 `/getTaskResult`

## 參數

| 欄位 | 類型 | 必填 | 說明 |
| --- | --- | --- | --- |
| `type` | string | 是 | `AntiTurnstileTask` |
| `websiteURL` | string | 是 | 頁面 URL |
| `websiteKey` | string | 是 | Turnstile 網站金鑰 |
| `proxy` | string | 否 | 瀏覽器代理伺服器 |

## 最小請求

```json
{
  "clientKey": "YOUR_API_KEY",
  "task": {
    "type": "AntiTurnstileTask",
    "websiteURL": "https://example.com",
    "websiteKey": "0x4AAAA..."
  }
}
```

## 成功時的 solution

```json
{
  "token": "...",
  "userAgent": "..."
}
```

## 常見失敗

`ERROR_CAPTCHA_UNSOLVABLE`, `ERROR_BAD_REQUEST`, `ERROR_TASK_NOT_SUPPORTED`

Source: https://kaptra.ai/zh-TW/docs/task-types/anti-turnstile
