how to use ProxyScrape premium API

如何使用 ProxyScrape Premium API

本文将介绍如何以编程方式使用 ProxyScrape Premium API 服务。现在就开始吧!

获取代理列表

https://api.proxyscrape.com/v2/account/datacenter_shared/proxy-list?auth=nhuyjukilompnbvfrtyuui&type=getproxies&country[]=all&protocol=http&format=normal

 

授权 nhuyjukilompnbvfrtyuui
提供您的 API 验证密钥
类型 获取代理
下载代理服务器,或在浏览器中显示代理服务器:

  • 获取代理
  • 显示代理
国家[] 一应俱全
提供您账户中可用的任何 Alpha 2 ISO 国家代码。如果您想同时下载多个国家/地区,请重复以下参数:&country[]=us&country[]=de如果未提供此参数,则默认为所有国家/地区。
规程 http
定义要下载的代理协议:

  • http
  • 袜子

HTTP 代理服务器支持 SSL (https)。Socks 代理服务器支持 Socks4 和 Socks5。

格式 正常
您希望接收代理服务器的格式:

  • 正常:简单的代理列表
  • json:返回所有代理及其相关国家和状态。
申请示例
变异 要求 = http.要求(GET, 乌里.解析('https://api.proxyscrape.com/v2/account/datacenter_shared/proxy-list?auth=nhuyjukilompnbvfrtyuui&type=getproxies&country[]=all&protocol=http&format=normal'( https://api.proxyscrape.com/v2/account/datacenter_shared/proxy-list?auth=nhuyjukilompnbvfrtyuui&type=getproxies&country[]=all&protocol=http&format=normal));


http.StreamedResponse 响应 =  要求.发送();

如果 (回应.状态代码 == 200) {
  打印( 回应.溪流.字节到字符串());
}
不然 {
  打印(回应.原因);
}

获取经过验证的 IP

https://api.proxyscrape.com/v2/account/datacenter_shared/whitelist?auth=nhuyjukilompnbvfrtyuui&type=get

显示已通过账户验证的 IP。

参数

授权 nhuyjukilompnbvfrtyuui
提供您的 API 验证密钥
类型 获取
获取账户上经过验证的 IP
申请示例
变异 要求 = http.要求(GET, 乌里.解析('https://api.proxyscrape.com/v2/account/datacenter_shared/whitelist?auth=nhuyjukilompnbvfrtyuui&type=get'));


http.StreamedResponse 响应 =  要求.发送();

如果 (回应.状态代码 == 200) {
  打印( 回应.溪流.字节到字符串());
}
不然 {
  打印(回应.原因);
}

GET 验证一个 IP

https://api.proxyscrape.com/v2/account/datacenter_shared/whitelist?auth=nhuyjukilompnbvfrtyuui&type=set&ip[]=1.1.1.1

请注意,每个新的身份验证请求都必须包含所有需要保持身份验证的 IP。要取消 IP 身份验证,可以重新发送身份验证请求,但不包括必须取消身份验证的 IP。

参数

 

申请示例
变异 要求 = http.要求(GET, 乌里.解析('https://api.proxyscrape.com/v2/account/datacenter_shared/whitelist?auth=nhuyjukilompnbvfrtyuui&type=set&ip[]=1.1.1.1'));


http.StreamedResponse 响应 =  要求.发送();

如果 (回应.状态代码 == 200) {
  打印( 回应.溪流.字节到字符串());
}
不然 {
  打印(回应.原因);
}

GET 验证多个 IP

https://api.proxyscrape.com/v2/account/datacenter_shared/whitelist?auth=nhuyjukilompnbvfrtyuui&type=set&ip[]=1.1.1.1&ip[]=1.1.1.2&ip[]=1.1.1.3

要验证多个 IP,只需重复 ip[] 参数即可。

参数

授权 nhuyjukilompnbvfrtyuui
提供您的 API 验证密钥
类型 设置
设置 IP 请求
ip[] 1.1.1.1
提供必须验证的 IP 之一
ip[] 1.1.1.2
提供必须验证的 IP 之一
ip[] 1.1.1.3
提供必须验证的 IP 之一
申请示例
变异 要求 = http.要求(GET, 乌里.解析('https://api.proxyscrape.com/v2/account/datacenter_shared/whitelist?auth=nhuyjukilompnbvfrtyuui&type=set&ip[]=1.1.1.1&ip[]=1.1.1.2&ip[]=1.1.1.3'));


http.StreamedResponse 响应 =  要求.发送();

如果 (回应.状态代码 == 200) {
  打印( 回应.溪流.字节到字符串());
}
不然 {
  打印(回应.原因);
}

参考资料


免责声明:这部分内容主要来自商家。如果商家不希望在我的网站上显示,请 联系我们 删除您的内容。

最后更新于 2022 年 5 月 16 日

您推荐代理服务吗?

点击奖杯即可颁奖!

平均评分 5 /5.计票: 1

目前没有投票!成为第一个给本帖评分的人。

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

zh_CNChinese
滚动到顶部