功能说明

输入豆包分享域名链接,根据 type 提取无水印的图片或视频原始资源。

请求

GET /api/doubao/parse

查询参数

参数 类型 必填 默认值 说明
url string 豆包分享链接
type string image 解析类型,imagevideo

响应

图片

{
  "type": "image",
  "count": 2,
  "data": [
    {
      "url": "https://...",
      "width": 1024,
      "height": 1024,
      "format": "png",
      "size": 123456
    }
  ]
}

视频

{
  "type": "video",
  "data": {
    "url": "https://...",
    "width": 1080,
    "height": 1920,
    "definition": "1080p",
    "poster_url": "https://..."
  }
}

示例

GET /api/doubao/parse?type=image&url=https://www.doubao.com/thread/aef4c7a4c78c2
GET /api/doubao/parse?type=video&url=https://www.doubao.com/video-sharing?share_id=35083351704233730&video_id=v0269cg10004d5e6oefog65smlkr0jl0

视频链接中包含 & 等特殊字符时,作为查询参数传递时建议先 URL 编码。

错误码