logo
logo
请输入关键词搜索产品或者文档
中国

中国站

创蓝云智

国际站

Innopaas

API文档

更新时间:2026-07-30 18:28:13

日期版本修订内容摘要
2023-08-18v2.0.0更新接口文档

接口说明

API接口适用于不通过创蓝渠道发送短信客户,或者有特殊定制服务的客户。

API接口调用属于收费项目,具体收费详情请联系相关客户经理。

深链针对客户提供API创建接口

(1)支持短链链接,创建1号1链

(2)支持通知短信,长链转短链服务

(3)创建的短链可用于任意检测服务,如:微博、微信、公众号、网站等

(4)获取AppId和AppKey

深链API接口计费服务

API接口采用会员制模式,开通短链会员即可调用API。

创建一号一链(一号一链有效期为30天,无数量限制)

一号一链

接口地址 https://slapi.chuanglan.com/prod/url/trace

请求方式 POST

consumes ["application/json"]

produces ["/"]

接口描述 30天有效期,不支持点击数据统计

HEAD请求参数

签名生成示例

Map<String, Object> parammap = new HashMap<>();
parammap.put("url","a3xx.cc/v-UMxxU");
parammap.put("phone","15673494722");
parammap.put("batch","00999999999999991");
String s = JSONUtil.toJsonStr(parammap);
String checkSign = DigestUtil.md5Hex("65939497874632704" +
        "c1694936e58549b1bf8c8da36637b89f" + s + "1671096829626");
