分享链接转短链接
把抖音作品分享链接转换成 `v.douyin.com` 短链;`belong=aweme` 是能缩短的前提。
Authorization
bearerAuth AuthorizationBearer <token>
仅在 startServer 传了 token 时生效
In: header
Query Parameters
target*string
需要缩短的分享链接
Length
1 <= lengthbelong?string
短链归属类型,抖音作品固定为 aweme,默认 aweme
Length
1 <= lengthDefault
"aweme"Response Body
application/json
application/json
curl -X GET "https://example.com/api/douyin/fetch_short_url?target=string"{ "success": true, "data": { "code": 0, "data": "string", "message": "string", "now": 0 }, "error": { "kind": "validation", "code": "string", "message": "string", "retryable": true, "platform": { "code": "string", "message": "string" }, "http": { "status": 0, "statusText": "string" }, "issues": [ { "path": "string", "message": "string", "received": null } ] }, "message": "string", "meta": { "requestId": "string", "clientId": "string", "platform": "douyin", "endpoint": "string", "durationMs": 0, "attempts": 0, "trace": [ { "url": "string", "method": "string", "status": 0, "durationMs": 0, "reason": "initial", "retryOf": "string" } ] }, "requestPath": "/api/bilibili/fetch_one_video?bvid=BV1xx"}