API接口文档

接口地址

GET /api-get.php?format=json&count=10

请求参数

参数名类型必填默认值说明
formatstringtext返回格式,可选 json / text
countint10返回数量,最大100
typestringall代理类型,http / https / all

返回示例(JSON格式)

{
    "code": 200,
    "msg": "success",
    "total": 10,
    "data": [
        {
            "ip": "123.45.67.89",
            "port": "8080",
            "area": "北京",
            "type": "HTTP"
        },
        ...
    ]
}

返回示例(Text格式)

123.45.67.89:8080
123.45.67.90:3128
123.45.67.91:8888
...

调用示例

Python

import requests

# JSON格式获取
resp = requests.get('http://p.88316.net/api-get.php?format=json&count=20')
data = resp.json()
for item in data['data']:
    print(f"{item['ip']}:{item['port']}")

PHP

<?php
$url = 'http://p.88316.net/api-get.php?format=json&count=20';
$data = json_decode(file_get_contents($url), true);
foreach ($data['data'] as $item) {
    echo $item['ip'] . ':' . $item['port'] . "\n";
}

注意事项

• 免费API接口有一定的访问频率限制,请合理使用

• 免费代理IP稳定性有限,重要业务建议使用付费代理

• 单次最大返回100条数据

• 数据每10分钟自动更新一次