ReCaptcha v2
Solve reCAPTCHA v2 image challenges with the NoCaptchaAI API.
Loading…
Solve reCAPTCHA v2 image challenges with the NoCaptchaAI API.
Loading…
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"
}
}'
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) |
// 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; true cells get clicked.objects array triggers a captcha reload.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"
{
"solution": "1 9 4 0 3",
"id": "req_65f2a1b9c4..."
}
solution → transcribed numbers or words. Enter this into #audio-response on 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.
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,
},
});
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)