API文档

1.生成短链

请求地址:https://s.xiakeyun.top/api/

请求方式:GET 返回方式:JSON

请求参数解释类型示例
method请求方法文本add
key会员key,从会员中心获取文本0cc175b9c0f1b6a831c399e269772661
url原网址文本http://www.baidu.com
vip短链是否永久,0:临时(7天),1:永久数字1
domain

选择生成短链的域名

0:s.xiakeyun.top

数字1

说明:(1)url传入前需要用urlencode转码(2)如果生成永久链接,请保证账户余额充足

请求示例
https://s.xiakeyun.top/api/?method=add&key=0cc175b9c0f1b6a831c399e269772661&domain=1&vip=1&url=http%3a%2f%2fwww.baidu.com

返回参数解释示例
code返回码success:成功,error:错误
id短链编号1
vip短链是否永久,0:临时(7天),1:永久123
short短链接https://s.xiakeyun.top/s/d
long原网址http://www.baidu.com
time短链接生成时间2021-01-18 15:38:52

返回示例:
{"code":"success","id":"1","vip":"1","short":"https://s.xiakeyun.top/s/d","long":"http://www.baidu.com","time":"2021-01-18 15:38:52"}

2.获取短链列表

请求地址:https://s.xiakeyun.top/api/

请求方式:GET 返回方式:JSON

请求参数解释示例
method请求方法list
key会员key,从会员中心获取0cc175b9c0f1b6a831c399e269772661

请求示例
https://s.xiakeyun.top/api/?method=list&key=0cc175b9c0f1b6a831c399e269772661

返回参数解释示例
S_vip短链是否永久,0:临时(7天),1:永久123
S_short短链接https://s.xiakeyun.top/s/d
S_url原网址http://www.baidu.com
S_time短链接生成时间2021-01-18 15:38:52

返回示例:
[{"S_vip":"1","S_short":"https://s.xiakeyun.top/d","S_url":"http://www.baidu.com","S_time":"2021-01-18 15:38:52"},{"S_vip":"1","S_short":"https://s.xiakeyun.top/e","S_url":"http://www.qq.com","S_time":"2021-01-18 15:38:52"}]

私人管家般的专属服务,只为您的使用更放心!
立即咨询

Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0