What exactly can the static ISP proxy API interface be used for?
Friends who have done data collection know that many websites will set restrictions on the IP of frequent visitors. At this time it is necessary toLong-term stability and good network qualityproxy IPs to keep the business running. ipipgo provides static ISP proxies that are specifically designed for applications that require aFixed Outlet IPscenarios, such as account management that keeps you logged in for long periods of time, and automated processes that require stable sessions.
Getting Started with ipipgo's API in Three Steps
Using ipipgo's static ISP proxy API is particularly easy, first go to the official website to generate the exclusiveauth_keyThe key is equivalent to your identity credentials. Then get the proxy IP list through the API, and finally configure the proxy parameters in the code. Here's a Python example that's commonly used in real projects:
import requests Get a list of proxy IPs def get_proxies(): api_url = "https://api.ipipgo.com/v1/static/ips" params = { "auth_key": "Your authorization key", "num": 5, get 5 IPs "protocol": "socks5" } response = requests.get(api_url, params=params) return response.json()['data'] Request the target site using a proxy for proxy in get_proxies(): proxies = { "http": f "socks5://{proxy['ip']}:{proxy['port']}", "https": f "socks5://{proxy['ip']}:{proxy['port']}" } try. res = requests.get('destination URL', proxies=proxies, timeout=10) print(res.status_code) except Exception as e. print(f "IP {proxy['ip']} connection exception")
Configuration tips for different scenarios
Choose the right parameters according to business needs to maximize the effect, here is a compilation of a few common combinations:
Business Type | referral agreement | IP Survival Time |
---|---|---|
web automation | HTTP/HTTPS | More than 24 hours |
APP Data Collection | SOCKS5 | 48 hours fixed IP |
API interface call | HTTPS | On-demand IP replacement |
Avoid these common pitfalls
Three of the most common problems encountered by newbies:
- Unreasonable timeout settings: It is recommended to set a timeout of 10-15 seconds for the initial test and adjust it after stabilization.
- IP Reuse: Although static IP survives for a long time, high-frequency accesses still need to be replaced regularly
- Wrong choice of protocol: Check if the target website enforces specific protocols, e.g. some apps only recognize SOCKS5.
Handling of special requirements in real projects
run into a problem that requiresDesignated national citiescase, add thecountry=US
maybecity=Los Angeles
parameter will do. RequiredSimultaneous use of multiple IPsWhen this is the case, an IP rotation mechanism is recommended:
PHP to realize automatic IP switching $proxyList = json_decode(file_get_contents("https://api.ipipgo.com/v1/static/ips?auth_key=你的密钥&num=10")); foreach ($proxyList as $index => $proxy) { $ch = curl_init(); curl_setopt($ch, CURLOPT_PROXY, $proxy['ip'].' :'.$proxy['port']); curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5); // Other curl configuration... }
What to do if you have a problem? Look here.
Q: What is the reason that all the acquired IPs are unavailable?
A: First check whether the authorization key has expired, and then confirm whether the request parameters are correct. ipipgo's IP availability rate stays above 99%, and this situation is usually caused by parameter misconfiguration.
Q: How can I check the number of IPs used?
A: In the API request addusage=1
parameter, the return data will contain the current usage statistics.
Q: Does it support connecting to multiple country IPs at the same time?
A: ipipgo supports getting a mix of IPs from different countries in a single request, just use thecountry=US,DE,JP
Such a parameter format.
The biggest advantage of choosing ipipgo is theirResidential IP Resource PoolThe company covers more than 240 countries and regions around the world, especially the IP resources of certain niche countries, and the measured success rate of acquiring them is much higher than that of other service providers. Their technical support team is very responsive, you can directly submit a work order on the official website when you encounter technical problems, and usually have a solution within 30 minutes.