SurSolver

Prosopo Procaptcha solver API

Send the Procaptcha site key and page URL, then submit the verified token through the form that owns the widget.

Updated

$0.70 / 1K tasksCharged when a task is accepted

On this page

Prosopo task at a glance

ProsopoTokenProxyLess and ProsopoToken solve a Prosopo Procaptcha widget and return the verified callback token.

Field Required Notes
type yes ProsopoTokenProxyLess, or ProsopoToken with your proxy
websiteURL yes The full URL that loads the widget
websiteKey yes The SS58 site key; it starts with 5
userAgent yes Your browser's User-Agent; keep it when you submit the token
proxy ProsopoToken only Your proxy, when the site checks the solving IP

The key is an SS58 address, not a free-form label. The userAgent is an input only; no result returns one. The Prosopo API reference has the request and result examples.

Recognise Procaptcha and read the key

A page with Procaptcha has a container with the procaptcha class and a data-sitekey attribute, and loads js.prosopo.io/js/procaptcha.bundle.js. Procaptcha is Prosopo's privacy-focused alternative to reCAPTCHA. It works in tiers: a frictionless check, a proof-of-work step, and an image selection for suspicious visitors.

Open the Elements panel and search for data-sitekey. When the widget is rendered from JavaScript, the key is the siteKey option of the procaptcha.render(…) call instead. The task handles frictionless passes and image-selection challenges.

Submit procaptcha-response

Put solution.token in the field named procaptcha-response and post the form together with it. If the page uses a callback, call the callback it passed to the widget with the token. The site's server then verifies the token against Prosopo with its own secret key.

Tokens are short-lived. Solve inline with the request you are about to make and submit right away. A failed or timed-out task returns its original charge once.

When to add a proxy

Try ProsopoTokenProxyLess first. Some sites require the IP that solved the widget to be the IP that submits the token. When a valid-looking token is rejected while a manual flow works, switch to ProsopoToken, send your proxy and submit through the same proxy.

Each widget has its own key and secret pair. A key copied from another site produces a token that this site rejects. The Prosopo guide covers session-bound sites, the full request and replay flow, and a rejection checklist.

Request and ready result

Send this to POST /createTask, using the complete SS58 site key from the actual widget. These values are illustrative:

snippet.json
{
  "clientKey": "sur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "task": {
    "type": "ProsopoTokenProxyLess",
    "websiteURL": "https://example.com/signup",
    "websiteKey": "5E7QGuzYgLJMH6qXQiCw62AUuLxPXRs1E6jitV4w8zTjDcKr",
    "userAgent": "YOUR_SUPPORTED_USER_AGENT"
  }
}

Poll POST /getTaskResult with clientKey and the returned taskId. A completed widget returns:

snippet.json
{
  "errorId": 0,
  "status": "ready",
  "solution": {
    "token": "<verified-procaptcha-token>"
  }
}

The integration follows frictionless verification and supported image-selection rounds. An image answer by itself is not this credential: the provider must complete verification and issue the callback token. Challenge types the connected image solver cannot answer fail rather than yielding a guessed token.

Examples in your language

The official client wraps createTask and polling in one solve call; each language tab is its Quick start with this captcha's request, and prints token. Add it to procaptcha-response, post the form with its other fields, and check the application response:

quickstart.ts
npm install sursolver
import { SurSolver, TaskType } from 'sursolver';

const API_KEY = 'YOUR_API_KEY';
const USER_AGENT =
  'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36';

const client = new SurSolver(API_KEY);

const { solution } = await client.solve({
  type: TaskType.ProsopoTokenProxyLess,
  websiteURL: 'https://example.com/login',
  websiteKey: '5E7QGuzYgLJMH6qXQiCw62AUuLxPXRs1E6jitV4w8zTjDcKr',
  userAgent: USER_AGENT,
});
console.log(solution.token);

For callback-driven pages, give the token to the callback the page passed to procaptcha.render, then trigger its normal submit action. Do not assume that setting a hidden input alone updates a framework's internal state.

Session-bound verification

Some applications bind verification to a session identifier created by their own widget. This task has no session-ID input, so an independently solved token cannot satisfy every such application. A proxy can align the exit IP; it does not copy that missing application state. Test the actual verification response before treating a ready token as accepted.

Troubleshooting

Symptom Check Correction
Invalid site key A short label or another widget's key was supplied Copy the complete SS58 key beginning with 5
Image challenge fails The requested category or challenge is unsupported Inspect the terminal failure rather than submitting an unverified answer
Verification returns false immediately Site key, session binding or submitting IP differs Match the target key; use a shared proxy when required; account for session-bound integrations
Token is ready but the form does nothing The page submits through a callback or framework state Use the page's registered callback and normal submit action
A once-valid token is rejected later The credential expired or was already consumed Create and submit one fresh result per attempt

FAQ

How do I solve Prosopo Procaptcha automatically?

Send websiteURL, the SS58 websiteKey and your browser userAgent. The integration handles frictionless passes and supported image-selection challenges, then returns the widget callback token.

Where is the Prosopo site key?

In the page HTML it is the data-sitekey attribute of the element with the procaptcha class. If you cannot see it there, reload with the Network tab open and look for requests to prosopo.io that carry the key, or a Prosopo-Site-Key request header.

Do I need a proxy for Procaptcha?

Not by default: ProsopoTokenProxyLess solves from SurSolver infrastructure. Use ProsopoToken with your own proxy when the target site validates the IP that solved the widget, and submit through that same proxy.

Why does my Procaptcha token verify as false?

Usual causes are a token that sat unused for too long, a sitekey taken from a different site, or a site that ties each token to a session id rendered in its own widget. A token produced outside that session cannot pass such a check.

Can I reuse a sitekey from one site on another?

No. Every widget has its own sitekey and secret pair, so a key copied from site A will not produce a token that site B accepts. Read the key from the page you are actually submitting to.