# 百度短链生成器


接口地址:

https://api.nobb.cc/bd-short/index.php

请求方式:

GET

返回格式:

JSON

请求示例:

https://api.nobb.cc/bd-short/index.php?url=https://gss.baidu.com/xxx.jpg

请求参数:
名称 必填 说明
url 需转换的长链接(必须包含 baidu.com)
返回字段说明:
字段名 类型 描述
success bool true 成功 / false 失败
bd_short_url string 转换后的短链(已去掉 ? 后参数)
errmsg string 错误时返回的中文提示
返回示例:成功
{"success":true,"bd_short_url":"https://mr.baidu.com/r/1MMazCt0OPe"}
返回示例:失败
{"success":false,"errmsg":"短链与原链一致"}