ReCaptcha v2 Image Solver
ReCaptchaV2Image task type का उपयोग करके ReCaptcha v2 grids (कारें, बसें, traffic lights, आदि) में मेल खाने वाली images चुनें। सही tiles के शून्य-आधारित indices लौटाता है।
Create Task
base64-encoded image tiles और question prompt भेजें।
POST
/createTaskHostapi.captchasonic.com
Content-Typeapplication/json
{
"apiKey": "YOUR_API_KEY",
"task": {
"type": "ReCaptchaV2Image",
"question": "Select all crosswalks",
"queries": ["BASE64_IMG_1", "BASE64_IMG_2", "BASE64_IMG_3"]
}
}
Response
{
"code": 200,
"msg": "",
"answers": [0, 3, 7]
}
answersमें उन images के शून्य-आधारित indices होते हैं जो प्रश्न से मेल खाती हैं।
Task Parameters
| Property | Type | Required | Description |
|---|---|---|---|
type | string | ✅ | ReCaptchaV2Image या ReCaptchaV2Classification |
question | string | ✅ | challenge text (जैसे "Select all crosswalks") |
queries | string[] | ✅ | Base64-encoded grid tile images |
reCAPTCHA Audio
जब image challenge उपलब्ध या सुलभ न हो, तो reCAPTCHA audio challenge देता है। .rc-audiochallenge-tdownload-link (या #audio-source) से MP3 डाउनलोड करें और उसे synchronous /solve endpoint पर भेजें।
POST
/solveHostapi.captchasonic.com
Content-Typemultipart/form-data
API key को apikey header में भेजें।
curl -X POST "https://api.captchasonic.com/solve" \
-H "apikey: YOUR_API_KEY" \
-F "method=rcaudio" \
-F "[email protected];type=audio/mpeg"
const formData = new FormData();
formData.append("method", "rcaudio");
formData.append("audio", audioBlob, "audio.mp3");
const response = await fetch("https://api.captchasonic.com/solve", {
method: "POST",
headers: { apikey: "YOUR_API_KEY" },
body: formData,
});
const data = await response.json();
console.log(data.solution);
| Field | Type | Description |
|---|---|---|
method | string | rcaudio होना चाहिए। |
audio | file | reCAPTCHA audio challenge से डाउनलोड की गई MP3 फ़ाइल। |
Audio response
{
"solution": "1 9 4 0 3",
"id": "req_65f2a1b9c4..."
}
solutionवह transcribed text है जिसे#audio-responseमें दर्ज करना है।idअद्वितीय task identifier है।
API Playground
POST
लॉग इन करें अपनी API key अपने-आप भरने के लिए
Payload
रिस्पॉन्स
रिस्पॉन्स देखने के लिए भेजें दबाएँ
⌘ + Enter
पैरामीटर
त्रुटि कोड
terminal