---
description: >-
  Hiện tại đã có extension cho cả 4 loại captcha trên trình duyệt, các bạn inbox
  admin (https://t.me/vietnvri) để nhận extension.
---

# Tiktok captcha

_**Cung cấp đủ tất cả các loại captcha cho cả trình duyệt, giả lập và phone.**_\
_**#Giải captcha tiktok mới**_



![](https://1995327160-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvKEnxyTGI1nzj2MFEvup%2Fuploads%2F2oByTLaCAVaQkfBneS9g%2Fimage.png?alt=media\&token=fec3d591-a6c1-4f31-993e-6efe13260e66)![](https://1995327160-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvKEnxyTGI1nzj2MFEvup%2Fuploads%2FKuOc2BpJYnXPBkHXPbZe%2Fimage.png?alt=media\&token=7a47bf40-7854-43df-a6ca-d4442c1ef9e6)<img src="https://1995327160-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvKEnxyTGI1nzj2MFEvup%2Fuploads%2F47IraUbaQRiduAa1Wiax%2Fimage.png?alt=media&#x26;token=47124eb7-19b1-452e-afe4-b03bb85a3772" alt="" data-size="original">![](https://1995327160-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvKEnxyTGI1nzj2MFEvup%2Fuploads%2FdIEAiPkjuR7wME3qc9BT%2Fimage.png?alt=media\&token=64aa6435-e716-4a02-8516-443a6d7c4349)

## 1. Tạo yêu cầu

### Request

**POST** `https://api.achicaptcha.com/createTask`

<table data-full-width="true"><thead><tr><th>Tên param</th><th>Kiểu dữ liệu</th><th>Bắt buộc?</th><th>Mô tả</th></tr></thead><tbody><tr><td>clientKey</td><td>string</td><td>yes</td><td>Api key</td></tr><tr><td>task.type</td><td>string</td><td>yes</td><td><strong>TiktokCaptchaTask</strong></td></tr><tr><td>task.image</td><td>string</td><td>yes</td><td>Base64 của ảnh</td></tr><tr><td>task.subType</td><td>int</td><td>yes</td><td><p>Loại captcha: </p><p>0: Rotate captcha trên browser </p><p>1: Slider captcha</p><p>2: Chọn 2 đối tượng giống nhau<br>3: Rotate captcha trên phone, giả lập<br>5: Chọn các vật thỏa mãn câu hỏi</p></td></tr><tr><td>task.other</td><td>string</td><td>Với subType 5, trường này là bắt buộc</td><td>Câu hỏi của captcha, ví dụ:<br>"<em>Which of these objects neighs</em>"</td></tr></tbody></table>



```
POST /createTask HTTP/1.1
Host: api.achicaptcha.com
Content-Type: application/json

{
	"clientKey": "YOUR_API_KEY",
	"task": {
		"type": "TiktokCaptchaTask",
		"image": "/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wAARCADUAVQDAREAAhEBAxEB/8QAHQABAQACAwEBAQAAAAAAAAAAAAECBwQFBgMICf/EAEEQAAEDAgQDBQcDAgMGBwAAAAEAAgMEEQUGITESQVEHE2FxgRQiMkKRobEVI1LB0WJy4QgWJDND8Bc0U2OSovH/xAAbAQEBAAMBAQEAAAAAAAAAAAAAAQIFBgQDB//EADQRAQACAgEDAwEGBQQCAwAAAAABAgMRBBIhMQUTQVEGIjJhkbFCcYGh0RQjwfAzQ1KS4f/aAAwDAQACEQMRAD8A/poBp1WLIQEBFOaIckD7FAQVBNQgoQOiBdAQEUCIpQEUuiCANEBBbaoCBugBA+yBfVAvsgo+6BeyAgX8UC6CXRS/VEW6BdBLoCAgc0DVB80FughQXl1QDugIHJFEQGiAUAIAQN0BFXZVDYXUHziqYagXiljlHVjg78LKazHmFmJjzD6WIWKCoXCgEoKil0Q2QCgc0AICAgXQUHZAugiAgt0EQEFv4IJdAQEC/NBQg+aBrdAQB0QLoLv5oJ1QVBEFGqCIKqJyUFVC6Dx3avmKXLuTZ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IRkhCxZw+Zj8FjMPpFmJjHRYdL69ad0OidK+5LIM1V6WM3fQBZRD5TbagWWbCZZKsVRiqqCIIindVil0UJQEQ5XRV5oiHZA3sgKBzRBFSyIHS6AgWRQa3RCyAgHZFUahA5ofAdkVLoKgnOyKE6KgoBQUDVGSE2CBYWUVjyRU5qMtgAKCAAqKoGqErZVFCrHYAqjIBRAKoiAqj//Z",
		"subType": 2
	}
}
```

### Response

{% tabs %}
{% tab title="Thành công" %}
Khi thành công, server sẽ trả về `errorId = 0` và `taskId`

```
{
	"errorId": 0,
	"taskId": "f2fc70d6-c76b-4fba-9480-205ac1fe9fb9"
}
```
{% endtab %}

{% tab title="Lỗi request" %}
Server sẽ trả về `errorId` > 0 and `errorCode`&#x20;

```
{
	"errorId": 1,
	"errorCode": "Thông tin lỗi",
	"errorDescription": "Mô tả chi tiết lỗi"
}
```
{% endtab %}
{% endtabs %}

### Mẫu ảnh gửi lên server giải captcha

#### Trên trình duyệt

**Captcha xoay:**\
&#xNAN;_&#x54;rường image = base64 ảnh ngoài|base64 ảnh trong_

**Captcha kéo:**

_Trường image là base64 ảnh background. Hình minh hoạ:_\
![](https://1995327160-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvKEnxyTGI1nzj2MFEvup%2Fuploads%2FYZxYz3RbjfQstpNgPM8f%2Fimage.png?alt=media\&token=ffd5982f-625a-4457-bb68-66c4fd7c7832) _hoặc_ <img src="https://1995327160-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvKEnxyTGI1nzj2MFEvup%2Fuploads%2F3cD4F3EPSEyy08JewW7P%2Fimage.png?alt=media&#x26;token=904a8e17-67ad-4e4a-9137-ef9e5b005c06" alt="" data-size="original">

**Captcha chọn 2 đối tượng:**

_Trường image là base64 ảnh. Hình minh hoạ:_\
![](https://1995327160-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvKEnxyTGI1nzj2MFEvup%2Fuploads%2F57s27a72ywV3T4BrYn9V%2Fimage.png?alt=media\&token=7810a6a7-d417-441a-a452-ea4adc292559)

**Captcha chọn nhiều vật theo câu hỏi:**

_Trường image là base64 ảnh. Hình minh hoạ:_\
![](https://1995327160-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvKEnxyTGI1nzj2MFEvup%2Fuploads%2FmqHZkWgQEWocRmitMW9W%2Fimage.png?alt=media\&token=f186001d-6d98-44ca-923e-73707d93d418)

#### Trên giả lập, phone

**Captcha xoay**:\
&#xNAN;_&#x54;rường image là base 64 của **1 ảnh**, ảnh cắt chỉ chứa phần captcha xoay (đủ 2 hình tròn, có thể thừa phần trắng ở lề, độ dài phần thừa tuỳ. Hình minh hoạ:_\
<img src="https://1995327160-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvKEnxyTGI1nzj2MFEvup%2Fuploads%2FN22h4ZVynwbdZVjzrpLV%2Fimage.png?alt=media&#x26;token=bedce455-1097-4c39-9b5c-d96a37f3839f" alt="" data-size="original">

**Captcha kéo:**\
&#xNAN;_&#x54;ương tự trên trình duyệt_

**Captcha chọn 2 đối tượng:**\
&#xNAN;_&#x54;ương tự trên trình duyệt_

**Captcha chọn nhiều vật theo câu hỏi:**\
&#xNAN;_&#x54;ương tự trên trình duyệt_

### Danh sách mã lỗi

<table data-full-width="true"><thead><tr><th width="173" align="center">Mã lỗi</th><th align="center">Mô tả</th></tr></thead><tbody><tr><td align="center">0</td><td align="center">Tạo task thành công</td></tr><tr><td align="center">2</td><td align="center">Lỗi thiếu trường thông tin</td></tr><tr><td align="center">3</td><td align="center">Task chưa được hỗ trợ</td></tr><tr><td align="center">4</td><td align="center">Tạo task lỗi</td></tr><tr><td align="center">5</td><td align="center">clientKey không tồn tại</td></tr><tr><td align="center">6</td><td align="center">Số dư tài khoản không đủ</td></tr></tbody></table>

## 2. Lấy kết quả

### Request

**POST** `https://api.achicaptcha.com/getTaskResult`

<table data-full-width="true"><thead><tr><th>Tên param</th><th>Kiểu dữ liệu</th><th>Bắt buộc?</th><th>Mô tả</th></tr></thead><tbody><tr><td>clientKey</td><td>string</td><td>yes</td><td>Api key trên website</td></tr><tr><td>taskId</td><td>string</td><td>yes</td><td>TaskId lấy từ <a href="#1.-tao-yeu-cau">(1)</a></td></tr></tbody></table>

```
POST /getTaskResult HTTP/1.1
Host: api.achicaptcha.com
Content-Type: application/json

{
	"clientKey": "API_KEY của bạn",
	"taskId": "f2fc70d6-c76b-4fba-9480-205ac1fe9fb9"
}
```

### Response

{% tabs %}
{% tab title="Thành công" %}
```
{
	"errorId": 0,
	"status": "ready",
	"solution": "x1,y1,x2,y2"
}
```
{% endtab %}

{% tab title="Đang xử lý" %}
```
{
	"errorId": 1,
	"status": "processing"
}
```
{% endtab %}

{% tab title="Thất bại" %}
```
{
	"errorId": 1,
	"errorCode": "ERROR_CAPTCHA_UNSOLVABLE",
	"errorDescription": "ERROR_CAPTCHA_UNSOLVABLE"
}
```
{% endtab %}
{% endtabs %}

### Danh sách mã lỗi

<table data-full-width="true"><thead><tr><th width="173" align="center">Mã lỗi</th><th align="center">Mô tả</th></tr></thead><tbody><tr><td align="center">0</td><td align="center">Lấy kết quả thành công, sử dụng kết quả như mục trên</td></tr><tr><td align="center">1</td><td align="center">Task đang được xử lý, vui lòng đợi 1-2 giây rồi gửi request lại</td></tr><tr><td align="center">5</td><td align="center">clientKey không tồn tại</td></tr><tr><td align="center">7</td><td align="center">Task lỗi, vui lòng tạo lại task</td></tr><tr><td align="center">8</td><td align="center">TaskID không tồn tại</td></tr></tbody></table>

### Ý nghĩa kết quả trả về

* `errorId = 0` và `status = ready` : Giải thành công, đọc kết quả trong `solution`
* `errorId = 1` và `status = processing`: Đang giải captcha, đợi 1-2 giây rồi thử lại
* `errorId khác 0 và 1`: Lỗi hệ thống, đưa ra mã lỗi và mô tả lỗi
*   `solution`:&#x20;

    * Với **captcha xoay trên trình duyệt**: trả về độ dài của đoạn cần kéo thanh trượt
    * Với **captcha xoay trên giả lập, phone**: trả về góc xoay, người dùng tính ra đoạn cần kéo theo công thức: \
      Đoạn cần kéo = (L / 180) \* solution (với L là khoảng cách từ vị trí đầu tới vị trí cuối của thanh trượt, tính từ tâm thanh trượt, như hình bên dưới)

    <figure><img src="https://1995327160-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvKEnxyTGI1nzj2MFEvup%2Fuploads%2Fruj66as5UkGzWrxZgnMy%2Fimage.png?alt=media&#x26;token=f94768c2-30e7-451a-97b7-ec795765b3ca" alt=""><figcaption></figcaption></figure>
* Với **captcha kéo**: trả về toạ độ cần kéo theo trục x của ảnh
* Với **captcha chọn 2 đối tượng giống nhau**: trả về cặp toạ độ cần click trên ảnh "x1,y1,x2,y2"
* Với **captcha chọn nhiều vật thỏa mãn câu hỏi**: trả về các tọa độ cần click trên ảnh "x1,y1,x2,y2,x3,y3,..."
