Image Tasks

ReCaptcha v2
Solve reCAPTCHA v2 image challenges with the NoCaptchaAI API.
Create a task
POST https://api.nocaptchaai.com/createTask
curl -X POST https://api.nocaptchaai.com/createTask \
-H "Content-Type: application/json" \
-d '{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "ReCaptchaV2Classification",
"questionType": "33",
"image": [
"base64-of-cell-0",
"base64-of-cell-1"
],
"question": "Select all images with traffic lights",
"websiteURL": "https://example.com"
}
}'{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "ReCaptchaV2Classification",
"questionType": "33",
"image": [
"base64-of-cell-0",
"base64-of-cell-1"
],
"question": "Select all images with traffic lights",
"websiteURL": "https://example.com"
}
}questionType values
| Value | Grid | Description |
|---|---|---|
"33" | 3×3 | 9 individual cell images in image |
"44" | 4×4 | 16 individual cell images in image |
"split_33" | 3×3 | Single full source image in image (server splits it) |
Get the result
// For "33" / "44" — cell indexes to click:
{ "errorId": 0, "solution": { "objects": [0, 3, 7] } }
// For "split_33" — either form is accepted:
{ "errorId": 0, "solution": { "objects": [0, 5, 8] } }
{ "errorId": 0, "solution": { "hasObject": [true, false, true] } }objects→ array of cell indexes to click.hasObject→ boolean per cell;truecells get clicked.- An empty
objectsarray triggers a captcha reload.
Audio challenge
reCAPTCHA also offers an audio challenge. Download the MP3 from .rc-audiochallenge-tdownload-link (or the #audio-source element) and send it to the synchronous /solve endpoint as multipart form data.
POST https://api.nocaptchaai.com/solve
Fallback hosts: https://backup1.nocaptchaai.com/solve, https://backup2.nocaptchaai.com/solve
| Field | Type | Description |
|---|---|---|
method | string | Must be rcaudio. |
audio | file | MP3 audio file downloaded from the reCAPTCHA audio challenge. |
Send the API key in the apikey header, not in the body.
curl -X POST "https://api.nocaptchaai.com/solve" \
-H "apikey: YOUR_API_KEY" \
-F "method=rcaudio" \
-F "audio=@challenge.mp3;type=audio/mpeg"const formData = new FormData();
formData.append("method", "rcaudio");
formData.append("audio", audioBlob, "audio.mp3");
const response = await fetch("https://api.nocaptchaai.com/solve", {
method: "POST",
headers: {
apikey: "YOUR_API_KEY",
},
body: formData,
});
const data = await response.json();
console.log(data.solution);Audio response
{
"solution": "1 9 4 0 3",
"id": "req_65f2a1b9c4..."
}solution→ transcribed numbers or words. Enter this into#audio-responseon the challenge page.id→ unique task/transaction identifier.
Use multipart/form-data for audio tasks. Do not JSON-encode the MP3 or send it as a base64 field.
Browser extension message
Extension content scripts should send the audio bytes to the background worker, which rebuilds the FormData with a Blob:
chrome.runtime.sendMessage({
type: "networkRequest",
payload: {
url: "https://api.nocaptchaai.com/solve",
method: "POST",
headers: {
apikey: apikey,
},
body: {
audio: audioBytes, // Array.from(new Uint8Array(audioArrayBuffer))
method: "rcaudio",
},
isFormData: true,
},
});Code example
import requests
API_KEY = "YOUR_API_KEY"; BASE = "https://api.nocaptchaai.com"
res = requests.post(f"{BASE}/createTask", json={
"clientKey": API_KEY,
"task": {
"type": "ReCaptchaV2Classification",
"questionType": "33",
"image": ["base64-cell-0", "base64-cell-1", "..."],
"question": "Select all images with traffic lights",
"websiteURL": "https://example.com"
}
}).json()
print(res)const API_KEY = "YOUR_API_KEY", BASE = "https://api.nocaptchaai.com";
const res = await fetch(`${BASE}/createTask`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
clientKey: API_KEY,
task: {
type: "ReCaptchaV2Classification",
questionType: "33",
image: ["base64-cell-0", "base64-cell-1", "..."],
question: "Select all images with traffic lights",
websiteURL: "https://example.com"
}
})
}).then(r => r.json());
console.log(res);curl -X POST https://api.nocaptchaai.com/createTask \
-H "Content-Type: application/json" \
-d '{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "ReCaptchaV2Classification",
"questionType": "33",
"image": ["base64-cell-0", "base64-cell-1"],
"question": "Select all images with traffic lights",
"websiteURL": "https://example.com"
}
}'