西瓜短视频解析

获取西瓜无水印视频链接

接口地址: https://api.leafone.cn/api/xigua

返回格式: JSON

请求方式: GET

请求示例: https://api.leafone.cn/api/xigua?url=https://www.ixigua.com/7445981200759390720

请求参数说明:

名称 必填 类型 说明
url string 西瓜短视频分享链接

返回参数说明:

名称 类型 说明
author string 视频作者
avatar string 作者头像
title string 视频标题
cover string 视频封面
time string 发布时间
url string 无水印视频链接

返回示例:

{
    "code": 200,
    "msg": "解析成功",
    "data": {
        "author": "小先生历史笔记",
        "avatar": "https://sf1-cdn-tos.toutiaostatic.com/img/user-avatar/b40e37e21a5ceadcbfedad596cf9db06~300x300.image?from=avatar",
        "title": "巴沙尔政权覆灭在即,俄伊打算放弃叙利亚?纯属无稽之谈 #叙利亚",
        "cover": "https://p3-sign.bdxiguaimg.com/tos-cn-i-dy/1aca8c2741cb406ca58f4dccc85f13de~tplv-pk90l89vgd-crop-center:864:486.avif?appId=1768&biz_tag=video1609_custom%2Flarge&channelId=0&customType=custom%2Flarge&imageType=video1609&is_stream=0&lk3s=9d3f5bff&logId=20241217030514E26529EFCE6F91070712&requestFrom=704&x-expires=1765911915&x-signature=F2GZMHVQX3kktATm2mn1Hcl84CA%3D",
        "time": "2024-12-08 18:09:55",
        "url": "https://v97.toutiaovod.com/0ad90a632fafd482252829babf21b528/67608936/video/tos/cn/tos-cn-ve-15/osIGLE7xaDMEYtfVQhejIe4NIpVQdIAeDC72AV/?a=13&ch=0&cr=0&dr=0&net=5&cd=0%7C0%7C0%7C0&cv=1&br=1613&bt=1613&cs=0&ds=4&ft=r_QbXBHUUmfAmdF_02D1YswHAX1tGImNFP9eFr3Kxrr12nzXT&mime_type=video_mp4&qs=0&rc=O2Y3OTs5ZjZlM2c2NmdnaEBpajo4Z3Y5cnZxdzczNGU0M0AvMmMyXy02NmMxYTQyM2MvYSNjby0vMmRzLV5gLS1kMGFzcw%3D%3D&btag=80000e000b0030&dy_q=1734375915&feature_id=46a7bb47b4fd1280f3d3825bf2b29388&l=202412170305150E61A02F949AF6BA576B"
    },
    "parsing_time": 1.166688
}

请求参数设置:

参数名称 参数值 操作


{
    "code": 200,
    "msg": "解析成功",
    "data": {
        "author": "小先生历史笔记",
        "avatar": "https://sf1-cdn-tos.toutiaostatic.com/img/user-avatar/b40e37e21a5ceadcbfedad596cf9db06~300x300.image?from=avatar",
        "title": "巴沙尔政权覆灭在即,俄伊打算放弃叙利亚?纯属无稽之谈 #叙利亚",
        "cover": "https://p3-sign.bdxiguaimg.com/tos-cn-i-dy/1aca8c2741cb406ca58f4dccc85f13de~tplv-pk90l89vgd-crop-center:864:486.avif?appId=1768&biz_tag=video1609_custom%2Flarge&channelId=0&customType=custom%2Flarge&imageType=video1609&is_stream=0&lk3s=9d3f5bff&logId=20241217030514E26529EFCE6F91070712&requestFrom=704&x-expires=1765911915&x-signature=F2GZMHVQX3kktATm2mn1Hcl84CA%3D",
        "time": "2024-12-08 18:09:55",
        "url": "https://v97.toutiaovod.com/0ad90a632fafd482252829babf21b528/67608936/video/tos/cn/tos-cn-ve-15/osIGLE7xaDMEYtfVQhejIe4NIpVQdIAeDC72AV/?a=13&ch=0&cr=0&dr=0&net=5&cd=0%7C0%7C0%7C0&cv=1&br=1613&bt=1613&cs=0&ds=4&ft=r_QbXBHUUmfAmdF_02D1YswHAX1tGImNFP9eFr3Kxrr12nzXT&mime_type=video_mp4&qs=0&rc=O2Y3OTs5ZjZlM2c2NmdnaEBpajo4Z3Y5cnZxdzczNGU0M0AvMmMyXy02NmMxYTQyM2MvYSNjby0vMmRzLV5gLS1kMGFzcw%3D%3D&btag=80000e000b0030&dy_q=1734375915&feature_id=46a7bb47b4fd1280f3d3825bf2b29388&l=202412170305150E61A02F949AF6BA576B"
    },
    "parsing_time": 1.166688
}

错误码格式说明:

名称 类型 说明
100 integer URL为空
404 integer 解析失败

代码示例:

暂无示例