Step 1 : Creating a Task
To bypass FunCaptcha, the first step involves creating a task with the createTask method. This requires you to provide certain details like the type of task, the URL of the website using FunCaptcha, the public domain key, and more. Here's an overview of the task object structure:
{
"type": "FunCaptchaTask",
"websiteURL": "URL of the website using FunCaptcha",
"websitePublicKey": "Public domain key",
"funcaptchaApiJSSubdomain": "A special subdomain of funcaptcha.com",
"data": "Additional parameter that may be required by FunCaptcha",
"proxy": "Proxy details",
"userAgent": "Browser's User-Agent used in emulation"
}
You can send a POST request to create a task using the Capsolver API like this:
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "FunCaptchaTask",
"websiteURL": "https://funcaptcha.com/",
"websitePublicKey": "00000000-0000-0000-0000-000000000000",
"proxy": "Your_own_proxy"
}
}
Once you've submitted the task, you should receive a 'Task ID' in the response if it's successful.
Step 2 : Getting Results
After you've created the task, you can retrieve the result using the getTaskResult method. Depending on the system load, the results can be obtained within an interval of 1 to 20 seconds.
Here's an example of a POST request to get the task result:
POST https://api.capsolver.com/getTaskResult
Host: api.capsolver.com
Content-Type: application/json
{
"clientKey": "YOUR_API_KEY",
"taskId": "Task ID received from the createTask method"
}
Once the task status is ready, you should receive the result of the FunCaptcha challenge in the response.