抖音视频去水印下载

体验地址

国际惯例先上体验地址 https://liflag.cn/v

原理

  • 1、首先f12打开分享视频的链接https://v.douyin.com/jKQefwY/


获取到视频的id 为 7136473830976998693

  • 2、获取视频的地址 https://www.iesdouyin.com/web/api/v2/aweme/iteminfo/?item_ids=+视频id

比如刚才获取的id 的地址为 https://www.iesdouyin.com/web/api/v2/aweme/iteminfo/?item_ids=7136473830976998693

打开后能获取到视频相关的json,包括封面、背景音乐、视频信息和作者相关的信息

{
	"extra": {
		"now": 1662042080750,
		"logid": "202209012221200102081671741419EFF5"
	},
	"status_code": 0,
	"item_list": [{
		"aweme_id": "7136473830976998693",
		"desc": "\u4ece\u6b64\u8c01\u5bb6\u541b\u738b\u4e0d\u65e9\u671d?#\u56fd\u98ce\u53e4\u97f5 ",
		"create_time": 1661589802,
		"author": {
			"uid": "1517781965356670",
			"short_id": "66677581693",
			"nickname": "\u662f\u5999\u7487\u5440(9\u67081\u65e5\u6ee1\u6708)",
			"signature": "\u665a11\u70b9\u5f00\u64ad  \u4e0b\u5348\u4e0d\u5b9a\u65f6\u76f4\u64ad\u54e6",
			"avatar_larger": {
				"uri": "1080x1080/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb",
				"url_list": ["https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb.jpeg?from=116350172", "https://p26.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb.jpeg?from=116350172", "https://p6.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb.jpeg?from=116350172"]
			},
			"avatar_thumb": {
				"uri": "100x100/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb",
				"url_list": ["https://p26.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb.jpeg?from=116350172", "https://p6.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb.jpeg?from=116350172", "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb.jpeg?from=116350172"]
			},
			"avatar_medium": {
				"uri": "720x720/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb",
				"url_list": ["https://p26.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb.jpeg?from=116350172", "https://p6.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb.jpeg?from=116350172", "https://p3.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb.jpeg?from=116350172"]
			},
			"follow_status": 0,
			"unique_id": "66677581693",
			"followers_detail": null,
			"platform_sync_info": null,
			"geofencing": null,
			"policy_version": null,
			"type_label": null,
			"card_entries": null,
			"mix_info": null
		},
		"music": {
			"id": 7136473863525190414,
			"mid": "7136473863525190414",
			"title": "@\u662f\u5999\u7487\u5440(9\u67081\u65e5\u6ee1\u6708)\u521b\u4f5c\u7684\u539f\u58f0\u4e00\u662f\u5999\u7487\u5440(9\u67081\u65e5\u6ee1\u6708)",
			"author": "\u662f\u5999\u7487\u5440(9\u67081\u65e5\u6ee1\u6708)",
			"cover_hd": {
				"uri": "1080x1080/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb",
				"url_list": ["https://p5.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb.jpeg?from=116350172", "https://p26.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb.jpeg?from=116350172", "https://p6.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb.jpeg?from=116350172"]
			},
			"cover_large": {
				"uri": "1080x1080/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb",
				"url_list": ["https://p5.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb.jpeg?from=116350172", "https://p26.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb.jpeg?from=116350172", "https://p6.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb.jpeg?from=116350172"]
			},
			"cover_medium": {
				"uri": "720x720/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb",
				"url_list": ["https://p6.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb.jpeg?from=116350172", "https://p26.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb.jpeg?from=116350172", "https://p3.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb.jpeg?from=116350172"]
			},
			"cover_thumb": {
				"uri": "168x168/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb",
				"url_list": ["https://p11.douyinpic.com/img/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb~c5_168x168.jpeg?from=116350172", "https://p26.douyinpic.com/img/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb~c5_168x168.jpeg?from=116350172", "https://p3.douyinpic.com/img/aweme-avatar/tos-cn-i-0813_eda8f5a769c54396b1a6969bb37abcdb~c5_168x168.jpeg?from=116350172"]
			},
			"play_url": {
				"uri": "https://sf3-cdn-tos.douyinstatic.com/obj/ies-music/7136473866284600071.mp3",
				"url_list": ["https://sf3-cdn-tos.douyinstatic.com/obj/ies-music/7136473866284600071.mp3", "https://sf6-cdn-tos.douyinstatic.com/obj/ies-music/7136473866284600071.mp3"]
			},
			"duration": 15,
			"position": null,
			"status": 1
		},
		"cha_list": [{
			"cid": "1588212202920093",
			"cha_name": "\u56fd\u98ce\u53e4\u97f5",
			"desc": "",
			"user_count": 0,
			"connect_music": null,
			"type": 0,
			"cover_item": {
				"uri": "image-cut-tos/5dcf8b77d8f2f95651da5aa9e2a84274.jpg",
				"url_list": ["https://p9-sign.douyinpic.com/aweme/100x100/image-cut-tos/5dcf8b77d8f2f95651da5aa9e2a84274.jpg.jpeg?x-expires=1662062400\u0026x-signature=oPT9F2JmiK9yKO%2Bnccw4mS2048g%3D\u0026from=715538335", "https://p26-sign.douyinpic.com/aweme/100x100/image-cut-tos/5dcf8b77d8f2f95651da5aa9e2a84274.jpg.jpeg?x-expires=1662062400\u0026x-signature=WQfMPdnMWjtmKBFIjr3o1TLmxkI%3D\u0026from=715538335", "https://p3-sign.douyinpic.com/aweme/100x100/image-cut-tos/5dcf8b77d8f2f95651da5aa9e2a84274.jpg.jpeg?x-expires=1662062400\u0026x-signature=o1hsmIej0zpyC1h7mz%2BFS4R%2FmQM%3D\u0026from=715538335"]
			},
			"view_count": 0,
			"hash_tag_profile": "image-cut-tos/5dcf8b77d8f2f95651da5aa9e2a84274.jpg",
			"is_commerce": false
		}],
		"video": {
			"play_addr": {
				"uri": "v0200fg10000cc4thk3c77u16k3h4870",
				"url_list": ["https://aweme.snssdk.com/aweme/v1/playwm/?video_id=v0200fg10000cc4thk3c77u16k3h4870&ratio=720p&line=0"]
			},
			"cover": {
				"uri": "tos-cn-p-0015/6936d1cff0ca432f96c7b94c49750871_1661589809",
				"url_list": ["https://p26-sign.douyinpic.com/tos-cn-p-0015/6936d1cff0ca432f96c7b94c49750871_1661589809~c5_300x400.jpeg?x-expires=1663250400\u0026x-signature=2rjInuprgJi6SImAL1cyKtioNKY%3D\u0026from=3213915784_large\u0026s=PackSourceEnum_DOUYIN_REFLOW\u0026se=false\u0026sc=cover\u0026l=202209012221200102081671741419EFF5", "https://p3-sign.douyinpic.com/tos-cn-p-0015/6936d1cff0ca432f96c7b94c49750871_1661589809~c5_300x400.jpeg?x-expires=1663250400\u0026x-signature=JJ0VdqtgKSi8dkSQVEsyCwJG4wk%3D\u0026from=3213915784_large\u0026s=PackSourceEnum_DOUYIN_REFLOW\u0026se=false\u0026sc=cover\u0026l=202209012221200102081671741419EFF5", "https://p6-sign.douyinpic.com/tos-cn-p-0015/6936d1cff0ca432f96c7b94c49750871_1661589809~c5_300x400.jpeg?x-expires=1663250400\u0026x-signature=OD897z0%2BWfkQQfq%2FkdKEfGY1pCg%3D\u0026from=3213915784_large\u0026s=PackSourceEnum_DOUYIN_REFLOW\u0026se=false\u0026sc=cover\u0026l=202209012221200102081671741419EFF5"]
			},
			"height": 1080,
			"width": 1920,
			"dynamic_cover": {
				"uri": "tos-cn-p-0015/70cc98635f5342faa288deb67bf10b52_1661589808",
				"url_list": ["https://p6-sign.douyinpic.com/obj/tos-cn-p-0015/70cc98635f5342faa288deb67bf10b52_1661589808?x-expires=1663250400\u0026x-signature=nfXZPnuu%2ByDDKW9FNS89cy3WaKI%3D\u0026from=3213915784_large", "https://p26-sign.douyinpic.com/obj/tos-cn-p-0015/70cc98635f5342faa288deb67bf10b52_1661589808?x-expires=1663250400\u0026x-signature=IdscxeVo%2Bi9EfPitAD6SxyQXh48%3D\u0026from=3213915784_large", "https://p9-sign.douyinpic.com/obj/tos-cn-p-0015/70cc98635f5342faa288deb67bf10b52_1661589808?x-expires=1663250400\u0026x-signature=qDkUE24TuTnyiIVcH1bvNMEdg74%3D\u0026from=3213915784_large"]
			},
			"origin_cover": {
				"uri": "tos-cn-p-0015/0161505e69ba4beda9b617746e811898_1661589806",
				"url_list": ["https://p6-sign.douyinpic.com/tos-cn-p-0015/0161505e69ba4beda9b617746e811898_1661589806~tplv-dy-360p.jpeg?x-expires=1663250400\u0026x-signature=AUkprcPcXWkJ7ckf4S%2B0aGFXW1M%3D\u0026from=3213915784\u0026se=false\u0026biz_tag=feed_cover\u0026l=202209012221200102081671741419EFF5", "https://p26-sign.douyinpic.com/tos-cn-p-0015/0161505e69ba4beda9b617746e811898_1661589806~tplv-dy-360p.jpeg?x-expires=1663250400\u0026x-signature=brGD7PFm6zDOG5C5ZxPAc%2FGrq5o%3D\u0026from=3213915784\u0026se=false\u0026biz_tag=feed_cover\u0026l=202209012221200102081671741419EFF5", "https://p3-sign.douyinpic.com/tos-cn-p-0015/0161505e69ba4beda9b617746e811898_1661589806~tplv-dy-360p.jpeg?x-expires=1663250400\u0026x-signature=6edCe%2FzS83rHh%2B%2B8GQ0UnxElRs0%3D\u0026from=3213915784\u0026se=false\u0026biz_tag=feed_cover\u0026l=202209012221200102081671741419EFF5"]
			},
			"ratio": "720p",
			"has_watermark": true,
			"bit_rate": null,
			"duration": 15790,
			"vid": "v0200fg10000cc4thk3c77u16k3h4870"
		},
		"share_url": "https://www.iesdouyin.com/share/video/7136473830976998693/?region=\u0026mid=7136473863525190414\u0026u_code=0\u0026did=MS4wLjABAAAANwkJuWIRFOzg5uCpDRpMj4OX-QryoDgn-yYlXQnRwQQ\u0026iid=MS4wLjABAAAANwkJuWIRFOzg5uCpDRpMj4OX-QryoDgn-yYlXQnRwQQ\u0026with_sec_did=1\u0026titleType=title",
		"statistics": {
			"aweme_id": "7136473830976998693",
			"comment_count": 241,
			"digg_count": 7787,
			"play_count": 0,
			"share_count": 546
		},
		"text_extra": [{
			"start": 10,
			"end": 15,
			"type": 1,
			"hashtag_name": "\u56fd\u98ce\u53e4\u97f5",
			"hashtag_id": 1588212202920093
		}],
		"share_info": {
			"share_weibo_desc": "#\u5728\u6296\u97f3,\u8bb0\u5f55\u7f8e\u597d\u751f\u6d3b#\u4ece\u6b64\u8c01\u5bb6\u541b\u738b\u4e0d\u65e9\u671d?#\u56fd\u98ce\u53e4\u97f5 ",
			"share_desc": "\u5728\u6296\u97f3,\u8bb0\u5f55\u7f8e\u597d\u751f\u6d3b",
			"share_title": "\u4ece\u6b64\u8c01\u5bb6\u541b\u738b\u4e0d\u65e9\u671d?#\u56fd\u98ce\u53e4\u97f5 "
		},
		"video_labels": null,
		"duration": 15790,
		"aweme_type": 4,
		"image_infos": null,
		"risk_infos": {
			"warn": false,
			"type": 0,
			"content": "",
			"reflow_unplayable": 0
		},
		"comment_list": null,
		"author_user_id": 1517781965356670,
		"geofencing": null,
		"video_text": null,
		"label_top_text": null,
		"promotions": null,
		"long_video": null,
		"is_preview": 0,
		"group_id": 7136473830976998693,
		"is_live_replay": false,
		"forward_id": "0",
		"images": null,
		"group_id_str": "7136473830976998693"
	}],
	"filter_list": []
}
  • 3、下载视频 视频地址为 video节点下的play_addr 的值 https://aweme.snssdk.com/aweme/v1/play/?video_id=v0200fg10000cc4thk3c77u16k3h4870&ratio=720p&line=0 这就是该视频无水印的下载地址

  • 4、当然该地址并不是实际地址,实际的oss地址是由该地址转发的,手动复制地址打开会直接跳转到视频地址可以直接下载,用代码下载的话需要定义header,然后获取到实际地址后用流下载即可


已有 0 条评论

    我有话说: