Exporting a list of all your static proxies
Learn how to export your datacenter and ISP proxies to a list using the list_by_search endpoint
This example demonstrates how to export all your static proxies (datacenter and ISP types) to a formatted list using the dedicated list endpoint. The list_by_search
endpoint is specifically designed for exporting proxies in various formats, making it more efficient than manually formatting proxies from the search endpoint.
Understanding the List Endpoint
The list_by_search
endpoint provides formatted proxy strings ready for use in your applications. It focuses only on static proxies (datacenter and ISP types), which are designed to have stable IP addresses and ports.
Key Parameters
-
list_format
: Determines how the proxies are formatted in the responsestandard
: Simple format (IP:port)http
: HTTP proxy URL format (http://username:password@IP:port)socks5
: SOCKS5 proxy URL format (socks5://username:password@IP:port)socks5h
: SOCKS5 with hostname resolution (socks5h://username:password@IP:port)
-
list_protocol
: Specifies which proxy protocol to usehttp
: For HTTP proxies (default port 8080)socks5
: For SOCKS5 proxies (default port 1080)
-
list_version
: Specifies the IP version to returnipv4
: IPv4 addresses (default)ipv6
: IPv6 addresses (if available)
-
list_authentication
: Authentication method to use in the formatted stringsusername_and_password
: Standard authentication with your proxy user credentialsip_address
: IP-based authenticationproxy_specific
: Proxy-specific authentication
Example Output
Here’s what the output might look like depending on the format you choose:
- Standard format:
123.456.78.90:8080
- HTTP format:
http://your_username:your_password@123.456.78.90:8080
- SOCKS5 format:
socks5://your_username:your_password@123.456.78.90:1080
- SOCKS5H format:
socks5h://your_username:your_password@123.456.78.90:1080
Use Cases
- Web scraping tools: Export proxy lists for tools like Scrapy or Selenium
- Browser extensions: Use formatted proxies in proxy-switching extensions
- Distributed applications: Share proxy lists with team members
- Third-party tools: Export proxies for use in tools that require proxy lists