Options
All
  • Public
  • Public/Protected
  • All
Menu

To use our automatic proxy solution set to {auto:"random"}

Alternatively, you may use your own custom proxy server by setting the custom parameter.

example
//request JSON:  geolocate to the USA using a static IP address ($0.25/gb ingress)
{
pages:[{url:"https://phantomjscloud.com/examples/helpers/requestdata"}]},
proxy:{geolocation:"us"},
}
example
//request JSON:  use an anonymous IP address from somewhere in the world ($0.50/gb ingress)
{
pages:[{url:"https://phantomjscloud.com/examples/helpers/requestdata"}]},
proxy:{builtin:{location:"any"}},
}
example
//request JSON:  use an anonymous IP address from Germany ($0.50/gb ingress)
{
pages:[{url:"https://phantomjscloud.com/examples/helpers/requestdata"}]},
proxy:{builtin:{location:"de"}},
}
example
//request JSON:  /use a custom proxy (no extra charge)
{
pages:[{url:"https://phantomjscloud.com/examples/helpers/requestdata"}]},
proxy:{custom:{host:"http://my-3rd-Party-Proxy-Provider.com:8375",auth:"username:password"}},
}

Hierarchy

  • IProxyOptions

Index

Properties

Optional builtin

builtin: object

use an anonymizing proxy builtin to our service. Each API call you make will use a different IP address choosen from our proxy pool.

Additional Cost: using a builtin anonymizing proxy costs more, depending on type. See builtin.type for details.

Type declaration

Optional custom

allows you to use a custom proxy server. if you set this, a built-in proxy will not be used (no additional cost) but processing speed may be restricted due to your custom proxy's available bandwidth.

Optional geolocation

geolocation: "us"

Forces your requests to be sent from a specific geographic location and fixed geoIP address at that location. For the IP address used for each geolocation, please view this link: http://phantomjscloud.com/examples/helpers/proxy-fixed-ips

Can be used in conjunction with a IProxyOptions.custom proxy, meaning that your custom proxy will see requests comming from this geoIP.

This is useful if you need to either use a fixed IP address for whitelist purposes.

Please do not rely only on a fixed IP address for authentication, as it is shared by other users. Use a secure URL or header for private information.

Additional Cost: choosing a geolocation costs an additional $0.25/gb for data ingress.

Note: geoIP may (rarely) change: very occasionally the geoIP for a given geolocation may change, such as if we make infrastructure changes. Please refer to http://phantomjscloud.com/examples/helpers/proxy-fixed-ips for geoIP updates.

Need another location? email support@phantomjscloud.com and let us know. More choices will come later.