Skip to main content
Version: Next

ProxyConfigurationOptions

Index

Properties

optionalnewUrlFunction

Custom function that allows you to generate the new proxy URL dynamically. It gets an optional parameter with the Request object when applicable. Can return either stringified proxy URL or null if the proxy should not be used. Can be asynchronous.

This function is used to generate the URL when ProxyConfiguration.newUrl or ProxyConfiguration.newProxyInfo is called.

optionalproxyUrls

proxyUrls?: UrlList

An array of custom proxy URLs to be rotated. Custom proxies are not compatible with Apify Proxy and an attempt to use both configuration options will cause an error to be thrown on initialize.

Page Options