Proton Captcha
Proton Captcha is a security system used on Proton services to verify legitimate user activity and protect against automated actions. Proxy is required to solve this captcha type.
Examples of tasks
Below is an example of the Proton Captcha task type currently supported by CapMonster Cloud:

Request parameters
type<string>requiredCustomTask
class<string>requiredproton
websiteURL<string>requiredThe address of the main page where the captcha is located.
HumanVerificationToken (inside metadata)<string>requiredToken from the response.
pageAction (inside metadata)<string>requiredAction on the site: login or signup
userAgent<string>optionalBrowser User-Agent. Use the current value supported by CapMonster Cloud: userAgentPlaceholder
You can get the latest value at: https://capmonster.cloud/api/useragent/actual.
proxyType<string>requiredhttp - regular http/https proxy;
https - try this option only if "http" doesn't work (required for some custom proxies);
socks4 - socks4 proxy;
socks5 - socks5 proxy.
proxyAddress<string>requiredIPv4/IPv6 proxy IP address. Not allowed:
- using transparent proxies (where you can see the client's IP);
- using proxies on local machines.
proxyPort<integer>requiredProxy port.
proxyLogin<string>requiredProxy server login.
proxyPassword<string>requiredProxy server password.
Create task method
https://api.capmonster.cloud/createTask
Request example
{
"clientKey": "API_KEY",
"task": {
"type": "CustomTask",
"class": "proton",
"websiteURL": "https://yourwebsite.com/",
"userAgent": "userAgentPlaceholder",
"metadata": {
"HumanVerificationToken": "your-verification-token",
"pageAction": "login"
},
"proxyType": "http",
"proxyAddress": "8.8.8.8",
"proxyPort": 8080,
"proxyLogin": "proxyLoginHere",
"proxyPassword": "proxyPasswordHere"
}
}
Response example
{
"errorId": 0,
"taskId": 407533072
}
Get task result method
Use the method getTaskResult to obtain the Proton Captcha solution.
https://api.capmonster.cloud/getTaskResult
Request example
{
"clientKey":"API_KEY",
"taskId": 407533072
}
Response example
{
"errorId": 0,
"cost": 0.001,
"status": "ready",
"solution": {
"data": {
"tokens": "TOKEN_VALUE_HERE....."
}
}
}
How to find the HumanVerificationToken
- Open the page with Proton Captcha.
- Open Developer Tools (F12 or right-click → Inspect).
- Go to the Network tab and perform the action that triggers the captcha.
- Look for a request that returns the
HumanVerificationTokenin the response body. - Copy the token value and pass it in the
metadata.HumanVerificationTokenfield.
How to find the pageAction
The pageAction parameter depends on the action being performed on the website:
- Use
loginwhen the user is logging in - Use
signupwhen the user is creating a new account
Use the SDK library
- Python
- C#
- Rust
- Go
- PHP
Show code
# https://github.com/CapMonsterCloud/capmonster-python-captcha-solver
import asyncio
from capmonstercloudclient import CapMonsterClient, ClientOptions
from capmonstercloudclient.requests import ProtonCustomTaskRequest
from capmonstercloudclient.requests.proxy_info import ProxyInfo
API_KEY = "YOUR_API_KEY" # Specify your CapMonster Cloud API key
async def solve_proton():
client = CapMonsterClient(
options=ClientOptions(api_key=API_KEY)
)
# Proton Captcha can only be solved using your own proxy
proxy = ProxyInfo(
proxyType="http",
proxyAddress="123.45.67.89",
proxyPort=8080,
proxyLogin="username",
proxyPassword="password",
)
proton_request = ProtonCustomTaskRequest(
websiteUrl="https://yourwebsite.com/page-with-proton",
metadata={
"HumanVerificationToken": "your-verification-token",
"pageAction": "login",
},
userAgent="userAgentPlaceholder",
proxy=proxy,
)
# You can check your balance if necessary
balance = await client.get_balance()
print("Balance:", balance)
result = await client.solve_captcha(proton_request)
print("Solution:", result)
asyncio.run(solve_proton())
Show code
// https://github.com/CapMonsterCloud/capmonster-dotnet-captcha-solver
using System;
using System.Threading.Tasks;
using Zennolab.CapMonsterCloud;
using Zennolab.CapMonsterCloud.Requests;
class Program
{
static async Task Main(string[] args)
{
// Specify your CapMonster Cloud API key
var clientOptions = new ClientOptions
{
ClientKey = "YOUR_API_KEY"
};
var cmCloudClient = CapMonsterCloudClientFactory.Create(clientOptions);
// Proton Captcha can only be solved using your own proxy
var protonRequest = new ProtonCustomTaskRequest(
humanVerificationToken: "your-verification-token",
pageAction: "login")
{
WebsiteUrl = "https://yourwebsite.com/page-with-proton",
UserAgent = "userAgentPlaceholder",
Proxy = new ProxyContainer(
"123.45.67.89",
8080,
ProxyType.Http,
"username",
"password"
)
};
// You can check your balance if necessary
var balance = await cmCloudClient.GetBalanceAsync();
Console.WriteLine("Balance: " + balance);
var protonResult = await cmCloudClient.SolveAsync(protonRequest);
Console.WriteLine("Solution: " + string.Join(", ", protonResult.Solution.Data));
}
}
Show code
For Rust, use the official SDK: crates.io and Github.
// https://github.com/CapMonsterCloud/capmonster-rust-captcha-solver
use capmonstercloud_client::requests::{ProtonRequest};
use capmonstercloud_client::{CapMonsterClient, ClientOptions, ProxyInfo, ProxyType};
#[tokio::main]
async fn main() -> capmonstercloud_client::Result<()> {
// Set your CapMonster Cloud API key
let client = CapMonsterClient::new(ClientOptions::new("YOUR_API_KEY"))?;
// a proxy is required for Proton Captcha
let proxy = ProxyInfo::new(ProxyType::Http, "123.45.67.89", 8080)
.with_auth("username", "password");
let request = ProtonRequest::new(
"https://yourwebsite.com/page-with-proton",
"your-verification-token",
"login",
proxy,
)
.with_user_agent("userAgentPlaceholder");
let solution = client.solve_captcha(&request).await?;
println!("Solution: {solution}");
Ok(())
}
Show code
For Go, use the official SDK: Github.
// https://github.com/CapMonsterCloud/capmonster-go-captcha-solver
package main
import (
"context"
"fmt"
"log"
capmonster "github.com/CapMonsterCloud/capmonster-go-captcha-solver/v2"
)
func main() {
ctx := context.Background()
// Specify your CapMonster Cloud API key
client := capmonster.New("YOUR_API_KEY")
// Proton Captcha can only be solved using your own proxy
proxy := &capmonster.Proxy{
Type: capmonster.ProxyHTTP,
Address: "123.45.67.89",
Port: 8080,
Login: "username",
Password: "password",
}
request := capmonster.ProtonRequest{
WebsiteURL: "https://yourwebsite.com/page-with-proton",
Metadata: capmonster.ProtonMetadata{HumanVerificationToken: "your-verification-token", PageAction: capmonster.ProtonPageActionLogin},
UserAgent: "userAgentPlaceholder",
Proxy: proxy,
}
// You can check your balance if necessary
balance, err := client.GetBalance(ctx)
if err != nil {
log.Fatal(err)
}
fmt.Printf("Balance: %.4f USD\n", balance)
solution, err := client.Solve(ctx, request)
if err != nil {
log.Fatal(err)
}
fmt.Println("Solution:", string(solution))
}
Show code
For PHP, use the official SDK: Github. It requires PHP 8.1+ with the curl and json extensions. Install it with Composer: composer require capmonstercloud/capmonster-client.
<?php
// https://github.com/CapMonsterCloud/capmonster-php-captcha-solver
require 'vendor/autoload.php';
use CapMonsterCloud\CapMonsterClient;
use CapMonsterCloud\ClientOptions;
use CapMonsterCloud\ProxyInfo;
use CapMonsterCloud\ProxyType;
use CapMonsterCloud\Requests\ProtonCustomTaskRequest;
// Specify your CapMonster Cloud API key
$client = new CapMonsterClient(new ClientOptions('YOUR_API_KEY'));
// Proton Captcha can only be solved using your own proxy
$proxy = new ProxyInfo(ProxyType::Http, '123.45.67.89', 8080, 'username', 'password');
$request = new ProtonCustomTaskRequest(
'https://yourwebsite.com/page-with-proton',
humanVerificationToken: 'your-verification-token',
pageAction: ProtonCustomTaskRequest::ACTION_LOGIN,
proxy: $proxy,
userAgent: 'userAgentPlaceholder',
);
$solution = $client->solve($request);
print_r($solution);
