Logo
API

    获取HTTPS在线节点
    获取域名列表
    获取缓存配置信息
    流量统计
    添加域名
    删除域名
    添加缓存配置信息

获取HTTPS在线节点:/v2/customer/nodes

方法:get

其中,URL 的结构为 :

/v2/customer/nodes?client_ip=xxx&
scheme=xxx&
host=xxx&
uri=xxx

URL 中各字段含义如下:

参数名称必选类型描述
client_ipstring当没有该参数,或者client_ip的值为“0.0.0.0”或“127.0.0.1”时,服务器会自动获取该请求的公网IP地址
schemestringhttp或https,如果没有则默认https
hoststring如请求资源的url为www.abc.com/tv/test.mp4,则host为www.abc.com
uristring如请求资源的url为www.abc.com/tv/test.mp4,则uri为/tv/test.mp4

返回结构

参数名称类型说明
etagstring文件时间戳和大小的签名
sizeint文件大小
piece_numint分片大小
piece_typestring分片分发的类型(顺序,交叉,随机的模式):Sequencial、Interleaved、Random
piecesarray分片详细信息
uristring分片uri
startint分片开始位置
sizeint取模分片大小(256K,512K,1M)
nodesarray节点详细信息
protocolstring协议(HTTP/HTTPS)
hoststring节点地址
typestring节点类型
magnet_uristring种子地址
capacityint能力值

返回消息示例如下:

{
  "etag": "string",
  "size": 0,
  "piece_num": 0,
  "piece_type": "string",
  "pieces": [
    {
      "uri": "string",
      "start": 0,
      "size": 0,
      "nodes": [
        {
          "protocol": "string",
          "host": "string",
          "type": "string",
          "magnet_uri": "string",
          "capacity": 0
        }
      ]
    }
  ]
}