# API giải captcha

### Tích hợp API

Việc tích hợp với API được thực hiện qua giao thức HTTP, vì thế dễ dàng tích hợp vào bất cứ nền tảng, ngôn ngữ lập trình nào.

Việc giải captcha được thực hiện qua 2 bước:\
**Bước 1**: Gửi thông tin captcha cần giải sang anticaptcha.top qua HTTP POST.\
**Bước 2**: Nhận kết quả [giải captcha](https://anticaptcha.top)

### 1. API gửi captcha sang anticaptcha.top

Sử dụng HTTP POST để gửi captcha cần giải sang [anticaptcha.top](https://anticaptcha.top):

\- Url nhận: <mark style="color:red;">**<https://anticaptcha.top/api/captcha>**</mark>\
\- Method: <mark style="color:red;">**POST**</mark>\
\- Content-Type: <mark style="color:red;">**application/json**</mark>

#### 1.1. API Các loại captcha dạng ảnh

{% content-ref url="api-giai-captcha/image-to-text-captcha-dang-anh-chu" %}
[image-to-text-captcha-dang-anh-chu](https://docs.anticaptcha.top/su-dung-api/api-giai-captcha/image-to-text-captcha-dang-anh-chu)
{% endcontent-ref %}

#### 1.2. API ReCAPTCHA V2/V3

{% content-ref url="api-giai-captcha/recaptcha-v2" %}
[recaptcha-v2](https://docs.anticaptcha.top/su-dung-api/api-giai-captcha/recaptcha-v2)
{% endcontent-ref %}

{% content-ref url="api-giai-captcha/recaptcha-v3" %}
[recaptcha-v3](https://docs.anticaptcha.top/su-dung-api/api-giai-captcha/recaptcha-v3)
{% endcontent-ref %}

#### 1.3. API HCaptcha

{% content-ref url="api-giai-captcha/hcaptcha" %}
[hcaptcha](https://docs.anticaptcha.top/su-dung-api/api-giai-captcha/hcaptcha)
{% endcontent-ref %}

#### 1.4. API FunCaptcha

{% content-ref url="api-giai-captcha/funcaptcha" %}
[funcaptcha](https://docs.anticaptcha.top/su-dung-api/api-giai-captcha/funcaptcha)
{% endcontent-ref %}

#### 1.5. API GeeTest Captcha V4

{% content-ref url="api-giai-captcha/geetest-captcha-v3" %}
[geetest-captcha-v3](https://docs.anticaptcha.top/su-dung-api/api-giai-captcha/geetest-captcha-v3)
{% endcontent-ref %}

### 2. Kết quả trả về dạng JSON gồm các trường sau

<table data-header-hidden><thead><tr><th width="197"></th><th width="137"></th><th></th></tr></thead><tbody><tr><td><strong>Tên trường dữ liệu</strong></td><td><strong>Kiểu dữ liệu</strong></td><td><strong>Mô tả</strong></td></tr><tr><td>success</td><td>boolean</td><td><p>Mã thông báo xác định kết quả của bước gửi captcha qua POST</p><p><mark style="color:red;"><strong>true</strong></mark>: Thành công<br><mark style="color:red;"><strong>false</strong></mark>: Thất bại</p></td></tr><tr><td>message</td><td>String</td><td>Thông báo tương ứng nếu có</td></tr><tr><td>captcha</td><td>String</td><td>kết quả captcha đã giải</td></tr></tbody></table>

### &#x20;*3. <mark style="color:red;">Lưu ý</mark>:* Nên sử dụng phần mềm PostMan để kiểm tra chạy test trước


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.anticaptcha.top/su-dung-api/api-giai-captcha.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
