Skip to main content

Prerequisites

Step 1: Create a Task

Send a POST request to create a new solving task:
import requests

response = requests.post("https://api.funbypass.com/createTask", json={
    "clientKey": "FUN-your-api-key",
    "task": {
        "type": "FunCaptchaTask",
        "websiteURL": "https://example.com",
        "websitePublicKey": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
        "websiteSubdomain": "client-api",
        "proxy": "http://user:pass@ip:port"
    }
})

data = response.json()
task_id = data["taskId"]
print(f"Task created: {task_id}")
Response:
{
  "errorId": 0,
  "taskId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "status": "created"
}

Step 2: Poll for the Result

Wait a few seconds, then poll for the result:
import time

while True:
    result = requests.get(f"https://api.funbypass.com/getTaskResult/{task_id}").json()

    if result["status"] == "ready":
        print(f"Token: {result['solution']['token']}")
        break
    elif result.get("errorId", 0) != 0:
        print(f"Error: {result['errorCode']}")
        break

    time.sleep(0.5)
Response (solved):
{
  "errorId": 0,
  "solution": {
    "token": "arkose_token_string..."
  },
  "taskId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "status": "ready"
}

Step 3: Use the Token

Use the returned token value in your target application where the Arkose/FunCaptcha token is required.

Next Steps