国产成人精品亚洲午夜国产馆_妓女成人毛片一区二区_亚洲国产激情一区在线_欧美精品日韩在中文字幕_免费毛片成人精品一区二区_国产女主播真实视频在线观看_无码人妻丰满少妇熟妇区五十路_91短视频app轻量版下载_午夜福利亚洲三级_免费综合高清无码

0 0 : 0 0 : 0 0 : 0 0
獲取代理

代理為您提供專業(yè)的全方位服務(wù)保障,請您放心使用

咨詢客服

API提取

自定義模板
復(fù)制鏈接 打開鏈接

?

如遇到疑問,請查看使用教程

使用說明

參數(shù) 描述 類型 必選
num IP提取數(shù)量 int
regions 國家 string
protocol 協(xié)議(http:HTTP/HTTPS socks5:SOCKS5) string
return_type 數(shù)據(jù)格式:txt json string
lb 分隔符(1:\r\n 2:/br 3:\r 4:\n 5:\t 6 :自定義) string
sb 自定義分隔符 string

返回結(jié)果示例

{
    "code": 0,
    "success": true,
    "msg": "操作成功",
    "request_ip": "127.0.0.1",
    "data": [
      {"ip" :"1.1.2.2","port" :14566},
      {"ip" :"1.1.2.2","port" :14577},
    ]
}
    

結(jié)果注釋

名稱 類型 描述
IP int IP地址
PORT int 端口號

白名單接口

接口 描述
http://d29866.cn/api/user/white_ip_list?api_key=xxx 白名單查詢接口
http://d29866.cn/api/user/add_white_ip?api_key=xxx&ips=xxx 白名單添加接口(ips以英文逗號隔開)
http://d29866.cn/api/user/del_white_ip?api_key=xxx&ips=xxx 白名單刪除接口(ips以英文逗號隔開)

// See https://aka.ms/new-console-template for more information
using System.Net;
using System.Threading;

var handler = new HttpClientHandler
{
    UseProxy = true
};
var proxy = new WebProxy("http://us.ipwo.net:7878");
var proxyUsername = "username_custom_zone_us";
var proxyPass = "password";
proxy.Credentials = new NetworkCredential(proxyUsername, proxyPass);
handler.Proxy = proxy;
var httpClient = new HttpClient(handler);

httpClient.Timeout = TimeSpan.FromSeconds(15);

var task = httpClient.GetStringAsync("http://ipinfo.io/json");
task.Wait();
Console.WriteLine(task.Result);

                

package main
import (
	"fmt"
	"io/ioutil"
	"net/http"
	"net/url"
	"os"
)
func main() {
	proxyURL, _ := url.Parse("http://username_custom_zone_US:password@us.ipwo.net:7878")
	proxy := http.ProxyURL(proxyURL)
	transport := &http.Transport{
		Proxy: proxy,
	}
	client := &http.Client{
		Transport: transport,
	}
	targetURL := "http://ipinfo.io"

	resp, err := client.Get(targetURL)
	if err != nil {
		fmt.Fprintln(os.Stderr, "Error fetching from", targetURL, ":", err)
		os.Exit(1)
	}
	defer resp.Body.Close()

	body, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		fmt.Fprintln(os.Stderr, "Error reading response body:", err)
		os.Exit(1)
	}

	fmt.Println(string(body))
}

                

import fetch from 'node-fetch';
import createHttpsProxyAgent from 'https-proxy-agent'

const username = 'username_custom_zone_us';
const password = 'password';
const proxy = 'us.ipwo.net:7878'

const agent = createHttpsProxyAgent(
  `http://${username}:${password}@${proxy}`
);

const response = await fetch('http://ipinfo.io', {
  method: 'get',
  agent: agent,
});

console.log(await response.text());

                

$ch = curl_init();
curl_setopt($ch, CURLOPT_PROXY, "us.ipwo.net" );
curl_setopt($ch, CURLOPT_PROXYUSERPWD, "username_custom_zone_us:password");
curl_setopt($ch, CURLOPT_PROXYTYPE,CURLPROXY_HTTP);
curl_setopt($ch, CURLOPT_URL, 'http://ipinfo.io');
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
$result = curl_exec($ch);
curl_close($ch);
echo $result;

                

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.*;
import java.util.Base64;

public class Main {
    public static void main(String[] args) throws Exception {
        try {
            String proxyHost = "us.ipwo.net";
            int proxyPort = 7878;
            Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(proxyHost, proxyPort));
            String username = "username_custom_zone_us";
            String password = "password";
            String credentials = username + ":" + password;
            URL url = new URL("http://ipinfo.io");
            HttpURLConnection connection = (HttpURLConnection) url.openConnection(proxy);
            connection.setRequestMethod("GET");
            connection.setRequestProperty("Proxy-Authorization", "Basic " + Base64.getEncoder().encodeToString(credentials.getBytes()));
            int responseCode = connection.getResponseCode();
            System.out.println("Response Code: " + responseCode);
            BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
            String inputLine;
            StringBuilder response = new StringBuilder();
            while ((inputLine = in.readLine()) != null) {
                response.append(inputLine);
            }
            in.close();
            System.out.println((response.toString()));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}

                

import requests
if __name__ == '__main__':
proxyip = "http://username_custom_zone_US:password@us.ipwo.net:7878"
url = "http://ipinfo.io"
proxies = {
'http': proxyip,
}
data = requests.get(url=url, proxies=proxies)
print(data.text)

                

curl -x http://us.ipwo.net:7878 -U username_custom_zone_us:password http://ipinfo.io

                
新用戶專享
注冊領(lǐng)取 500M 免費(fèi)測試
在線時(shí)間:周一至周日 9:00-23:00