Skip to content
Programmatic guide

reCAPTCHA Enterprise solver for Playwright Python

reCAPTCHA Enterprise scores every request, then your backend chooses whether to accept it. A Sonic-issued token consistently lands in the 0.7–0.9 confidence band so your business logic stays simple.

Python · Playwright

Runnable example

from playwright.async_api import async_playwright
from captchasonic import CaptchaSonic

async with async_playwright() as p:
    browser = await p.chromium.launch()
    page = await browser.new_page()
    await page.goto('https://example.com/checkout')

    sonic = CaptchaSonic('YOUR_API_KEY')
    result = sonic.solve(
        type='RecaptchaV3EnterpriseTaskProxyless',
        website_url=page.url,
        website_key='6Lc-...',
        page_action='checkout',
        enterprise_payload={'s': 'optional-session-token'},
        min_score=0.7,
    )

    await page.evaluate(
        '(t) => { document.querySelector("[name=g-recaptcha-response]").value = t }',
        result.gRecaptchaResponse,
    )
    await page.click('form button[type=submit]')

Replace YOUR_API_KEY with a real key from your dashboard. The token is good for one form submission.

FAQ

What's the difference vs reCAPTCHA v3 standard?
Enterprise adds the createAssessment server flow and accepts an Enterprise-specific payload (the "s" session token + extra context). Tokens validate against assessments.create instead of siteverify.
Does the action parameter still bind the token?
Yes — Enterprise enforces action binding the same way v3 does. The action in your createAssessment call must match the one Sonic embedded in the token.
What score should I expect?
Trailing-30-day average is 0.79 across action contexts. Sonic surfaces the score on the response so your backend can drop tokens below your business threshold without round-tripping to Google.

How CaptchaSonic compares for this captcha

Feature-by-feature against the four most-mentioned alternatives. Independently benchmarked; numbers refresh quarterly.

FeatureCaptchaSonic2CaptchaCapSolverAnti-CaptchaCapMonster Cloud
AI / ML solver (no human relay)
reCAPTCHA v2 / v3 / Enterprise
Avg. solve time (reCAPTCHA v2)< 3s~12s~8s~10s~7s
Success rate (trailing 30d)99.9%~95%~98%~95%~97%
Price per 1k — reCAPTCHA v2$0.80$2.99$0.90$2.00$1.00
Proxy + proxyless modes
Free trial credits
SDK languages (Py, Node, Go, C#, Java, PHP)66454
Selenium / Puppeteer / Playwright examples
Browser extension
Webhook callbacks
99.9% uptime SLA

Yes / No / Partial reflect publicly documented support. Pricing and solve-time figures snapshot the published rate at the time this page was last updated.

Related guides