编辑短链接口
调用次数限制:3000次/天。
接口地址: https://openapi.aifabu.com/v1/chain/editchain
请求方法: post
| 参数名 | 类型 | 是否必传 | 描述 | 
|---|---|---|---|
| apikey | string | 是 | 用户的api密钥 | 
| chain | string | 是 | 短链后缀,例如 3durl.cn/1a2b3d,后缀为1a2b3d | 
| target_url | string | 是 | 修改的跳转链接,必须以 http:// 或 https:// 开头的链接 | 
可以在尊龙凯时平台入口-尊龙凯时网址中查看、重置apikey。
{
  "apikey": "1234567890abcdef123",
  "target_url": "https://baidu.com",
  "chain": "1a2b3d"
}
| 参数名 | 类型 | 描述 | 
|---|---|---|
| code | int | 返回的状态码,详见状态码说明 | 
| msg | string | 返回状态信息 | 
| result | object | 返回的数据 | 
| target_url | string | 短链跳转地址 | 
| render_url | string | 短链地址 | 
{
  "code": 1,
  "msg": "success",
  "result": {
      "target_url": "https://baidu.com",
      "render_url": "https://3durl.com/1a2b3d",
    }
}
| 状态码 | 描述 | 
|---|---|
| 1 | 返回数据成功 | 
| -1 | 返回数据失败 | 
| 40001 | apikey错误 | 
| 40002 | 请求参数错误 | 
| 40003 | 短链错误 | 
| 40004 | 权限不足 | 

顾问1v1
超长试用
专属优惠
私域sop