Fetch a filtered candidate list directly instead of parsing a proxy-list webpage. Each record includes proxy details, but public proxies can stop working or be rejected by your target between checks.
GET https://proxy11.com/api/proxy.json?key=YOUR_API_KEY&type=anonymous&limit=50
import os
from proxy11 import ProxyClient
client = ProxyClient(os.environ["PROXY11_API_KEY"])
candidates = client.get(
limit=50,
country="us",
proxy_type="anonymous",
speed=1.0,
)
for proxy in candidates:
print(proxy["ip"], proxy["port"], proxy["time"])
The API accepts country, type, port, speed, and limit filters. Limits are capped by the account plan. A narrower filter can return no results, so handle an empty list and widen filters only when the task allows it.
A successful check means the proxy responded to the service's test; it does not guarantee that it will connect to every host or remain available. Use timeouts, validate responses, and decide how your scraper should recover from connection failures.