GeeTest Captcha Recognition
Hướng dẫn sử dụng API Giải Geetest Captcha V3/V4 của anticaptcha.top
Các kiểu Captcha GeeTest hỗ trợ

slider
Kéo thanh trượt để khớp hoàn thành

geetestv2
Click vào vật thể theo đúng thứ tự


geetesticonv4
Click vào các ảnh có hình như yêu cầu

five
Click và thả để xếp 5 vật thể giống nhau thành 1 hàng


three
Click di chuyển hoán đổi vị trí các ô để xếp 3 vật thể giống nhau thành 1 hàng


geetesticonhand
Click vào vật thể theo đúng thứ tự
1. Tạo yêu cầu/Request
POST : https://anticaptcha.top/in.php
Các tham số Body:
Tên trường dữ liệu
Kiểu dữ liệu
Bắt buộc
Mô tả
key
String
x
Key duy nhất để xác định đối tác API Đăng nhập ⇒ API (key & tài liệu) ⇒ lấy api key
method
String
x
base64
textinstructions
String
x
click
String
x
geetest
body
String
x
base64 ảnh hoặc url ảnh
json
Integer
0: server sẽ trả về dạng text (mặc định) 1: server sẽ trả về dạng JSON
POST HTTP
Url: https://anticaptcha.top/in.php
Content-Type: application/json
{
"key": "YOUR_API_KEY",
"method": "base64",
"textinstructions": "slider",
"click": "geetest", // id của loại captcha geetest
"body": "iVBORw0KGgoAAAANSUhEUgAAAC8AAAA...", //base64 ảnh hoặc url ảnh
"json": 1
}Kết quả trả về/Response
dạng text: OK|[id]
Ví dụ: OK|24380238
dạng JSON:
{
"status": 1,
"request": "24380427", //task id
}dạng text: ERROR|Apikey incorrect
dạng JSON:
{
"status": 0,
"request": "Apikey incorrect"
}hoặc
dạng text: ERROR|Balance not enough
dạng JSON:
{
"status": 0,
"request": "Balance not enough"
}2. Lấy kết quả giải captcha/Response
GET : https://anticaptcha.top/res.php
Các tham số Body:
Tên trường dữ liệu
Kiểu dữ liệu
Bắt buộc
Mô tả
key
String
x
Key duy nhất để xác định đối tác API
id
String
x
Task id trả về ở bước 1
json
Integer
0: server sẽ trả về dạng text (mặc định) 1: server sẽ trả về dạng JSON
GET HTTP
Url: https://anticaptcha.top/res.php?key=[apikey của bạn]&id=[task id]&json=1Kết quả trả về/Response
dạng text: CAPCHA_NOT_READY
dạng JSON:
{
"status": 0,
"request": "CAPCHA_NOT_READY"
}dạng text: OK|[kết quả giải ra]
Ví dụ: OK|coordinates:x=178,y=76,w=51
dạng JSON:
{
"status": 1,
"request": "coordinates:x=178,y=76,w=51", //kết quả trả về
"message": "Đã xử lý xong"
}dạng text: ERROR_WRONG_USER_KEY
dạng JSON:
{
"status": 0,
"request": "ERROR_WRONG_USER_KEY",
"error_text": "The key you've provided does not exists."
}hoặc
dạng text: ERROR|The value '63570739435453' is not valid for id.
dạng JSON:
{
"status": 0,
"request": "The value '635707453' is not valid for id.",
"message": "The value '635707453' is not valid for id."
}3. Code mẫu
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://anticaptcha.top/in.php");
var content = new StringContent("{\r\n \"key\": \"[api key]\",\r\n \"method\": \"base64\",\r\n \"textinstructions\": \"abc\",\r\n \"click\": \"geetest\",\r\n \"body\": \"iVBORw0KGgoAAAANSUhEUgAAAC8AAAA...\"\r\n, \"json\": 1}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://anticaptcha.top/in.php',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"key": "[api key]",
"method": "base64",
"textinstructions": "abc",
"click": "geetest",
"body": "iVBORw0KGgoAAAANSUhEUgAAAC8AAAA...",
"json": 1
}',
CURLOPT_HTTPHEADER => array('Content-Type: application/json'),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>var settings = {
"url": "https://anticaptcha.top/in.php",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({
"key": "[api key]",
"method": "base64",
"textinstructions": "abc",
"click": "geetest",
"body": "iVBORw0KGgoAAAANSUhEUgAAAC8AAAA...",
"json": 1
}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});import requests
import json
url = "https://anticaptcha.top/in.php"
payload = json.dumps({
"key": "[api key]",
"method": "base64",
"textinstructions": "abc",
"click": "geetest",
"body": "iVBORw0KGgoAAAANSUhEUgAAAC8AAAA...",
"json": 1
})
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)var request = require('request');
var options = {
'method': 'POST',
'url': 'https://anticaptcha.top/in.php',
'headers': {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"key": "[api key]",
"method": "base64",
"textinstructions": "abc",
"click": "geetest",
"body": "iVBORw0KGgoAAAANSUhEUgAAAC8AAAA...",
"json": 1
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
}Lưu ý: Nên sử dụng phần mềm PostMan để kiểm tra chạy test trước
Last updated