Quick Start

time
2024-06-25 14:32:12

Use dynamic residential proxies to make requests from a random location to https://api.ip.cc/. Remember to replace USERNAME and PASSWORD with your proxy user credentials. With FlyProxy's dynamic residential proxies rotating, each request returns a new IP address.

curl -x username:[email protected]:1212 https://api.ip.cc/


If using a proxy from France to make a request, change the entry point address accordingly, as shown in this CURL example.

curl -x username_area-FR:[email protected]:1212 https://api.ip.cc/



If you want to keep the same proxy for multiple requests, use session control. Simply add session-abc1234 to the username string (where abc1234 can be any random string), and as long as you keep using this string (session ID), we will try to provide you with the same proxy IP.

curl -x username_area-FR_session-abc1234_life-30:[email protected]:1212 https://api.ip.cc/



In addition, the life and session parameters need to be used in conjunction to ensure optimal proxy performance and stability.


The life parameter refers to the total usage time of a proxy IP. Within this timeframe, the proxy IP is valid and can make connections and transfer data. For example, the life cycle of a proxy IP may be 30 minutes. This means that the IP is valid and available during these 30 minutes. (life: the length of time the IP is available in minutes. flyproxy provides a minimum value of 1 for life and a maximum value of 120 (2 hours)).


In order to ensure the stability of the connection, the flyproxy.com system usually keeps the proxy IP unchanged for the duration of a session. Even if the proxy IP's life is about to end, the system replaces it with a new one well in advance to ensure session continuity and an uninterrupted user experience. This means you get seamless connectivity, even when the current proxy IP is nearing the end of its life cycle.


Example:


curl -x username_area-FR_session-abc1234_life-5:[email protected]:1212 https://api.ip.cc/


This command will maintain the same proxy IP with the specified session ID for the specified 5 minutes of the life cycle, providing a stable and continuous connection.

By setting the life and session parameters appropriately, you can optimize the use of proxies for your specific needs, ensuring the best balance between data transfer and connection stability.