支持视频、图集和实况图片。接口路径:/api/parse。
服务状态:/api/health。
使用 GET 的 url 参数,或 POST JSON {"url":"分享链接或文本"}。响应格式为 {code, msg, data}。
fetch('/api/parse', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ url: 'https://v.douyin.com/xxxxxxxx/' })
}).then(response => response.json());
解析成功时 code 为 200,具体媒体信息位于 data。上游接口异常时会返回错误原因。