Skip to main content
Version: 1.7

ProxyInfo

{"content": ["Provides information about a proxy connection that is used for requests."]}

Index

Properties

country_code

country_code: NotRequired[str]

{"content": ["If set and relevant proxies are available in your Apify account, all proxied requests will\nuse IP addresses that are geolocated to the specified country. For example GB for IPs\nfrom Great Britain. Note that online services often have their own rules for handling\ngeolocation and thus the country selection is a best attempt at geolocation, rather than\na guaranteed hit. This parameter is optional, by default, each proxied request is assigned\nan IP address from a random country. The country code needs to be a two letter ISO country code.\nSee the full list of available country codes.\nThis parameter is optional, by default, the proxy uses all available proxy servers from all countries."]}

groups

groups: NotRequired[list[str]]

{"content": ["An array of proxy groups to be used by the Apify Proxy.\nIf not provided, the proxy will select the groups automatically."]}

hostname

hostname: str

{"content": ["The hostname of the proxy."]}

password

password: str

{"content": ["The password for the proxy."]}

port

port: int

{"content": ["The proxy port."]}

session_id

session_id: NotRequired[str]

{"content": ["The identifier of the used proxy session, if used. Using the same session ID guarantees getting the same proxy URL."]}

url

url: str

{"content": ["The URL of the proxy."]}

username

username: NotRequired[str]

{"content": ["The username for the proxy."]}