> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vast.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# FunCaptcha (Arkose Labs)

> Solve Arkose Labs FunCaptcha challenges with VastCap's API.

## Service Details

* **Service ID**: `funcaptcha`
* **Price**: \$0.0008 $per solve$ (\$0.80 per 1000 solves)
* **Average Solve Time**: 15 seconds
* **Success Rate**: 90%

## Required Parameters

<ParamField body="preset" type="string" required>
  The preset parameter of the FunCaptcha for the target website.
</ParamField>

<ParamField body="proxy" type="string" required>
  Proxy in format `login:password@ip_address:port`. Required for accurate solving.
</ParamField>

<ParamField body="data.blob" type="string" required>
  The blob parameter extracted from the FunCaptcha challenge.
</ParamField>

## Optional Parameters

<ParamField body="userAgent" type="string">
  The User-Agent header that will be used when solving the captcha. Must match the one used in your browser.
</ParamField>

<ParamField body="data.custom_cookies" type="object">
  Custom cookies required by some websites. Format is a key-value object with cookie names and values.
</ParamField>

## Example Request

```bash theme={null}
curl -X POST https://captcha.vast.sh/api/solver/createTask \
  -H "Content-Type: application/json" \
  -d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
      "type": "FunCaptchaTask",
      "preset": "snapchat_register",
      "proxy": "user:pass@ip:port",
      "data": {
        "blob": "eyJ0eXAiOiJKV1Qu...",
        "custom_cookies": {
          "cookie_name1": "cookie_value1",
          "cookie_name2": "cookie_value2"
        }
      }
    }
  }'
```

## Solution Format

```json theme={null}
{
  "token": "7599f0be0d824cfbb....."
}
```

## Supported Sites

Supported sites can be found at [https://captcha.vast.sh/dashboard/submit-preset](https://captcha.vast.sh/dashboard/submit-preset)

## Integration Examples

### Python

```python theme={null}
import requests
import time

# Create a task
task_data = {
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "FunCaptchaTask",
        "preset": "snapchat_register",
        "proxy": "user:pass@ip:port",
        "data": {
            "blob": "eyJ0eXAiOiJKV1Qu...",
            "custom_cookies": {
                "cookie_name1": "cookie_value1",
                "cookie_name2": "cookie_value2"
            }
        }
    }
}

response = requests.post(
    "https://captcha.vast.sh/api/solver/createTask", 
    json=task_data
)
task_id = response.json()["taskId"]

# Get the result
while True:
    result_data = {
        "clientKey": "YOUR_API_KEY",
        "taskId": task_id
    }
    result = requests.post(
        "https://captcha.vast.sh/api/solver/getTaskResult", 
        json=result_data
    ).json()
    
    if result.get("status") == "ready":
        # Use the token in your form submission
        funcaptcha_token = result["solution"]["token"]
        break
    
    time.sleep(3)  # Wait before trying again
```

## Notes

* The solution token is typically valid for 2-3 minutes after being issued.
* Extracting the blob parameter requires some JavaScript knowledge. Refer to our integration guides for more information.
* Proxy usage is required for accurate solving.
* Custom cookies may be required for some websites to properly validate the token. These should be extracted from your browser session.
* Contact us if you need support for additional sites not listed above.
