最新抖⾳视频⽆⽔印解析接⼝及原理
695623459
1
⽤户将短链⼝令复制,打开抖⾳的时候,会直接弹出对⽅分享视频弹窗
⽤户点击打开看看,会调⽤视频详情接⼝,返回视频的详细信息。
2.视频详情接⼝
经抓包,抓到该接⼝如下
curl
-H 'Host: aweme-hl.snssdk'
-H 'Cookie: odin_tt=XXX'
-H 'x-ss-req-ticket: XXX'
-
H 'x-tt-token: XXX'
-H 'sdk-version: 1'
-H 'user-agent: com.ss.android.ugc.aweme/740 (XXX)'
-H 'x-gorgon: XXX'
-H 'x-khronos: XXX'
--compressed
'aweme-hl.snssdk/aweme/v1/aweme/detail/?
aweme_id=6722308029779332359&origin_type=link&os_api=23&device_type=Redmi%204A&device_platform=android&ssmix=a&iid=XXX&manifest_version_code=740&dpi=320&js_sdk_version=1. 1
2
3
4
5
6
7
8
9
10
11
实际上这个接⼝的上述header并⾮必须,某些接⼝参数也并⾮必须,可以简化如下
参数类型说明
aweme_id long 视频id
device_platform string 设备,其实这个值只需要存在即可,可以随意捏造,就算填写"CSDN"都没有问题
app_name string app名,固定,不允许修改
aid int 固定,不允许修改
3.视频id 「aweme_id」的获取
⽤户分享的短链,实际上会重定向到⼀个新的页⾯。
如图,302重定向到⼀个
4.接⼝数据分析
请求上述接⼝,aweme_id=6722308029779332359
得到如下结果
{
"status_code": 0,
"aweme_detail": {
"video": {
"cover": {
"uri": "tos-cn-p-0015/0d8b20890aed49d5a8f92ca857d07a44",
"url_list": ["p9-dy.byteimg/img/tos-cn-p-0015/0d8b20890aed49d5a8f92ca857d07a44~c5_300x400.jpeg", "p1-dy.byteimg/img/tos-cn-p-
0015/0d8b20890aed49d5a8f92ca857d07a44~c5_300x400.jpeg", "p3-dy.byteimg/img/tos-cn-p-0015/0d8b20890aed49d5a8f92ca857d07a44~c5_300x400.jpeg"],
"width": 720,
"height": 720
},
"play_addr": {
"uri": "v0200fee0000bl59elet8ah4rl1hnqa0",
"url_list": ["aweme-hl.snssdk/aweme/v1/play/?
video_id=v0200fee0000bl59elet8ah4rl1hnqa0&line=0&ratio=540p&media_type=4&vr_type=0&improve_bitrate=0&is_play_url=1", "api-hl.amemv/aweme/v1/play/?
video_id=v0200fee0000bl59elet8ah4rl1hnqa0&line=1&ratio=540p&media_type=4&vr_type=0&improve_bitrate=0&is_play_url=1"],
"width": 720,
"height": 720,
"url_key": "v0200fee0000bl59elet8ah4rl1hnqa0_h264_540p_0"
},
"ratio": "540p",
"download_addr": {
"uri": "v0200fee0000bl59elet8ah4rl1hnqa0",
"url_list": ["aweme-hl.snssdk/aweme/v1/play/?
video_id=v0200fee0000bl59elet8ah4rl1hnqa0&line=0&ratio=540p&watermark=1&media_type=4&vr_type=0&improve_bitrate=0&logo_name=aweme", "api-
hl.amemv/aweme/v1/play/?
video_id=v0200fee0000bl59elet8ah4rl1hnqa0&line=1&ratio=540p&watermark=1&media_type=4&vr_type=0&improve_bitrate=0&logo_name=aweme"],
"width": 720,
"height": 720
},
"has_watermark": true,
"play_addr_lowbr": {
"uri": "v0200fee0000bl59elet8ah4rl1hnqa0",
"url_list": ["aweme-hl.snssdk/aweme/v1/play/?
video_id=v0200fee0000bl59elet8ah4rl1hnqa0&line=0&ratio=540p&media_type=4&vr_type=0&improve_bitrate=0&is_play_url=1", "api-hl.amemv/aweme/v1/play/?
video_id=v0200fee0000bl59elet8ah4rl1hnqa0&line=1&ratio=540p&media_type=4&vr_type=0&improve_bitrate=0&is_play_url=1"],
"width": 720,
"height": 720,
"url_key": "v0200fee0000bl59elet8ah4rl1hnqa0_h264_540p_0"
},
"duration": 13600,
"is_h265": 0,
"origin_cover": {
"uri": "large/tos-cn-p-0015/22b8a64040ab4ed8908823b8c6007ea9",
"url_list": ["p3-dy.byteimg/large/tos-cn-p-0015/22b8a64040ab4ed8908823b8c6007ea9.jpeg", "p9-dy.byteimg/large/tos-cn-p-
0015/22b8a64040ab4ed8908823b8c6007ea9.jpeg", "p1-dy.byteimg/large/tos-cn-p-0015/22b8a64040ab4ed8908823b8c6007ea9.jpeg"],
"width": 720,
"height": 720
},
"bit_rate": [],
"width": 720,
"url_list": ["p9-dy.byteimg/obj/tos-cn-p-0015/e2993909e165470794f93d5f66c24b4b", "p1-dy.byteimg/obj/tos-cn-p-
0015/e2993909e165470794f93d5f66c24b4b", "p3-dy.byteimg/obj/tos-cn-p-0015/e2993909e165470794f93d5f66c24b4b"],
"width": 720,
"height": 720,
"uri": "tos-cn-p-0015/e2993909e165470794f93d5f66c24b4b"
},
"cdn_url_expired": 0,
"height": 1280
},
"share_info": {
"share_signature_desc": "TikTok: Make Every Second Count",
"share_url": "www.iesdouyin/share/video/6722308029779332359/?region=CN&mid=6701275998849092360&u_code=-1&titleType=title",
"share_weibo_desc": "#在抖⾳,记录美好⽣活#这也算⾮物质⽂化遗产了吧?#七彩七⼣ #⼥⼈最迷⼈的动作 @抖⾳⼩助⼿",
"bool_persist": 0,
"share_title_myself": "",
"share_title_other": "",
"share_link_desc": "#在抖⾳,记录美好⽣活#这也算⾮物质⽂化遗产了吧?#七彩七⼣ #⼥⼈最迷⼈的动作 @抖⾳⼩助⼿ %s 复制此链接,打开【抖⾳短视频】,直接观看视频!",
"share_signature_url": "tiktokv/",
"share_desc": "在抖⾳,记录美好⽣活",
"share_title": "这也算⾮物质⽂化遗产了吧?#七彩七⼣ #⼥⼈最迷⼈的动作 @抖⾳⼩助⼿",
"share_quote": ""
},
"is_relieve": false,
"region": "CN",
"promotions": [],
"create_time": 1565169519,
"xigua_task": {
"is_xigua_task": false
},
"misc_info": "{}",
"aweme_control": {
"can_forward": true,
"can_share": true,
"can_comment": true,
"can_show_comment": true
},
"cha_list": [{
"user_count": 0,
"sub_type": 0,
"collect_stat": 0,
"is_challenge": 0,
"desc": "央视综艺联合抖⾳发起“七彩七⼣”挑战赛,点击挑战页【参与】按钮使⽤“七彩七⼣”道具拍摄并投稿,快和你的ta⼀起来参加吧!",
"schema": "aweme://aweme/challenge/detail?cid=1608836241932295",
"share_info": {
"share_url": "www.iesdouyin/share/challenge/1608836241932295/?u_code=-1",
"share_desc": "央视综艺联合抖⾳发起“七彩七⼣”挑战赛,点击挑战页【参与】按钮使⽤“七彩七⼣”道具拍摄并投稿,快和你的ta⼀起来参加吧!",
"share_title": "我在抖⾳参加#七彩七⼣,超多有趣⾳乐短视频!赶快来玩!戳这⾥>>",
"share_signature_desc": "TikTok: Make Every Second Count",
"share_quote": "",
"share_weibo_desc": "我在抖⾳参加#七彩七⼣,超多有趣⾳乐短视频!赶快来玩!戳这⾥>>",
"bool_persist": 0,
"share_title_myself": "",
"share_title_other": "",
"share_signature_url": "tiktokv/"
},
"connect_music": [],
"view_count": 0,
"cha_name": "七彩七⼣",
"author": {
"followers_detail": null,
"type_label": null,
"ad_cover_url": null,
"cha_list": null,
"platform_sync_info": null,
"geofencing": null,
"cover_url": null,
"item_list": null,
"new_story_cover": null,
"relative_users": null
},
"type": 2,
"is_pgcshow": false,
"is_commerce": false,
"cha_attrs": null,
"cid": "1608836241932295"
}],
"is_fantasy": false,
"challenge_position": null,
"music": {
"cover_medium": {
"uri": "20b5d00006c3864ebabf5",
"url_list": ["p3-dy.byteimg/aweme/720x720/20b5d00006c3864ebabf5.jpeg", "p9-dy.byteimg/aweme/720x720/20b5d00006c3864ebabf5.jpeg", "p1-dy.byteimg/aweme/720x720/20b5d00006c3864ebabf5.jpeg"],
"width": 720,
"height": 720
},
"end_time": 0,
"position": null,
"is_restricted": false,
"prevent_item_download_status": 0,
"play_url": {
"uri": "p9-dy.byteimg/obj/ies-music/1636105740441640.mp3",
"url_list": ["p9-dy.byteimg/obj/ies-music/1636105740441640.mp3"],
"width": 720,
"height": 720
},
"binded_challenge_id": 0,
"prevent_download": false,
"strong_beat_url": {
"height": 720,
"uri": "p9-dy.byteimg/obj/ies-music/strong_beat/1639129102290952",
"url_list": ["p9-dy.byteimg/obj/ies-music/strong_beat/1639129102290952"],
"width": 720
},
"unshelve_countries": null,
"author": "药⽔哥",
"cover_hd": {
"uri": "20b5d00006c3864ebabf5",
"url_list": ["p3-dy.byteimg/aweme/1080x1080/20b5d00006c3864ebabf5.jpeg", "p9-dy.byteimg/aweme/1080x1080/20b5d00006c3864ebabf5.jpeg", "p1-dy.byteimg/aweme/1080x1080/20b5d00006c3864ebabf5.jpeg"],
"width": 720,
"height": 720
},
"collect_stat": 0,
"redirect": false,
"status": 1,
"owner_nickname": "药⽔哥",
"avatar_large": {
"uri": "20b5d00006c3864ebabf5",
"url_list": ["p3-dy.byteimg/aweme/1080x1080/20b5d00006c3864ebabf5.jpeg", "p9-dy.byteimg/aweme/1080x1080/20b5d00006c3864ebabf5.jpeg", "p1-dy.byteimg/aweme/1080x1080/20b5d00006c3864ebabf5.jpeg"],
"width": 720,
"height": 720
},
"preview_end_time": 0,
"preview_start_time": 0,
"id": 6701275998849092360,
"id_str": "6701275998849092360",
"title": "@药⽔哥创作的原声",
"is_original": false,
"mid": "6701275998849092360",
"is_video_self_see": false,
"avatar_medium": {
"url_list": ["p3-dy.byteimg/aweme/720x720/20b5d00006c3864ebabf5.jpeg", "p9-dy.byteimg/aweme/720x720/20b5d00006c3864ebabf5.jpeg", "p1-dy.byteimg/aweme/720x720/20b5d00006c3864ebabf5.jpeg"],
"width": 720,
"height": 720,
"uri": "20b5d00006c3864ebabf5"
},
"cover_large": {
"url_list": ["p3-dy.byteimg/aweme/1080x1080/20b5d00006c3864ebabf5.jpeg", "p9-dy.byteimg/aweme/1080x1080/20b5d00006c3864ebabf5.jpeg", "p1-dy.byteimg/aweme/1080x1080/20b5d00006c3864ebabf5.jpeg"],
"width": 720,
"height": 720,
"uri": "20b5d00006c3864ebabf5"
},
"cover_thumb": {
"height": 720,
"uri": "20b5d00006c3864ebabf5",
"url_list": ["p3-dy.byteimg/aweme/100x100/20b5d00006c3864ebabf5.jpeg", "p9-dy.byteimg/aweme/100x100/20b5d00006c3864ebabf5.jpeg", "p1-dy.byteimg/aweme/100x100/20b5d00006c3864ebabf5.jpeg"],
"width": 720
},
"start_time": 0,
"duration": 128,
"extra": "{\"has_edited\":0,\"reviewed\":1,\"beats\":{\"energy_trace\":\"p9-dy.byteimg/obj/ies-
music/strong_beat/v3/1640751651221518\",\"audio_effect_onset\":\"p3-dy.byteimg/obj/ies-music/strong_beat/v3/1640751651239948\",\"merged_beats\":\"p3-dy.byteimg/obj/ies-music/strong_beat/v3/1640751709689867\",\"beats_tracker\":\"p3-dy.byteimg/obj/ies-
music/strong_beat/v3/1640751709667332\"},\"douyin_beats_info\":{},\"schedule_search_time\":0}",
"offline_desc": "",
"is_del_video": false,
"album": "",
"schema_url": "",
"source_platform": 23,
"external_song_info": [],
"sec_uid": "MS4wLjABAAAAVIuYhsKg3QyAgvUMqYAOXVaYhMPWmEpJeeDO6ycOPIg",
"user_count": 0,
"owner_id": "109769200179",
"author_deleted": false,
"owner_handle": "ysg522222",
"avatar_thumb": {
"height": 720,
"uri": "20b5d00006c3864ebabf5",
"url_list": ["p3-dy.byteimg/aweme/100x100/20b5d00006c3864ebabf5.jpeg", "p9-dy.byteimg/aweme/100x100/20b5d00006c3864ebabf5.jpeg", "p1-dy.byteimg/aweme/100x100/20b5d00006c3864ebabf5.jpeg"],
"width": 720
}
},
"statistics": {
"aweme_id": "6722308029779332359",
"comment_count": 12643,
"digg_count": 188450,
"download_count": 3541,
"play_count": 0,
"share_count": 2331,
"forward_count": 24,
"lose_count": 0,
"lose_comment_count": 0
},
"risk_infos": {
"content": "",
"vote": false,
"warn": false,
"risk_sink": false,
"type": 0
},
"group_id": "6722306130351049996",
"long_video": null,
"user_digged": 0,
"is_ads": false,
"prevent_download": false,
"desc_language": "zh",
"distribute_type": 1,
"share_url": "www.iesdouyin/share/video/6722308029779332359/?region=CN&mid=6701275998849092360&u_code=-1&titleType=title",
"status": {
"is_private": false,
"private_status": 0,
"in_reviewing": false,
"reviewed": 1,
"self_see": false,
"allow_comment": true,
"is_delete": false,
"allow_share": true,
"with_goods": false,
"with_fusion_goods": false,
"is_prohibited": false,
"download_status": 0,
"aweme_id": "6722308029779332359"
},
"duration": 13600,
"nickname_position": null,
"desc": "这也算⾮物质⽂化遗产了吧?#七彩七⼣ #⼥⼈最迷⼈的动作 @抖⾳⼩助⼿",
"author": {
"live_verify": 0,
"ins_id": "",
"twitter_id": "",
"fb_expire_time": 0,
"region": "CN",
"prevent_download": false,
"status": 1,
"hide_search": false,
"youtube_channel_title": "",
"avatar_uri": "285610004f7565511d1f6",
"relative_users": null,
"custom_verify": "",
"duet_setting": 0,
"comment_filter_status": 0,
"account_region": "",
"platform_sync_info": null,
"user_canceled": false,
"avatar_168x168": {
"uri": "285610004f7565511d1f6",
"url_list": ["p3-dy.byteimg/img/mosaic-legacy/285610004f7565511d1f6~168x168.webp", "p9-dy.byteimg/img/mosaic-
legacy/285610004f7565511d1f6~168x168.webp", "p1-dy.byteimg/img/mosaic-legacy/285610004f7565511d1f6~168x168.webp"],
"width": 720,
"height": 720
},
"weibo_name": "",
"has_twitter_token": false,
"reflow_page_gid": 0,
"ad_cover_url": null,
"video_icon": {
"uri": "",
"url_list": [],
"width": 720,
"height": 720
},
"download_prompt_ts": 0,
"short_id": "12918345",
"location": "",
"need_recommend": 0,
"avatar_thumb": {
"uri": "285610004f7565511d1f6",
"url_list": ["p3-dy.byteimg/aweme/100x100/285610004f7565511d1f6.jpeg", "p9-dy.byteimg/aweme/100x100/285610004f7565511d1f6.jpeg", "p1-dy.byteimg/aweme/100x100/285610004f7565511d1f6.jpeg"],
"width": 720,
"height": 720
},
"youtube_channel_id": "",
"comment_setting": 0,
"is_binded_weibo": false,
"with_fusion_shop_entry": false,
"language": "zh-Hans",
"school_type": 0,
"react_setting": 0,
"weibo_verify": "",
"bind_phone": "",
"is_ad_fake": false,
"type_label": null,
"hide_location": false,
"story_count": 0,
"school_poi_id": "",
"commerce_user_level": 0,
"secret": 0,
"accept_private_policy": false,
"live_agreement_time": 0,
"avatar_300x300": {
"uri": "285610004f7565511d1f6",
"url_list": ["p3-dy.byteimg/img/mosaic-legacy/285610004f7565511d1f6~300x300.webp", "p9-dy.byteimg/img/mosaic-
legacy/285610004f7565511d1f6~300x300.webp", "p1-dy.byteimg/img/mosaic-legacy/285610004f7565511d1f6~300x300.webp"],
"width": 720,
"height": 720
},
"has_facebook_token": false,
"has_youtube_token": false,
"shield_comment_notice": 0,
"uid": "59898870726",
"youtube_expire_time": 0,
"with_shop_entry": false,
"geofencing": [],
"school_name": "",
"enterprise_verify_reason": "",
"user_rate": 1,
"share_qrcode_uri": "216a00215063b305b5ba",
"avatar_larger": {
"uri": "285610004f7565511d1f6",
"url_list": ["p3-dy.byteimg/aweme/1080x1080/285610004f7565511d1f6.jpeg", "p9-dy.byteimg/aweme/1080x1080/285610004f7565511d1f6.jpeg", "p1-dy.byteimg/aweme/1080x1080/285610004f7565511d1f6.jpeg"],
"width": 720,
"height": 720
},
"following_count": 0,
"total_favorited": 0,
"share_info": {
"share_title": "",
"share_qrcode_url": {
"uri": "216a00215063b305b5ba",
"url_list": ["p9-dy.byteimg/obj/216a00215063b305b5ba", "p1-dy.byteimg/obj/216a00215063b305b5ba", "p3-
dy.byteimg/obj/216a00215063b305b5ba"],
"width": 720,
"height": 720
},
"share_title_myself": "",
"share_title_other": "",
"share_url": "",
"share_weibo_desc": "",
"share_desc": ""
},
"show_image_bubble": false,
"create_time": 0,
"live_commerce": false,
"signature": "",
"favoriting_count": 0,
"special_lock": 1,
"apple_account": 0,
"constellation": 0,
"followers_detail": null,
"google_account": "",
"download_setting": -1,
"is_verified": true,
"weibo_url": "",
"sync_to_toutiao": 0,
"has_orders": false,
"is_phone_binded": false,
"user_period": 0,
"cha_list": null,
"with_commerce_entry": false,
"has_insights": false,
"item_list": null,
"is_star": false,
"aweme_count": 0,
"live_agreement": 0,
"cover_url": [{
"uri": "c8510002be9a3a61aad2",
"url_list": ["p9-dy.byteimg/obj/c8510002be9a3a61aad2", "p1-dy.byteimg/obj/c8510002be9a3a61aad2", "p3-
dy.byteimg/obj/c8510002be9a3a61aad2"],
"width": 720,
"height": 720
}],
"is_gov_media_vip": false,
"birthday": "",
"unique_id": "",
"verify_info": "",
"twitter_name": "",
"follower_status": 0,
"reflow_page_uid": 0,
"has_unread_story": false,
"avatar_medium": {
"uri": "285610004f7565511d1f6",
"url_list": ["p3-dy.byteimg/aweme/720x720/285610004f7565511d1f6.jpeg", "p9-dy.byteimg/aweme/720x720/285610004f7565511d1f6.jpeg", "p1-dy.byteimg/aweme/720x720/285610004f7565511d1f6.jpeg"],
"width": 720,
"height": 720
},
"with_dou_entry": false,
"room_id": 0,
"authority_status": 0,
"unique_id_modify_time": 1565244406,
"has_email": false,
"neiguang_shield": 0,
"new_story_cover": null,
"gender": 2,
"follow_status": 0,
抖音不雅小视频"follower_count": 0,
"user_mode": 0,
"cv_level": "",
"shield_follow_notice": 0,
"is_discipline_member": false,
"is_block": false,
"tw_expire_time": 0,
"shield_digg_notice": 0,
"nickname": "⾖可也叫dog",
"weibo_schema": "",