DocumentationAPI v1
Back to All Task Types
Captcha Token•Token & Cookie Bypass~1.9s avg99.0% accuracy$0.95 / 1k

Friendly Captcha (Beta)

POST/api/v1/createTask
POST/api/v1/getTaskResult

Automated token solving for Friendly Captcha v1 (widget.module.min.js) and v2 (site.min.js). Returns a ready token for frc-captcha-solution or frc-captcha-response.

Browse the full 34-type visual matrix including proxy rules and aliases.All Task Types →

Supported Task Types & Modes

Task TypeModeRecommended ForRate / 1k
FriendlyCaptchaTaskProxylessProxyless (v1: friendlycaptcha)Standard Friendly Captcha v1 & v2 widgets without custom proxy$0.95
FriendlyCaptchaTaskProxy OptionalTargets enforcing IP consistency between puzzle creation and form submission$1.00
How to Locate Required Parameters
  1. Inspect the target form DOM and locate the element containing data-sitekey (e.g. FFMGEMAD2K3JJ35P).
  2. Check Network DevTools for the Friendly Captcha script URL (widget.module.min.js for v1 or site.min.js for v2) and pass it in api_get_lib.
  3. Submit POST /api/v1/createTask and poll POST /api/v1/getTaskResult until status is ready.
  4. Submit solution.token inside the frc-captcha-solution (v1) or frc-captcha-response (v2) form field.

Request Parameters

ParameterTypeRequiredDescription
task.typestringRequired
Use FriendlyCaptchaTaskProxyless, FriendlyCaptchaTask, or canonical v1 name "friendlycaptcha".
Example: "FriendlyCaptchaTaskProxyless"
websiteURLstringRequired
Full URL of the page displaying the Friendly Captcha widget.
Example: "https://example.com/login"
websiteKeystringRequired
The Friendly Captcha data-sitekey value.
Example: "FFMGEMAD2K3JJ35P"
api_get_libstringOptional
Recommended: exact widget script URL loaded by the target page (v1 or v2).
Example: "https://cdn.jsdelivr.net/npm/friendly-challenge@0.9.19/widget.module.min.js"
userAgentstringOptional
Browser User-Agent header to match when submitting the solution.
Example: "Mozilla/5.0 (Windows NT 10.0; Win64; x64)..."
proxyobjectOptional
Optional HTTP/HTTPS/SOCKS4/SOCKS5 proxy (ignored by *Proxyless aliases).
Example: {"type":"http","host":"203.0.113.7","port":8080}

Request Examples

Create & Poll Task
curl -X POST https://api.byecap.org/api/v1/createTask \
  -H "Content-Type: application/json" \
  -d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
      "type": "FriendlyCaptchaTaskProxyless",
      "websiteURL": "https://example.com/login",
      "websiteKey": "FFMGEMAD2K3JJ35P",
      "api_get_lib": "https://cdn.jsdelivr.net/npm/friendly-challenge@0.9.19/widget.module.min.js"
    }
  }'

Response Format

200 OK — Ready Solution
{
  "errorId": 0,
  "status": "ready",
  "solution": {
    "token": "c48e91f2a7b0.9d14e8a3c6b2f5a1...",
    "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
  }
}
Response FieldTypeDescription
solution.tokenstringSubmit in frc-captcha-solution (v1) or frc-captcha-response (v2).
solution.user_agentstringUser-Agent used when generating the token; reuse it on submission.

Injecting Friendly Captcha Token into the Form

Browser / Client Integration
const input = document.querySelector('input[name="frc-captcha-solution"], input[name="frc-captcha-response"]');
if (input) input.value = solution.token;

Error Codes & Troubleshooting

Error CodeCommon CauseResolution
INVALID_SITEKEYIncorrect data-sitekey or wrong widget version script URL.Verify data-sitekey in DOM and pass the exact widget script URL in api_get_lib.
TASK_TIMEOUTTarget puzzle endpoint did not respond within the 120s deadline.Auto-refunded 100%. Retry with a fresh request.
Best Practices & Billing Protection
  • Always pass api_get_lib when available so v1 and v2 endpoints are matched immediately.
  • Reuse solution.user_agent in your HTTP request header when posting the form.
Need custom concurrency or a dedicated model? View Pricing & Enterprise Plans →