极速短网址 · SEO增强 · 批量转换
单个生成:
POST http://localhost/api/create
Content-Type: application/json
{
"url": "https://example.com/very/long/url",
"tag": "news", // 可选: 随机标签分类
"fetch_title": true, // 可选: 自动抓取标题
"token": "sk-shorturl-pro-2026"
}
批量生成:
POST http://localhost/api/batch
Content-Type: application/json
{
"urls": ["url1", "url2", "url3"],
"tag": "tech", // 可选: 不填则每个随机
"fetch_title": true,
"push_baidu": false, // 可选: 推送百度收录
"token": "sk-shorturl-pro-2026"
}
响应示例:
{
"code": 0,
"msg": "success",
"data": {
"short_url": "http://localhost/Ab3xK9",
"code": "Ab3xK9",
"tag": "热点资讯",
"title": "页面标题"
}
}