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:
{
"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:
{
"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:
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);
from sursolver import SurSolver, TaskType
API_KEY = "YOUR_API_KEY"
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"
)
client = SurSolver(API_KEY)
result = client.solve(
{
"type": TaskType.ProsopoTokenProxyLess,
"websiteURL": "https://example.com/login",
"websiteKey": "5E7QGuzYgLJMH6qXQiCw62AUuLxPXRs1E6jitV4w8zTjDcKr",
"userAgent": USER_AGENT,
}
)
print(result.solution["token"])
package main
import (
"context"
"fmt"
"log"
sursolver "github.com/sursolver/sursolver-go"
)
const (
APIKey = "YOUR_API_KEY"
UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36"
)
func main() {
client, err := sursolver.New(APIKey)
if err != nil {
log.Fatal(err)
}
result, err := client.Solve(context.Background(), sursolver.Task{
"type": sursolver.TaskTypeProsopoTokenProxyLess,
"websiteURL": "https://example.com/login",
"websiteKey": "5E7QGuzYgLJMH6qXQiCw62AUuLxPXRs1E6jitV4w8zTjDcKr",
"userAgent": UserAgent,
})
if err != nil {
log.Fatal(err)
}
fmt.Println(result.Solution["token"])
}
use serde_json::json;
use sursolver::{Client, task_types};
const API_KEY: &str = "YOUR_API_KEY";
const USER_AGENT: &str = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36";
#[tokio::main]
async fn main() -> Result<(), sursolver::Error> {
let client = Client::new(API_KEY)?;
let result = client
.solve(&json!({
"type": task_types::PROSOPO_TOKEN_PROXY_LESS,
"websiteURL": "https://example.com/login",
"websiteKey": "5E7QGuzYgLJMH6qXQiCw62AUuLxPXRs1E6jitV4w8zTjDcKr",
"userAgent": USER_AGENT,
}))
.await?;
println!("{}", result.solution["token"]);
Ok(())
}
<?php
require __DIR__ . '/vendor/autoload.php';
use SurSolver\Client;
use SurSolver\TaskTypes;
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';
$client = new Client(API_KEY);
$result = $client->solve([
'type' => TaskTypes::PROSOPO_TOKEN_PROXY_LESS,
'websiteURL' => 'https://example.com/login',
'websiteKey' => '5E7QGuzYgLJMH6qXQiCw62AUuLxPXRs1E6jitV4w8zTjDcKr',
'userAgent' => USER_AGENT,
]);
echo $result->solution['token'];
require "sursolver"
API_KEY = "YOUR_API_KEY"
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"
client = SurSolver::Client.new(API_KEY)
result = client.solve(
"type" => SurSolver::TaskTypes::PROSOPO_TOKEN_PROXY_LESS,
"websiteURL" => "https://example.com/login",
"websiteKey" => "5E7QGuzYgLJMH6qXQiCw62AUuLxPXRs1E6jitV4w8zTjDcKr",
"userAgent" => USER_AGENT
)
puts result.solution["token"]
import com.sursolver.SolveResult;
import com.sursolver.SurSolverClient;
import com.sursolver.TaskTypes;
import java.util.Map;
public class QuickStart {
static final String API_KEY = "YOUR_API_KEY";
static final String 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";
public static void main(String[] args) throws InterruptedException {
SurSolverClient client = SurSolverClient.create(API_KEY);
SolveResult result = client.solve(Map.of(
"type", TaskTypes.ProsopoTokenProxyLess,
"websiteURL", "https://example.com/login",
"websiteKey", "5E7QGuzYgLJMH6qXQiCw62AUuLxPXRs1E6jitV4w8zTjDcKr",
"userAgent", USER_AGENT));
System.out.println(result.solution().get("token"));
}
}
using System.Text.Json.Nodes;
using SurSolver;
const string ApiKey = "YOUR_API_KEY";
const string UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36";
var client = new SurSolverClient(ApiKey);
var result = await client.SolveAsync(new JsonObject
{
["type"] = TaskTypes.ProsopoTokenProxyLess,
["websiteURL"] = "https://example.com/login",
["websiteKey"] = "5E7QGuzYgLJMH6qXQiCw62AUuLxPXRs1E6jitV4w8zTjDcKr",
["userAgent"] = UserAgent,
});
Console.WriteLine(result.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 |