Skip to content

hCaptcha solution

hCaptcha, also known as "I'm not a robot" captcha, is quite popular and looks like this:

logo

You need

You need (click here for details)

Example: http://learn.captcha.guru/ln/hcaptcha/

ReCaptchaV2 Invisible Example:

logo

https://assets.hcaptcha.com/captcha/v1/1fb1e70/static/hcaptcha-checkbox.html#id=08g98newc2i2&host=learn.captcha.guru&sentry=true&endpoint=https%3A%2F%2Fhcaptcha.com&reportapi=https%3A%2F%2Faccounts.hcaptcha.com&hl=en&sitekey=93d2dffa-6cad-4031-9c00-4741a03c569d

We need

Link to the page where it is located hCaptcha: http://learn.captcha.guru/ln/hcaptcha/

Key (site-key): 93d2dffa-6cad-4031-9c00-4741a03c569d

Sending

http://api2.cap.guru/in.php

ParameterTypeRequiredDescription
keyStringYes[The key can be viewed here](https://cap.guru /)
methodStringYeshcaptcha — determines that you are solving hCaptcha
sitekeyStringYesThe value of the parameter k or data-sitekey that you found in the page code
For example 93d2dffa-6cad-4031-9c00-4741a03c569d
pageurlStringYesFull URL of the page where you are solving hCaptcha
For example http://learn.captcha.guru/ln/hcaptcha /
cookiesStringNoYour cookies that will be used by the employee to solve the captcha.
userAgentStringNoWe substitute your userAgent for the employee.
jsonNumber
By default: 0
No0 — the server will return a response in plain text
1 — the server will return a response in JSON format
proxyLineNoFormat: логин:пароль@151.142.23.32:3128
More information about the proxy [here] (/ru/api/proxy).
proxytypeStringNoYour proxy type: : HTTP, HTTPS, SOCKS4, SOCKS5.

http://api2.cap.guru/in.php?key=YOUR_APIKEY&method=hcaptcha&sitekey=93d2dffa-6cad-4031-9c00-4741a03c569d&pageurl=http://learn.captcha.guru/ln/hcaptcha/

OR

Request/response example

Request example

text
POST  http://api2.cap.guru/in.php
Host: api2.cap.guru
Content-Type: application/json
json
{
  "key": "YOUR_API_KEY",
  "method": "hcaptcha",
  "sitekey": "93d2dffa-6cad-4031-9c00-4741a03c569d",
  "pageurl": "http://learn.captcha.guru/ln/hcaptcha/",
  "json": 1
}

After sending the task to us, you should receive in response 'OK|65787087' or {"status":1,"request":"65787087"} if the request is successful. Please read [the full list of possible errors] (/en/api/code_error) in case you did not receive the task number.

Response example

json
{
 "status":1,
 "request":"65787087"
}

Getting a response

http://api2.cap.guru/res.php

ParameterTypeRequiredDescription
keyStringYesThe key can be viewed here
actionStringYesget — get response
idNumberYesID of captcha returned by in.php.
jsonNumber
By default: 0
No0 — the server will return a response in plain text
1 — the server will return a response in JSON format
Request/response example

Request example

text
POST  http://api2.cap.guru/res.php 
Host: api2.cap.guru
Content-Type: application/json
json
{
  "key": "YOUR_API_KEY",
  "action": "get",
  "id": "XXXXXXXXXXXXXXXXXX", // for example 65787087
  "json": 1
}

After sending the task to us, you should receive in response 'OK|03 AFY_a8W0B6yEBwfbmzp6OEUr...' or {"status":1,"request":"03 AFY_a8W0B6yEBwfbmzp6OEUr..."} if the request is successful. Please read the full list of possible errors in case you have not received a response.

Sample response

json
{
 "status":1,
 "request":"03AFY_a8W0B6yEBwfbmzp6OEUr4GYgdREy1DAFvvtyI6FUzf5qY_738XQ9lIFB7huVK9qia1f9z1GyGWRW3HVEzIGU5JrR-DY2xAkVvdH23lbpBqFAvH79Rr4Cs5dsxENk_zoTa1jn70ORvBVfBHA_Fb-s_kqQEpmaxSIwf0fe8FGJjhsBoygXnvrmCnBPTf5ua4LoYSi4f12XcZdyf5dBRYPq4pHBqk5Ic2cj8InwX9ima-v9UKA64ugnIiUNFOB_BCHJ1tieaB-td4_B4MC8gBCzPQwwO5I3IDDaT17JR3uIBKfc70w-2mtDnfPznyT4dHZapWtZizLkGs2BSUsfM4nR9OtjshuYB8lwJkSfz3ynaBYOCE7SBbtVHCsjGgO7YtSI-BArHxUcPQdFILmtnSCvPV5IWEF_NxurJ3QlUMkaNvC6kHCphZZoJXpt8Q5f-Uyi0-bhGd4wjtqRFglyzpn8lEmqkxF2ydlQO1Ketclutd-w5wuuxoDDHJE7d5msHPjXYtVvuFh8A2nyAU4i2I5KfcmdMd3F2g"
}