FunCaptchaTask : solving FunCaptcha
This type solving task FunCaptcha. Your app submits website address, public key and proxy.
The result of solving task is a token for the submit form.
Attention!
If the proxy is authorized by IP, then be sure to add 116.203.55.208 to the white list.
Object structure
Parameter | Type | Required | Value |
type | String | Yes | FunCaptchaTask |
websiteURL | String | Yes | Address of a webpage with FunCaptcha |
funcaptchaApiJSSubdomain | String | No | A special subdomain of funcaptcha.com, from which the JS captcha widget should be loaded. |
websitePublicKey | String | Yes | FunCaptcha website key. |
data | String | No | Additional parameter that may be required by FunCaptcha implementation. |
proxyType | String | Yes | Type of the proxy http - usual http/https proxy |
proxyAddress | String | Yes | Proxy IP address IPv4/IPv6. Not allowed to use:
|
proxyPort | Integer | Yes | Proxy port |
proxyLogin | String | No | Login for proxy which requires authorizaiton (basic) |
proxyPassword | String | No | Proxy password |
userAgent | String | Yes | Browser's User-Agent which is used in emulation. It is required that you use a signature of a modern browser. |
cookies | String | No | Additional cookies which we must use during interaction with target page. Format: cookiename1=cookievalue1; cookiename2=cookievalue2 |
Request example
Address https://api.capmonster.cloud/createTask
{
"clientKey":"dce6bcbb1a728ea8d871de6d169a2057",
"task":
{
"type":"FunCaptchaTask",
"websiteURL":"https://funcaptcha.com/fc/api/nojs/?pkey=69A21A01-CC7B-B9C6-0F9A-E7FA06677FFC",
"funcaptchaApiJSSubdomain":"mywebsite-api.funcaptcha.com",
"data": "{\"blob\":\"dyXvXANMbHj1iDyz.Qj97JtSqR2n%2BuoY1V%2FbdgbrG7p%2FmKiqdU9AwJ6MifEt0np4vfYn6TTJDJEfZDlcz9Q1XMn9przeOV%2FCr2%2FIpi%2FC1s%3D\"}",
"websitePublicKey":"69A21A01-CC7B-B9C6-0F9A-E7FA06677FFC"
"proxyType":"http",
"proxyAddress":"8.8.8.8",
"proxyPort":8080,
"proxyLogin":"proxyLoginHere",
"proxyPassword":"proxyPasswordHere",
"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.132 Safari/537.36"
}
}
Response example
{
"errorId":0,
"taskId":407533072
}
Getting result
Use the method getTaskResult to request answer for FunCaptcha. You will get response within 10 - 30 secs period depending on service workload.
Property | Type | Description |
token | String | FunCaptcha token that needs to be substituted into the form. |
Example:
{
"errorId":0,
"status":"ready",
"solution":
{
"token":"36859d1086acb06e7.08293101|r=ap-southeast-1|metabgclr=%23ffffff|guitextcolor=%23555555|metaiconclr=%23cccccc|meta=3|pk=69A21A01-CC7B-B9C6-0F9A-E7FA06677FFC|injs=https://funcaptcha.com/fc/api/nojs/?pkey=69A21A01-CC7B-B9C6-0F9A-E7FA06677FFC|rid=11|cdn_url=https://cdn.funcaptcha.com/fc|surl=https://funcaptcha.com"
}
}