NEWStandard createTask and in.php APIs. Change the address and you are connected.View API docs
GATESOLVER

Proxies and networking

What proxy format does a solving task accept?

A single URL string in the task's proxy field: scheme, credentials, host and port, written as http://user:pass@host:port.

The format

Task types that run through your proxy take a proxy field containing one string in URL form. The API docs show it as http://user:pass@host:port. That one string carries everything the solver needs: the protocol, your proxy username and password, the proxy's address and its port. There are no separate fields for host, port or login.

{"clientKey": "YOUR_API_KEY", "task": {"type": "DatadomeSliderTask", "proxy": "http://dd_worker:Xk7pQ2@192.0.2.88:8800",
          "websiteURL": "https://tickets.example.com/events/2291",
          "captchaUrl": "SLIDER_URL_COPIED_FROM_THE_BLOCK_PAGE",
          "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"}}

The slider URL is the address of the DataDome page on geo.captcha-delivery.com that your blocked request received, copied in full with its query string.

Which types use it

Typeproxy field
AntiCloudflareTaskrequired
DatadomeSliderTaskrequired
ReCaptchaV2Task, ReCaptchaV3Task and their Enterprise formsoptional, the reason to pick these over ProxyLess
AntiAwsWafTaskoptional
ProxyLess types and image typesnot used

For the required cases, the answer is a cookie bound to the proxy's IP, so use the same proxy for the requests that follow. The page on proxyless versus proxy tasks explains when the optional form helps.

Building the string safely

Passwords from proxy providers often include characters that break URL parsing. Encode the username and password parts before joining them:

from urllib.parse import quote

def task_proxy(host, port, user, password):
    return f"http://{quote(user, safe='')}:{quote(password, safe='')}@{host}:{port}"

print(task_proxy("192.0.2.88", 8800, "dd_worker", "p@ss:w/rd"))
# http://dd_worker:p%40ss%3Aw%2Frd@192.0.2.88:8800

Requirements for the proxy itself

  • Reachable from the internet. The solver connects from its own servers. A proxy on localhost or a private network address will not work.
  • Username and password, not an allowlist. An IP allowlist that only holds your server's address refuses the solver. See how proxy authentication works.
  • Sticky for the session. If your provider rotates the exit IP on each connection, the cookie earned on one IP fails on the next. Use a sticky session option so the IP stays the same through the solve and your requests; see rotating or sticky proxies.
  • Allowed to reach the target. Some providers block certain domains; the task then fails.

Common errors

A missing field, such as proxy on a type that requires it, returns ERROR_INVALID_TASK_DATA with the field name in the description. A malformed string or a proxy that refuses the connection ends the task as failed or unsolvable, which is not charged. Typical causes are a missing http:// prefix, a port typed into the host part, unencoded special characters, or a proxy account that ran out of traffic. Test the exact string with curl, using -x, before passing it to a task.

Keeping credentials tidy

The proxy credentials travel inside the task, so create a proxy user dedicated to solving and scraping rather than reusing your provider's main login. If a credential leaks, you rotate one sub-user, not your whole account. Also mask the password when you log task payloads, which many people do while debugging and forget to turn off.

A pre-flight check in code

A small validation step before each proxy task saves failed tasks and confusing errors. Parse the string with your language's URL parser and confirm four things: the scheme is http, there is a username and a password, the host is not a private or loopback address, and the port is a number. Reject the task locally if any check fails. This takes a few lines and catches the typos that otherwise surface as a failed task two minutes later. Combine it with the curl test above when you add a new proxy provider, and keep the result in your setup notes alongside the task types you use, such as Cloudflare Challenge.

Common questions

Can I send host and port as separate fields?

No. The task takes one proxy string in URL form that contains everything.

Does the task accept a proxy without credentials?

Only if the proxy allows connections from anywhere, which is rare and risky. Credentials are the normal setup.

Why did my Cloudflare cookie fail after a proxy task?

The exit IP probably changed. Use a sticky session so the solve and your requests share one IP.

Is the proxy field charged extra?

No. Proxy and ProxyLess variants of a type cost the same per 1,000.

Can I use a proxy on my laptop for a task?

Only if it is reachable from the internet with credentials; a local address cannot be reached by the solver.

Keep reading