> For the complete documentation index, see [llms.txt](https://docs.anticaptcha.top/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.anticaptcha.top/su-dung-api/api-giai-captcha.md).

# 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="/pages/fyNVZDPzNfuN1JDmLJqy" %}
[Image to Text - Captcha dạng ảnh chữ](/su-dung-api/api-giai-captcha/image-to-text-captcha-dang-anh-chu.md)
{% endcontent-ref %}

#### 1.2. API ReCAPTCHA V2/V3

{% content-ref url="/pages/gE9y0himpPAGgSYPSg9d" %}
[ReCAPTCHA V2](/su-dung-api/api-giai-captcha/recaptcha-v2.md)
{% endcontent-ref %}

{% content-ref url="/pages/oA9mUDi8QLqgf5vLjgzZ" %}
[ReCAPTCHA V3](/su-dung-api/api-giai-captcha/recaptcha-v3.md)
{% endcontent-ref %}

#### 1.3. API HCaptcha

{% content-ref url="/pages/RVhURM7kxZ2KHkMTXtNe" %}
[hCAPTCHA](/su-dung-api/api-giai-captcha/hcaptcha.md)
{% endcontent-ref %}

#### 1.4. API FunCaptcha

{% content-ref url="/pages/KRrFVF8wibrDK7OYjbuQ" %}
[FunCAPTCHA](/su-dung-api/api-giai-captcha/funcaptcha.md)
{% endcontent-ref %}

#### 1.5. API GeeTest Captcha V4

{% content-ref url="/pages/Y8cXxDi2BSfgNmpr80gr" %}
[GeeTest Captcha V3](/su-dung-api/api-giai-captcha/geetest-captcha-v3.md)
{% 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
