資源提取
白名單模式提取
curl --location --request GET 'https://api.98ip.com/get_whitelist_ip?user=xxx&pass=xxx®ion=&area=&time=&count=10&protocol=socks5&format=json&split=&splice='
import requests
url = "https://api.98ip.com/get_whitelist_ip?user=xxx&pass=xxx®ion=&area=&time=&count=10&protocol=socks5&format=json&split=&splice="
payload={}
headers = {}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.98ip.com/get_whitelist_ip?user=xxx&pass=xxx®ion=&area=&time=&count=10&protocol=socks5&format=json&split=&splice=',
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',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var requestOptions = {
method: 'GET',
redirect: 'follow'
};
fetch("https://api.98ip.com/get_whitelist_ip?user=xxx&pass=xxx®ion=&area=&time=&count=10&protocol=socks5&format=json&split=&splice=", 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 := "https://api.98ip.com/get_whitelist_ip?user=xxx&pass=xxx®ion=&area=&time=&count=10&protocol=socks5&format=json&split=&splice="
method := "GET"
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
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("https://api.98ip.com/get_whitelist_ip?user=xxx&pass=xxx®ion=&area=&time=&count=10&protocol=socks5&format=json&split=&splice=")
.method("GET", body)
.build();
Response response = client.newCall(request).execute();
GET
/get_whitelist_ip
請求參數
名稱 | 類型 | 必選 | 說明 |
---|---|---|---|
user | string | 是 | 認證帳號 |
pass | string | 是 | 認證密碼 |
region | string | 否 | 國家編碼 |
area | string | 否 | 地區 |
time | string | 否 | 保持時間 |
count | string | 是 | 提取數量 |
protocol | string | 否 | 協議 |
format | string | 是 | 格式(json、txt) |
split | string | 否 | 分隔符(txt專用) |
splice | string | 否 | 拼接格式(txt專用) |
https://api.98ip.com/get_whitelist_ip?user=xxx&pass=xxx®ion=&area=&time=&count=10&protocol=socks5&format=json&split=&splice=
相應結果
名稱 | 類型 | 說明 |
---|---|---|
code | int | 響應代碼 |
msg | string | 響應消息 |
data | list | IP列表 |
{
"code": 0,
"msg": "success",
"data": [
{
"ip": "xx.xx.xx.xxx",
"lastTime": "2024-12-25 11:27:14",
"port": 10028
},
{
"ip": "xx.xx.xx.xxx",
"lastTime": "2024-12-25 11:27:14",
"port": 10031
},
......
]
}
{
"code": 1,
"msg": "<string>"
}
curl --location --request GET 'https://api.98ip.com/get_whitelist_ip?user=xxx&pass=xxx®ion=&area=&time=&count=10&protocol=socks5&format=json&split=&splice='
import requests
url = "https://api.98ip.com/get_whitelist_ip?user=xxx&pass=xxx®ion=&area=&time=&count=10&protocol=socks5&format=json&split=&splice="
payload={}
headers = {}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.98ip.com/get_whitelist_ip?user=xxx&pass=xxx®ion=&area=&time=&count=10&protocol=socks5&format=json&split=&splice=',
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',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var requestOptions = {
method: 'GET',
redirect: 'follow'
};
fetch("https://api.98ip.com/get_whitelist_ip?user=xxx&pass=xxx®ion=&area=&time=&count=10&protocol=socks5&format=json&split=&splice=", 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 := "https://api.98ip.com/get_whitelist_ip?user=xxx&pass=xxx®ion=&area=&time=&count=10&protocol=socks5&format=json&split=&splice="
method := "GET"
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
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("https://api.98ip.com/get_whitelist_ip?user=xxx&pass=xxx®ion=&area=&time=&count=10&protocol=socks5&format=json&split=&splice=")
.method("GET", body)
.build();
Response response = client.newCall(request).execute();