HTTP 接口:
POST /api/extract
Content-Type: application/json
{
"input": "整段分享文案或短链/长链"
}
命令行示例(curl):
curl -X POST http://<host>:8000/api/extract -H 'Content-Type: application/json' -d '{"input":"5.64 复制打开抖音... https://v.douyin.com/xxxx/ ..."}'
响应示例(节选):
{
"ok": true,
"input_url": "...",
"resolved_url": "https://www.douyin.com/video/7536478970787712282?xx",
"video_id": "7536478970787712282",
"debug": { "history": [ ... ] }
}