What a proxy does for CapMonster Cloud
Many sites tie a captcha token to the IP address that asked for it. If the service solves from its own address and you submit from yours, the token can be refused. Passing your proxy to the service makes both come from one address.
The right proxy type for CapMonster Cloud
A residential proxy with a sticky session, the same one your own client uses.
The values to enter in CapMonster Cloud
Every PiratProxies plan comes down to four values: host, port, username and password. Here they are for Residential; your own username and password are on your plan page.
| Host | resi.piratproxies.com |
|---|---|
| HTTP port | 8080 |
| SOCKS5 port | 1080 |
| Username | USERNAME |
| Password | shown on your plan page |
There is no separate country or session field: both are part of the username. Your plan page has a generator that writes it, and Targeting and sessions describes each piece.
Setting it up in CapMonster Cloud
- Create a task of a type that accepts a proxy.
- Fill in
proxyType,proxyAddress,proxyPort,proxyLoginandproxyPassword. - Use the same sticky username in the program that submits the token.
Code: CapMonster Cloud through a proxy
The proxy part of a task
curl -s https://api.capmonster.cloud/createTask -H "Content-Type: application/json" -d '{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "RecaptchaV2Task",
"websiteURL": "https://example.com/login",
"websiteKey": "SITE_KEY",
"proxyType": "http",
"proxyAddress": "resi.piratproxies.com",
"proxyPort": 8080,
"proxyLogin": "USERNAME-country-us-time-600-session-a1b2c3d4",
"proxyPassword": "PASSWORD"
}
}'Put your own login from the plan page in place of USERNAME and PASSWORD. The example calls an IP-check service, so what it prints is the address your request came from.
Should CapMonster Cloud rotate IPs or keep one?
Use a sticky session and hand CapMonster Cloud the very same username your own requests use: the session ID in it is what puts both on one IP address. If the username rotates, the token gets solved from one address and submitted from another, and sites that compare the two will refuse it.
Here is what a sticky username looks like:
USERNAME-country-us-time-600-session-a1b2c3d4When CapMonster Cloud will not connect
- If you use ZennoPoster with CapMonster Cloud, set the project's proxy and the task's proxy to the same line. See ZennoPoster.
- Error
407means the login was refused. Copy the username and password from your plan page once more, and make sure no space crept in and the username was not cut short. - An IP in the wrong country nearly always comes from the username, since the country code lives there. Other fixes.
CapMonster Cloud and proxies: questions
Which PiratProxies plan suits CapMonster Cloud best?
A residential proxy with a sticky session, the same one your own client uses.
Words used in this guide: captcha, captcha solver, sticky session, ip reputation.
CapMonster Cloud belongs to its own developers, and PiratProxies has no connection with them; we name it only to say what this guide covers. Follow the rules of the sites you visit and our acceptable use policy.