Looking for an overview? See the hCaptcha product page

hCaptcha Accessibility Verification Interface

Human-in-the-Loop Requirement

This service is for accessibility testing and QA verification only. By using this API, you confirm: "I am NOT using this service for fully automated AI resolution in violation of the target service's 'No AI/Bot' clauses."

hCaptcha provides invisible and interactive verification challenges. The service returns a h-captcha-response token in a hidden textarea upon completion. MeshPrivacy provides accessibility interfaces for QA teams to verify captcha integration in their applications.

Token Details

PropertyValue
Token Fieldh-captcha-response
Token Length~2000+ characters
Token TTLApproximately 2 hours
Callbackdata-callback required

Real-time API status: trust.meshprivacy.com

Configuration

hcaptcha.html
<!-- hCaptcha invisible mode configuration -->
<div class="h-captcha"
     data-sitekey="[sitekey]"
     data-size="invisible"
     data-callback="onSubmit">
</div>

<script>
function onSubmit(token) {
  // Token received - submit form
  document.getElementById('h-captcha-response').value = token;
  document.forms[0].submit();
}
</script>

Challenge Types

Passive (Invisible) Most Common

Background behavioral verification without visible challenge. Callback triggers automatically when risk is low.

Active (Interactive)

Visual challenge displayed when behavioral signals indicate higher risk. Requires image selection or other interactive verification.

Enterprise

Combined invisible and passive modes with enhanced detection. May fall back to active challenge based on risk scoring.

Service Variants

hCaptcha resolves through two distinct service IDs in MeshPrivacy. Pick the variant that matches your target.

hcaptchaEnterprise

Standard hCaptcha Enterprise solver. Pass your own proxy and user agent.

FieldTypeRequiredDescription
urlstringYesPage URL containing hCaptcha widget
sitekeystringYeshCaptcha site key (UUID format)
proxy_configstringNoProxy in http://user:pass@ip:port format
user_agentstringNoCustom user agent
hcaptcha.js
// Submit hCaptcha (Enterprise) task — QA/Testing only
const response = await fetch('https://api.meshprivacy.com/v1/tasks/submit', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json', 'X-API-Key': API_KEY },
  body: JSON.stringify({
    service: 'hcaptcha',
    url: 'https://target-site.com/',                     // required
    sitekey: 'abc123-def456...',                         // required - from data-sitekey
    proxy_config: 'http://user:pass@ip:port',            // optional
    user_agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)...' // optional
  })
});
const { task_id } = await response.json();
const result = await fetch(`https://api.meshprivacy.com/v1/tasks/result/${task_id}`, {
  headers: { 'X-API-Key': API_KEY }
});
const { token } = await result.json();
// Submit token as h-captcha-response field value

hcap_extendedBeta — internal proxy

Beta variant for harder hCaptcha deployments. Uses MeshPrivacy's internal proxy pool — do not pass proxy_config.

FieldTypeRequiredDescription
urlstringYesPage URL containing hCaptcha widget
sitekeystringYeshCaptcha site key
hcap-extended.js
// Submit hCaptcha Extended (Beta) — uses internal proxy
const response = await fetch('https://api.meshprivacy.com/v1/tasks/submit', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json', 'X-API-Key': API_KEY },
  body: JSON.stringify({
    service: 'hcap_extended',
    url: 'https://target-site.com/',                     // required
    sitekey: 'abc123-def456...'                          // required
    // Note: hcap_extended runs through a managed proxy.
    // Do NOT pass proxy_config — it is ignored for this variant.
  })
});

FAQ

hCaptcha tokens have a generous TTL of approximately 2 hours. However, some sites may verify tokens faster, so submit promptly for best results.

Related Services