Hızlı Test
Resmi buraya bırak veya tıkla
PNG, JPG, BMP desteklenirCaptcha'yı
doğrulayıp resim seçin
API Entegrasyonu
Python
JavaScript
C++
C#
Lua
import requests, base64
with open("captcha.png", "rb") as f:
b64 = base64.b64encode(f.read()).decode()
res = requests.post(
"https://kocaptcha.net/solve",
json={"image": b64, "api_key": "ko_xxxx..."}
).json()
print(res["result"]) # → "abcd"
const fs = require("fs");
const b64 = fs.readFileSync("captcha.png")
.toString("base64");
const res = await fetch("https://kocaptcha.net/solve", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
image: b64,
api_key: "ko_xxxx..."
})
});
const { result } = await res.json();
console.log(result); // → "abcd"
#include <curl/curl.h>
// b64img = base64 encode edilmiş resim
std::string body =
"{\"image\":\"" + b64img +
"\",\"api_key\":\"ko_xxxx...\"}";
CURL* curl = curl_easy_init();
curl_easy_setopt(curl, CURLOPT_URL,
"https://kocaptcha.net/solve");
curl_easy_setopt(curl, CURLOPT_POSTFIELDS,
body.c_str());
struct curl_slist* h = nullptr;
h = curl_slist_append(h,
"Content-Type: application/json");
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, h);
curl_easy_perform(curl);
// Yanit: {"result":"abcd"}
using System.Net.Http;
using System.Text;
byte[] img = File.ReadAllBytes("captcha.png");
string b64 = Convert.ToBase64String(img);
var client = new HttpClient();
var payload = $"{{\"image\":\"{b64}\"," +
$"\"api_key\":\"ko_xxxx...\"}}";
var content = new StringContent(
payload, Encoding.UTF8, "application/json");
var res = await client.PostAsync(
"https://kocaptcha.net/solve", content);
Console.WriteLine(await res.Content
.ReadAsStringAsync()); // {"result":"abcd"}
local http = require("socket.http")
local ltn12 = require("ltn12")
-- b64: base64 encode edilmiş resim verisi
local body = '{"image":"'..b64..'",'..'
'"api_key":"ko_xxxx..."}'
local resp = {}
http.request({
url = "https://kocaptcha.net/solve",
method = "POST",
source = ltn12.source.string(body),
sink = ltn12.sink.table(resp),
headers = {
["content-type"] = "application/json",
["content-length"] = #body
}
})
print(table.concat(resp))
-- {"result":"abcd"}