IP提取

賬密認證提取

curl --location --request GET 'http://192.168.0.100:8042/get_proxy_ip?user=xxx&pass=xxx&count=10&protocol=socks5&format=json&proxyType=1' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)'
import requests

url = "http://192.168.0.100:8042/get_proxy_ip?user=xxx&pass=xxx&count=10&protocol=socks5&format=json&proxyType=1"

payload={}
headers = {
   'User-Agent': 'Apifox/1.0.0 (https://apifox.com)'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
   CURLOPT_URL => 'http://192.168.0.100:8042/get_proxy_ip?user=xxx&pass=xxx&count=10&protocol=socks5&format=json&proxyType=1',
   CURLOPT_RETURNTRANSFER => true,
   CURLOPT_ENCODING => '',
   CURLOPT_MAXREDIRS => 10,
   CURLOPT_TIMEOUT => 0,
   CURLOPT_FOLLOWLOCATION => true,
   CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
   CURLOPT_CUSTOMREQUEST => 'GET',
   CURLOPT_HTTPHEADER => array(
      'User-Agent: Apifox/1.0.0 (https://apifox.com)'
   ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
var myHeaders = new Headers();
myHeaders.append("User-Agent", "Apifox/1.0.0 (https://apifox.com)");

var requestOptions = {
   method: 'GET',
   headers: myHeaders,
   redirect: 'follow'
};

fetch("http://192.168.0.100:8042/get_proxy_ip?user=xxx&pass=xxx&count=10&protocol=socks5&format=json&proxyType=1", requestOptions)
   .then(response => response.text())
   .then(result => console.log(result))
   .catch(error => console.log('error', error));
package main

import (
   "fmt"
   "net/http"
   "io/ioutil"
)

func main() {

   url := "http://192.168.0.100:8042/get_proxy_ip?user=xxx&pass=xxx&count=10&protocol=socks5&format=json&proxyType=1"
   method := "GET"

   client := &http.Client {
   }
   req, err := http.NewRequest(method, url, nil)

   if err != nil {
      fmt.Println(err)
      return
   }
   req.Header.Add("User-Agent", "Apifox/1.0.0 (https://apifox.com)")

   res, err := client.Do(req)
   if err != nil {
      fmt.Println(err)
      return
   }
   defer res.Body.Close()

   body, err := ioutil.ReadAll(res.Body)
   if err != nil {
      fmt.Println(err)
      return
   }
   fmt.Println(string(body))
}
OkHttpClient client = new OkHttpClient().newBuilder()
   .build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
   .url("http://192.168.0.100:8042/get_proxy_ip?user=xxx&pass=xxx&count=10&protocol=socks5&format=json&proxyType=1")
   .method("GET", body)
   .addHeader("User-Agent", "Apifox/1.0.0 (https://apifox.com)")
   .build();
Response response = client.newCall(request).execute();

GET /get_proxy_ip

請求參數

名稱 類型 必選 說明
user string 賬號
pass string 密碼
protocol string 代理協議
count int IP數量
session string 一個session對應一個IP
region string 國家編碼
area string 地區
auth int 認證方式,0、賬號密碼認證,1、白名單認證
format string 輸出格式
splice int 拼接格式(txt專用)
time int 保持時間
proxyType int 1-非亞洲【us.98ip.net】 2-亞洲【sg.98ip.net】
                                    https://api.98ip.com/get_proxy_ip?user=xxx&pass=xxx&count=10&protocol=socks5&format=json&proxyType=1

                                

相應結果

名稱 類型 說明
code int 響應代碼
msg string 響應消息
data list IP列表
                                        {
    "code": 0,
    "msg": "success",
    "data": [
        {
            "ip": "192.168.0.100",
            "port": 1713,
            "user": "xxxxx",
			"pass": "xxxx"
        },
        ......
    ]
}

                                    
                                        {
  "code": 1,
  "msg": "<string>"
}
                                    
curl --location --request GET 'http://192.168.0.100:8042/get_proxy_ip?user=xxx&pass=xxx&count=10&protocol=socks5&format=json&proxyType=1' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)'
import requests

url = "http://192.168.0.100:8042/get_proxy_ip?user=xxx&pass=xxx&count=10&protocol=socks5&format=json&proxyType=1"

payload={}
headers = {
   'User-Agent': 'Apifox/1.0.0 (https://apifox.com)'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
   CURLOPT_URL => 'http://192.168.0.100:8042/get_proxy_ip?user=xxx&pass=xxx&count=10&protocol=socks5&format=json&proxyType=1',
   CURLOPT_RETURNTRANSFER => true,
   CURLOPT_ENCODING => '',
   CURLOPT_MAXREDIRS => 10,
   CURLOPT_TIMEOUT => 0,
   CURLOPT_FOLLOWLOCATION => true,
   CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
   CURLOPT_CUSTOMREQUEST => 'GET',
   CURLOPT_HTTPHEADER => array(
      'User-Agent: Apifox/1.0.0 (https://apifox.com)'
   ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
var myHeaders = new Headers();
myHeaders.append("User-Agent", "Apifox/1.0.0 (https://apifox.com)");

var requestOptions = {
   method: 'GET',
   headers: myHeaders,
   redirect: 'follow'
};

fetch("http://192.168.0.100:8042/get_proxy_ip?user=xxx&pass=xxx&count=10&protocol=socks5&format=json&proxyType=1", requestOptions)
   .then(response => response.text())
   .then(result => console.log(result))
   .catch(error => console.log('error', error));
package main

import (
   "fmt"
   "net/http"
   "io/ioutil"
)

func main() {

   url := "http://192.168.0.100:8042/get_proxy_ip?user=xxx&pass=xxx&count=10&protocol=socks5&format=json&proxyType=1"
   method := "GET"

   client := &http.Client {
   }
   req, err := http.NewRequest(method, url, nil)

   if err != nil {
      fmt.Println(err)
      return
   }
   req.Header.Add("User-Agent", "Apifox/1.0.0 (https://apifox.com)")

   res, err := client.Do(req)
   if err != nil {
      fmt.Println(err)
      return
   }
   defer res.Body.Close()

   body, err := ioutil.ReadAll(res.Body)
   if err != nil {
      fmt.Println(err)
      return
   }
   fmt.Println(string(body))
}
OkHttpClient client = new OkHttpClient().newBuilder()
   .build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
   .url("http://192.168.0.100:8042/get_proxy_ip?user=xxx&pass=xxx&count=10&protocol=socks5&format=json&proxyType=1")
   .method("GET", body)
   .addHeader("User-Agent", "Apifox/1.0.0 (https://apifox.com)")
   .build();
Response response = client.newCall(request).execute();