Basilisk captcha
Basilisk captcha: parameters, request, response and the 2Captcha method of BasiliskTaskProxyless and BasiliskTask.
On this page
The Basilisk captcha: the widget with a site key. The answer is the captcha_response value the page sends.
| Status | coming soon |
| Type codes | BasiliskTaskProxyless — without a proxy; BasiliskTask — with your proxy |
| Proxy | optional: the second code takes your proxy |
| Also accepted as | BasiliskTaskProxyLess |
| Price | set when the type is switched on — see pricing |
Rules#
- The proxy code solves through your proxy, so the answer is issued for your IP address. See Proxies.
Parameters#
Fields of the task object in createTask:
ParameterDescription
typestringrequired- Task type:
BasiliskTaskProxyless,BasiliskTask. websiteURLstringrequired- Full address of the page with the captcha: http(s), up to 2048 characters, a public site.
websiteKeystringrequired- Site key of the widget on the page. Letters, digits and
_ - . :, up to 128 characters. userAgentstring- User-Agent of the browser that will use the answer, up to 512 characters.
proxyTypestringhttp(default),https,socks4orsocks5.proxyAddressstringfor proxy types- IP address or host name of the proxy. Private and local addresses are rejected.
proxyPortintegerfor proxy types- Proxy port, 1–65535.
proxyLoginstring- Proxy login, up to 256 characters. Stored encrypted.
proxyPasswordstring- Proxy password, up to 256 characters. Stored encrypted.
Request#
A BasiliskTaskProxyless task:
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "BasiliskTaskProxyless",
"websiteURL": "https://example.com/login",
"websiteKey": "SITE-KEY-1234"
}
}Response#
getTaskResult once the task is solved:
{
"errorId": 0,
"status": "ready",
"solution": {
"data": {
"captcha_response": "5620301f30daf284b829fba66fa9b3d0"
},
"userAgent": ""
},
"cost": "0.001500",
"ip": "198.51.100.7",
"createTime": 1793370000,
"endTime": 1793370012,
"solveCount": 1
}2Captcha in.php#
The same task through the 2Captcha API: method=basilisk, parameters → task fields:
| in.php | task |
|---|---|
pageurl | websiteURL |
sitekey | websiteKey |
useragent | userAgent |
res.php returns data.captcha_response of the solution as text (OK|…), or in request with json=1.