接口地址: http://{api节点}/api/httpproxy/get
返回格式: JSON、TXT
请求方式: GET
请求示例: http://{api节点}/api/httpproxy/get?token={token账号}
提示:登录获取分配api节点,api调用时请启用gzip压缩
请求参数说明:
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
token | 是 | string | 用户名账户 |
psw | 否 | string | token账户密码。默认没密码,如果设置了密码,这里必填。 |
area | 否 | string | 选择国家或地区区域 取值:1 提取中国内地与中国港澳台地区IP 2 提取国外海外各国家或地区IP 0或其它提取所有国家或地区IP |
country | 否 | string | 指定某个国家或地区的IP 如:美国 只提美国的IP。也可填中国地区,如:上海 |
isexcountry | 否 | int | 排除国家或地区 比如排除美国的代理ip location=美国&islocation=1 |
port | 否 | string | 指定端口号,多个用小写逗号分隔。比如 8080,8081 |
isexport | 否 | int | 排除端口号 比如排除8080端口的代理ip port=8080&isexport=1 |
islocation | 否 | int | 是否显示地理位置。取值:1 可以显示地理位置。如文本形式:6.6.6.6:8080#美国 |
sort | 否 | int | API输出排序。取值1:随机提取 (默认)。2:按最后验证检测时间(从近到远)。 |
format | 否 | string | 输出格式。取值1(默认):返回文本格式显示每行一组IP与端口。2:返回标准JSON格式显示。 |
返回参数说明:
名称 | 类型 | 说明 |
---|---|---|
success | boolean | 返回是否成功 成功true 或 失败false |
count | int | 数据记录条数。默认每次最多返回100个随机http代理IP |
msg | string | 错误或警告信息 |
results | array | 数据记录结果数组 |
ip | string | 代理ip |
port | int | 端口 |
location | string | IP归属地 |
返回示例:
{ "success": true, "count": 2, "msg": "", "results": [ { "ip": "35.229.172.56", "port": 8899 }, { "ip": "203.95.198.143", "port": 8080 } ] }