![](https://static2.253.com/document/2023-07/4X8JQAJUQXIEAL9F.png)

Body请求参数

请求示例

{
    "endDate":"2022-07-29",
    "shortUrl":"52.cn/v-6kp44",
    "startDate":"2022-07-28",
    "status":"0"
}

响应参数

参数名称参数说明类型schema
code状态码string
data返回数据object
message描述信息string
success是否成功boolean

响应示例

{
    "code": "",
    "data": {},
    "message": "",
    "success": true
}

响应状态

状态码说明描述
200OKAPI响应结果«Map«string,string»»
201Created创建成功
401Unauthorized验证错误
403Forbidden禁止创建
404Not Found未找到

单条长链接转短链接

接口地址 https://slapi.chuanglan.com/prod/url/short

请求方式 POST

consumes ["application/x-www-form-urlencoded"]

produces ["/"]

接口描述 30天有效期,不支持点击数据统计

HEAD请求参数

请求头示例

Query参数

请求体示例

响应参数

参数名称参数说明类型schema
code状态码string
data返回数据object
message描述信息string
success是否成功boolean

响应示例

{
  "success": true,
  "code": "000000",
  "message": "成功",
  "data": {
    "shortUrl": "http://172.16.41.121:8082/sbQaQrm"
  }
}

响应状态

状态码说明描述
200OKAPI响应结果«Map«string,string»»
201Created创建成功
401Unauthorized验证错误
403Forbidden禁止创建
404Not Found未找到

注意:postman调用时,会将oldUrl中的/转义成%2F,代码中调用无需转义

生成签名sign示例

String data = "url=http://baidu.com&domain=a3h.cc";
String checkSign = MD5.getMd5("123123123123" +
        "c1694936e58549b1bf8c8da388888888" + data + "1671096829626");

# 批量长链接转短链接

**接口地址** https://slapi.chuanglan.com/prod/url/batch_short
  
**请求方式** POST
  
**consumes** ["application/json"]

**produces** ["*/*"]

**接口描述** 30天有效期,一次请求最多传入100个长链,长链与短链顺序对应,不支持点击数据统计

## HEAD请求参数

| **参数名称** | **参数说明**                                                 | **请求类型** | **是否必须** | **数据类型** |
| ------------ | ------------------------------------------------------------ | ------------ | ------------ | ------------ |
| aid          | 智能短链平台API页面的APPID                                   | head         | true         | string       |
| sign         | sign= MD5.getMd5(aid + appKey + body + timestamp)<br />aid:深链API页面的APPID<br />appKey:深链API页面的appKey<br />body:请求的数据包JSON  <br />timestamp: 时间戳 | head         | true         | string       |
| timestamp    | 时间戳                                                       | head         | true         | string       |
| Content-Type | [application/json](https://blog.csdn.net/qq_14869093/article/details/86307084#applicationjson_42) |              |              |              |

## Body请求参数

| **参数名称** | **参数说明**           | **请求类型** | **是否必须** | **数据类型** |
| ------------ | ---------------------- | ------------ | ------------ | ------------ |
| batchId      | 批次号                 | body         | false        | string       |
| urlsdomain   | 链接地址数组自定义域名 | bodyquery    | truefalse    | arraystring  |
| domain       | 自定义域名             | body         | false        | string       |

**请求示例**

```java
{
    "batchId": "",
    "domain": "",
    "urls": ["www.baidu.com", "www.baidu2.com"]
}

响应参数

参数名称参数说明类型schema
code状态码string
datadata返回数据返回数据
shortUrl短链接 描述信息array
message描述信息是否成功string
success是否成功boolean

响应示例

{
    "success": true,
    "code": "000000",
    "message": "成功",
    "data": {
      "shortUrl": [
            "172.16.41.121:8082/JmGincJ",
            "172.16.41.121:8082/JmHImR2",
            "172.16.41.121:8082/JmHImR3",
            "172.16.41.121:8082/JmHZXZ6",
            "172.16.41.121:8082/JmHZXZ7",
            "172.16.41.121:8082/JmHZXZ8"
        ]
            }
    ]
}

响应状态

状态码说明描述
200OKAPI响应结果«Map«string,string»»
201Created创建成功
401Unauthorized验证错误
403Forbidden禁止创建
404Not Found未找到

创建追踪短链/深链

接口地址 https://slapi.chuanglan.com/prod/url/short_trace

请求方式 POST

consumes ["application/json"]

produces ["/"]

接口描述 带v-的母链,有数量限制,永久100条,临时5000条/天,建议尽量使用临时的追踪短链

HEAD请求参数

Body请求参数

请求示例

{
        "iosUrl": "https://www.baidu.com",
        "androidUrl": "https://www.baidu.com",
        "domain": "agxx.cn",
        "expiredType": 0,
        "miniAppId": "wx06582xxxf92db5ad",
        "name": "测试创建",
        "preventBlock": 0,
        "skipType": 1,
        "tlDeeplinkChannelConfigList": [
                {
                        "accessSource": 0,
                        "area": [1,2,3],
                        "status": 1,
                        "sysOS": [2],
                        "url": "http://www.taobao.com"
                },
                {
                        "accessSource": 0,
                        "area": [1,2,3],
                        "status": 1,
                        "sysOS": [2],
                        "url": "http://www.taobao.com"
                }
        ],
        "type": 1,
        "url": "http://www.tieba.com"
}

area数据

IDareaIDareaIDarea
1北京2天津3河北
4山西5内蒙古6辽宁
7吉林8黑龙江9上海
10江苏11浙江12安徽
13福建14江西15山东
16河南17湖北18湖南
19广东20广西21海南
22重庆23四川24贵州
25云南26西藏27陕西
28甘肃29青海30宁夏
31新疆32香港33澳门
34台湾

sysOS数据

IDsystemIDsystemIDsystem
1安卓2iPhone3Mac
4Mac5鸿蒙

accessSource数据

IDresourceIDresourceIDresourceIDresource
0不限3QQ4微信-1其他

响应参数

参数名称参数说明类型schema
code状态码string
data返回数据
idstring
url短链接string
message描述信息string
success是否成功boolean

响应示例

{
  "success": true,
  "message": "创建成功",
  "code": "000000",
  "data": {
    "id": "15840687811211264",
    "url": "aglc.cn/v-TOzZK"
  }
}

响应状态

状态码说明描述
200OKAPI响应结果«Map«string,string»»
201Created创建成功
401Unauthorized验证错误
403Forbidden禁止创建
404Not Found未找到
000800永久短链超过100条
000801当天临时短链创建超过5000条
000900未初始化客户信息

数据统计

访问曲线

接口地址 https://slapi.chuanglan.com/dplink/queryAccessCurve

请求方式 POST

consumes ["application/json"]

produces ["/"]

接口描述 ``

HEAD请求参数

Body请求参数

请求示例

{
    "endDate":"2022-07-29",
    "shortUrl":"52.cn/v-6kp44",
    "startDate":"2022-07-28",
    "status":"0"
}

响应参数

参数名称参数说明类型schema
codestring
data访问总曲线访问总曲线
accessCurveVoList访问量明细array访问曲线
  browseCountVo访问量访问量访问量
  clickCount访问点击量integer
  ipCount访问IP数integer
  phoneCount访问手机数integer
  uvCountuvinteger
date访问日期string
totalList总访问量array访问总量
  name访问名称string
  value总访问量integer
messagestring
successboolean

响应示例

    "success":true,
    "message":"请求成功",
    "code":"000000",
    "data":{
        "totalList":[
            {
                "name":"访问量",
                "value":0
            },
            {
                "name":"访问手机数",
                "value":0
            },
            {
                "name":"访问ip数",
                "value":0
            },
            {
                "name":"访问uv数",
                "value":0
            }
        ],
        "accessCurveVoList":[
            {
                "date":"28日",
                "browseCountVo":{
                    "clickCount":0,
                    "phoneCount":0,
                    "ipCount":0,
                    "uvCount":0
                }
            },
            {
                "date":"29日",
                "browseCountVo":{
                    "clickCount":0,
                    "phoneCount":0,
                    "ipCount":0,
                    "uvCount":0
                }
            }
        ]
    }
}

响应状态

状态码说明描述
200OKAPI响应结果«Map«string,string»»
201Created创建成功
401Unauthorized验证错误
403Forbidden禁止创建
404Not Found未找到

归属地

接口地址 https://slapi.chuanglan.com/dplink/queryIpAddress

请求方式 POST

consumes ["application/json"]

produces ["/"]

接口描述 ``

HEAD请求参数

Body请求参数

请求示例

{
    "endDate":"2022-07-29",
    "shortUrl":"52.cn/v-6kp44",
    "startDate":"2022-07-28",
    "status":"0"
}

响应参数

参数名称参数说明类型schema
codestring
dataarrayIP归属地
  areastring
  citystring
  count数量integer
  percentage百分比string
  provincestring
  totalCount数量integer
messagestring
successboolean

响应示例

{
    "success":true,
    "message":"请求成功",
    "code":"000000",
    "data":[
        {
            "province":"上海市",
            "city":null,
            "area":null,
            "percentage":"0.00%",
            "count":0,
            "totalCount":null
        },
        {
            "province":"云南省",
            "city":null,
            "area":null,
            "percentage":"0.00%",
            "count":0,
            "totalCount":null
        }
    ]
}

响应状态

状态码说明描述
200OKAPI响应结果«Map«string,string»»
201Created创建成功
401Unauthorized验证错误
403Forbidden禁止创建
404Not Found未找到

操作系统

接口地址 https://slapi.chuanglan.com/dplink/queryOperatingSystem

请求方式 POST

consumes ["application/json"]

produces ["/"]

接口描述 ``

HEAD请求参数

Body请求参数

请求示例

{
    "endDate":"2022-07-29",
    "shortUrl":"52.cn/v-6kp44",
    "startDate":"2022-07-28",
    "status":"0"
}

响应参数

参数名称参数说明类型schema
codestring
dataarray操作系统
  count数量integer
  logologo图标string
  percentage百分比string
  systemName系统名称string
  totalCount总量integer
messagestring
successboolean

响应示例

{
    "success":true,
    "message":"请求成功",
    "code":"000000",
    "data":[
        {
            "logo":null,
            "systemName":"Android",
            "percentage":"0.00%",
            "count":0,
            "totalCount":0
        },
        {
            "logo":null,
            "systemName":"MacOS",
            "percentage":"0.00%",
            "count":0,
            "totalCount":0
        },
        {
            "logo":null,
            "systemName":"Windows",
            "percentage":"0.00%",
            "count":0,
            "totalCount":0
        },
        {
            "logo":null,
            "systemName":"iOS",
            "percentage":"0.00%",
            "count":0,
            "totalCount":0
        },
        {
            "logo":null,
            "systemName":"other",
            "percentage":"0.00%",
            "count":0,
            "totalCount":0
        }
    ]
}

响应状态

状态码说明描述
200OKAPI响应结果«Map«string,string»»
201Created创建成功
401Unauthorized验证错误
403Forbidden禁止创建
404Not Found未找到

浏览器

接口地址 https://slapi.chuanglan.com/dplink/queryBrowser

请求方式 POST

consumes ["application/json"]

produces ["/"]

接口描述 ``

HEAD请求参数

Body请求参数

请求示例

{
    "endDate":"2022-07-29",
    "shortUrl":"52.cn/v-6kp44",
    "startDate":"2022-07-28",
    "status":"0"
}

响应参数

参数名称参数说明类型schema
codestring
dataarray浏览器
  count数量integer
  logologo图标string
  percentage百分比string
  systemName浏览器名称string
  totalCount数量integer
messagestring
successboolean

响应示例

{
    "success":true,
    "message":"请求成功",
    "code":"000000",
    "data":[
        {
            "logo":null,
            "systemName":"Chrome",
            "percentage":"0.00%",
            "count":0,
            "totalCount":0
        },
        {
            "logo":null,
            "systemName":"Firefox",
            "percentage":"0.00%",
            "count":0,
            "totalCount":0
        },
        {
            "logo":null,
            "systemName":"QQ浏览器",
            "percentage":"0.00%",
            "count":0,
            "totalCount":0
        },
        {    
            "logo":null,
            "systemName":"ie浏览器",
            "percentage":"0.00%",
            "count":0,
            "totalCount":0
        },
        {
            "logo":null,
            "systemName":"uc浏览器",
            "percentage":"0.00%",
            "count":0,
            "totalCount":0
        },
        {
            "logo":null,
            "systemName":"百度浏览器",
            "percentage":"0.00%",
            "count":0,
            "totalCount":0
        }
    ]
}

响应状态

状态码说明描述
200OKAPI响应结果«Map«string,string»»
201Created创建成功
401Unauthorized验证错误
403Forbidden禁止创建
404Not Found未找到

运营商

24小时热线 400-9669-253