Solver HCaptcha
Selesaikan tantangan gambar hCaptcha dengan memberikan gambar ter-encode base64 dan teks perintah. API menggunakan tipe task PopularCaptchaImage, yang mendukung tiga mode tantangan.
Mode yang Didukung
| Mode | questionType | Deskripsi | Respons |
|---|---|---|---|
| Grid / Classify | objectClassify | Pilih semua gambar yang cocok dari grid | boolean[] — satu per gambar |
| Click | objectClick | Klik di tengah objek target | Koordinat {x, y}[] |
| Drag & Drop | objectDrag | Seret potongan puzzle ke posisi yang benar | Koordinat {start, end}[] |
Buat Task — Grid / Classify
Mode yang paling umum. Kirim ubin gambar ter-encode base64 dan teks pertanyaan.
POST
/createTaskHostapi.captchasonic.com
Content-Typeapplication/json
{
"apiKey": "YOUR_API_KEY",
"task": {
"type": "PopularCaptchaImage",
"questionType": "objectClassify",
"question": "Select all images with a bus",
"queries": ["BASE64_IMG_1", "BASE64_IMG_2", "..."]
}
}
Respons
{
"code": 200,
"msg": "",
"answers": [true, false, true, true, false, true, true, true, true],
"questionType": "objectClassify",
"meta": { "pass_report": true, "fail_report": true }
}
Setiap
answers[i]sesuai denganqueries[i]—trueberarti gambar cocok dengan pertanyaan.
Buat Task — Click
Kirim satu gambar. Solver mengembalikan koordinat objek target.
{
"apiKey": "YOUR_API_KEY",
"task": {
"type": "PopularCaptchaImage",
"questionType": "objectClick",
"question": "Click on the center of the cat",
"queries": ["BASE64_MAIN_IMAGE"]
}
}
Respons
{
"code": 200,
"answers": [[{ "x": 142, "y": 205 }]],
"questionType": "objectClick"
}
Buat Task — Drag & Drop
Kirim gambar latar di queries dan potongan puzzle di examples.
{
"apiKey": "YOUR_API_KEY",
"task": {
"type": "PopularCaptchaImage",
"questionType": "objectDrag",
"question": "Drag the puzzle piece to the gap",
"queries": ["BASE64_BACKGROUND"],
"examples": ["BASE64_PUZZLE_PIECE"]
}
}
Respons
{
"code": 200,
"answers": [[{ "start": [100, 200], "end": [150, 250] }]],
"questionType": "objectDrag"
}
Parameter Task
| Property | Type | Required | Description |
|---|---|---|---|
type | string | ✅ | PopularCaptchaImage atau PopularClassification |
questionType | string | ✅ | objectClassify, objectClick, atau objectDrag |
question | string | ✅ | Teks instruksi tantangan |
queries | string[] | ✅ | Gambar ter-encode base64 (ubin grid atau gambar utama) |
examples | string[] | Hanya drag | Objek target untuk tugas drag |
screenshort | boolean | No | Atur true jika gambar berupa screenshot |
API Playground
POST
Masuk untuk mengisi API key Anda secara otomatis
Payload
Respons
Tekan Kirim untuk melihat respons
⌘ + Enter
Parameter
Kode Error
terminal