What a proxy does for CapSolver
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 CapSolver
A residential proxy with a sticky session. Give CapSolver the same username you use for your own requests.
The values to enter in CapSolver
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 CapSolver
- Choose the task type that is not marked
ProxyLess. - Add one
proxyfield holding the type, host, port, username and password, separated by colons. - Send the request that uses the token through the same proxy.
Code: CapSolver through a proxy
The proxy part of a task
curl -s https://api.capsolver.com/createTask -H "Content-Type: application/json" -d '{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "ReCaptchaV2Task",
"websiteURL": "https://example.com/login",
"websiteKey": "SITE_KEY",
"proxy": "http:resi.piratproxies.com:8080:USERNAME-country-us-time-600-session-a1b2c3d4: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 CapSolver rotate IPs or keep one?
Use a sticky session and hand CapSolver 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 CapSolver will not connect
- The string starts with the type. For SOCKS5 write
socks5:resi.piratproxies.com:1080:followed by the username and password. - The parts are separated by colons, so check the string has exactly five of them: type, host, port, username, password.
- 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.
CapSolver and proxies: questions
Which PiratProxies plan suits CapSolver best?
A residential proxy with a sticky session. Give CapSolver the same username you use for your own requests.
Words used in this guide: captcha, captcha solver, sticky session, ip reputation.
CapSolver 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.