使用API Token进行鉴权,在请求头中添加 x-api-token: YOUR_TOKEN
Base URL: https://dlj.666douyin.cn/api/open
{
"original_url": "https://example.com/long-url" // 必填
}
{
"original_url": "https://example.com/long-url", // 必填
"title": "链接标题", // 可选
"custom_code": "mycode", // 可选,自定义短码
"group_id": 1 // 可选,分组ID
}
{
"id": 1,
"short_code": "abc123",
"original_url": "https://example.com/long-url",
"short_url": "https://dlj.666douyin.cn/abc123",
"click_count": 0,
"created_at": "2026-04-20T12:00:00Z"
}
{
"original_url": "https://new-url.com", // 可选
"title": "新标题", // 可选
"status": "active" // active / disabled
}
API调用频率限制根据套餐等级不同:
超出限制将返回 429 Too Many Requests
| 状态码 | 说明 |
|---|---|
| 200 | 成功 |
| 400 | 请求参数错误 |
| 401 | 未认证 / Token无效 |
| 403 | 权限不足 / 配额超限 |
| 404 | 资源不存在 |
| 429 | 请求过于频繁 |
| 500 | 服务器内部错误 |