Binance Captcha
Hướng dẫn sử dụng API Giải Binance Captcha của anticaptcha.top
Các kiểu Captcha Binance hỗ trợ
slider
Kéo thanh trượt để khớp hoàn thành Dùng Geetest Slider để giải textinstructions = slider click = geetest

binance,[tên vật thể]
Click các hình có chứa vật thể theo yêu cầu
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
binance,bear
click
String
x
geetest - kết quả trả về dạng OK|coordinate:x=44,y=32;x=143,y=11 geetest2 - kết quả trả về dạng OK|1,2,6,9
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": "binance,bear",
"click": "geetest2", // id của loại captcha binance
"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=70,y=70;x=70,y=210;x=210,y=350
dạng JSON:
{
"status": 1,
"request": "coordinates:x=70,y=70;x=70,y=210;x=210,y=350", //tọa độ các điểm cần click
"message": "Đã xử lý xong"
}
hoặc
dạng text: OK|[kết quả giải ra]
Ví dụ: OK|1,4,8
dạng JSON:
{
"status": 1,
"request": "1,4,8", //thứ tự các ảnh cần click
"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\": \"binance,car\",\r\n \"click\": \"geetest2\",\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": "binance,car",
"click": "geetest2",
"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": "binance,car",
"click": "geetest2",
"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": "binance,car",
"click": "geetest2",
"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": "binance,car",
"click": "geetest2",
"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