cURL Request Parameters
Below is a list of parameters followed by examples of request types:
Parameter | Description |
USERNAME | Username of proxy user. |
stc | Indicates query for static ISP residential proxy. |
stc_sc | Prefix indicating the use of state/city configuration. |
country | Country code in two-letter format, not case sensitive. For example, nl indicates a proxy in the Netherlands; za for South Africa; it for Italy. |
city | City name, should be combined with country code, for example nl_amsterdam |
state | US state, in combination with city name, for example us_alabama_birmingham |
SID | Session ID keeps the same IP for the next queries. Otherwise, a new IP is assigned for each new request. The same IP address can be used until the end user device disconnects or the session is terminated. Note that session ID (SID) does not guarantee the same IP address will be used for future sessions. SID supports any random string from 1 digit to 99999999. The lowest SID can be sid-1, and the highest SID can be sid-99999999. |
ASN | Add ASN number to request specific network or provider for routing internet traffic. Note - ASN works only with stc_sc. |
PASSWORD | Proxy user password. |
site URL | User’s destination site. |
A basic query inserting only USERNAME and PASSWORD will be performed from a random static residential IP address:
curl
-x USERNAME-stc-any:PASSWORD@gw.ntnt.io:5959 “example.site.com”
Request a specific country / state / city proxy, as in the examples below:
curl
-x USERNAME-stc-nl:PASSWORD@gw.ntnt.io:5959 “example.site.com”
curl
-x USERNAME-stc_sc-nl_amsterdam:PASSWORD@gw.ntnt.io:5959 “example.site.com”
curl
-x USERNAME-stc_sc-us_alabama_birmingham:PASSWORD@gw.ntnt.io:5959 “example.site.com”
Add the SID (session ID) parameter to use the same IP for next queries. Note that SID must be preceded by a country:
curl
-x USERNAME-stc-uk-sid-45456:PASSWORD@gw.ntnt.io:5959" "example.site.com"
curl
-x USERNAME-stc_sc-ASN_number:PASSWORD@gw.ntnt.io:5959" "example.site.com"
Note: You can use either country or ASN parameter in each request.
You can search for ASN numbers here.
Last updated