Skip to main content
Are you experiencing issues obtaining the token?
Contact support

Basilisk - FaucetPay Captcha

Warning!

This task will be performed using our proxy servers.

Request parameters

type<string>required

CustomTask


class<string>required

Basilisk


websiteURL<string>required

The address of the main page where the captcha is solved.


websiteKey<string>required

Can be found in the html code in the attribute data-sitekey of the captcha container or in the payload of a POST request to the https://basiliskcaptcha.com/challenge/check-site in the field site_key


userAgent<string>optional

User-Agent browser. Pass only the current UA from the Windows operating system. Now this is: userAgentPlaceholder

Create task method

POST
https://api.capmonster.cloud/createTask

Request

{
"clientKey": "API_KEY",
"task": {
"type": "CustomTask",
"class": "Basilisk",
"websiteURL": "https://domain.io/account/register",
"websiteKey": "b7890hre5cf2544b2759c19fb2600897",
"userAgent": "userAgentPlaceholder"
}
}

Response

{
"errorId":0,
"taskId":407533072
}

Get task result method

Use the method getTaskResult, to get the Basilisk solution.

POST
https://api.capmonster.cloud/getTaskResult

Request

{
"clientKey":"API_KEY",
"taskId": 407533072
}

Response

{
"errorId":0,
"status":"ready",
"solution": {
"data": {
"captcha_response": "5620301f30daf284b829fba66fa9b3d0"
},
"headers": {
"User-Agent": "userAgentPlaceholder"
}
}
}

How to Find All Required Parameters for Task Creation

Manually

  1. Open your website where the captcha appears in the browser.
  2. Right-click on the captcha element and select Inspect.

websiteKey

In the Network tab, filter requests using keywords related to captchas, such as site_key. These requests will contain the site_key parameter – a value used to identify the website during the captcha solving process:

site-key-basilisk

Automatically

A convenient way to automate the search for all necessary parameters. Some parameters are regenerated every time the page loads, so you'll need to extract them through a browser — either regular or headless (e.g., using Playwright). Since the values of dynamic parameters are short-lived, the captcha must be solved immediately after retrieving them.

Important!

The code snippets provided are basic examples for familiarization with extracting the required parameters. The exact implementation will depend on your captcha page, its structure, and the HTML elements/selectors it uses.

Show code (for browser)
// Look for an element with the data-sitekey attribute
const captchaElement = document.querySelector('[data-sitekey]');

// Extract the sitekey value
if (captchaElement) {
const siteKey = captchaElement.getAttribute('data-sitekey');
console.log('Found site-key:', siteKey);
} else {
console.log('site-key not found');
}
Show code (Node.js)
import { chromium } from 'playwright';

async function extractSiteKey() {
const browser = await chromium.launch({ headless: true });
const page = await browser.newPage();

const url = 'https://example.com';
await page.goto(url);

// Look for an element with the data-sitekey attribute
const captchaElement = await page.$('[data-sitekey]');

// Extract the sitekey value
if (captchaElement) {
const siteKey = await captchaElement.getAttribute('data-sitekey');
console.log('Found site-key:', siteKey);
} else {
console.log('site-key not found');
}

await browser.close();
}

extractSiteKey();

Use SDK Library

// https://github.com/ZennoLab/capmonstercloud-client-js

import { CapMonsterCloudClientFactory, ClientOptions, BasiliskRequest } from '@zennolab_com/capmonstercloud-client';

document.addEventListener('DOMContentLoaded', async () => {
const cmcClient = CapMonsterCloudClientFactory.Create(new ClientOptions({ clientKey: '<your capmonster.cloud API key>' }));
console.log(await cmcClient.getBalance());

const basiliskRequest = new BasiliskRequest({
websiteURL: 'https://example.com',
websiteKey: 'websiteKey',
});

console.log(await cmcClient.Solve(basiliskRequest));
});