https://v.douyin.com/Du2M7R
如果你对这方面有兴趣,可以和我们一群程序员交流学习,共同进步
695623459
经抓包,抓到该接口如下
curl
-H 'Host: aweme-hl.snssdk.com'
-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
'https://aweme-hl.snssdk.com/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.19.4.12&uuid=XXX&version_code=740&app_name=aweme&version_name=7.4.0&ts=1565242929&openudid=XXX&device_id=XXX&resolution=720*1280&os_version=6.0.1&language=zh&device_brand=Xiaomi&app_type=normal&ac=wifi&update_version_code=7402&aid=1128&channel=xiaomi&_rticket=XXX'
实际上这个接口的上述header并非必须,某些接口参数也并非必须,可以简化如下
https://aweme-hl.snssdk.com/aweme/v1/aweme/detail/?aweme_id=6722308029779332359&device_platform=ios&app_name=aweme&aid=1128
参数说明:
参数 | 类型 | 说明 |
---|---|---|
aweme_id | long | 视频id |
device_platform | string | 设备,其实这个值只需要存在即可,可以随意捏造,就算填写"CSDN"都没有问题 |
app_name | string | app名,固定,不允许修改 |
aid | int | 固定,不允许修改 |
用户分享的短链,实际上会重定向到一个新的页面。
如图,302重定向到一个新的地址
https://www.iesdouyin.com/share/video/6722308029779332359/?region=CN&mid=6701275998849092360&u_code=1613ld41c&titleType=title&utm_source=copy_link&utm_campaign=client_share&utm_medium=android&app=aweme×tamp=1565234977
该地址中的6722308029779332359就是aweme_id
请求上述接口,aweme_id=6722308029779332359
得到如下结果
{
"status_code": 0,
"aweme_detail": {
"video": {
"cover": {
"uri": "tos-cn-p-0015/0d8b20890aed49d5a8f92ca857d07a44",
"url_list": ["https://p9-dy.byteimg.com/img/tos-cn-p-0015/0d8b20890aed49d5a8f92ca857d07a44~c5_300x400.jpeg", "https://p1-dy.byteimg.com/img/tos-cn-p-0015/0d8b20890aed49d5a8f92ca857d07a44~c5_300x400.jpeg", "https://p3-dy.byteimg.com/img/tos-cn-p-0015/0d8b20890aed49d5a8f92ca857d07a44~c5_300x400.jpeg"],
"width": 720,
"height": 720
},
"play_addr": {
"uri": "v0200fee0000bl59elet8ah4rl1hnqa0",
"url_list": ["https://aweme-hl.snssdk.com/aweme/v1/play/?video_id=v0200fee0000bl59elet8ah4rl1hnqa0&line=0&ratio=540p&media_type=4&vr_type=0&improve_bitrate=0&is_play_url=1", "https://api-hl.amemv.com/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": ["https://aweme-hl.snssdk.com/aweme/v1/play/?video_id=v0200fee0000bl59elet8ah4rl1hnqa0&line=0&ratio=540p&watermark=1&media_type=4&vr_type=0&improve_bitrate=0&logo_name=aweme", "https://api-hl.amemv.com/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": ["https://aweme-hl.snssdk.com/aweme/v1/play/?video_id=v0200fee0000bl59elet8ah4rl1hnqa0&line=0&ratio=540p&media_type=4&vr_type=0&improve_bitrate=0&is_play_url=1", "https://api-hl.amemv.com/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": ["http://p3-dy.byteimg.com/large/tos-cn-p-0015/22b8a64040ab4ed8908823b8c6007ea9.jpeg", "http://p9-dy.byteimg.com/large/tos-cn-p-0015/22b8a64040ab4ed8908823b8c6007ea9.jpeg", "http://p1-dy.byteimg.com/large/tos-cn-p-0015/22b8a64040ab4ed8908823b8c6007ea9.jpeg"],
"width": 720,
"height": 720
},
"bit_rate": [],
"width": 720,
"dynamic_cover": {
"url_list": ["https://p9-dy.byteimg.com/obj/tos-cn-p-0015/e2993909e165470794f93d5f66c24b4b", "https://p1-dy.byteimg.com/obj/tos-cn-p-0015/e2993909e165470794f93d5f66c24b4b", "https://p3-dy.byteimg.com/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": "https://www.iesdouyin.com/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": "https://tiktokv.com/",
"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": "https://www.iesdouyin.com/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": "https://tiktokv.com/"
},
"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": ["https://p3-dy.byteimg.com/aweme/720x720/20b5d00006c3864ebabf5.jpeg", "https://p9-dy.byteimg.com/aweme/720x720/20b5d00006c3864ebabf5.jpeg", "https://p1-dy.byteimg.com/aweme/720x720/20b5d00006c3864ebabf5.jpeg"],
"width": 720,
"height": 720
},
"end_time": 0,
"position": null,
"is_restricted": false,
"prevent_item_download_status": 0,
"play_url": {
"uri": "http://p9-dy.byteimg.com/obj/ies-music/1636105740441640.mp3",
"url_list": ["http://p9-dy.byteimg.com/obj/ies-music/1636105740441640.mp3"],
"width": 720,
"height": 720
},
"binded_challenge_id": 0,
"author_position": null,
"prevent_download": false,
"strong_beat_url": {
"height": 720,
"uri": "http://p9-dy.byteimg.com/obj/ies-music/strong_beat/1639129102290952",
"url_list": ["http://p9-dy.byteimg.com/obj/ies-music/strong_beat/1639129102290952"],
"width": 720
},
"unshelve_countries": null,
"author": "药水哥",
"cover_hd": {
"uri": "20b5d00006c3864ebabf5",
"url_list": ["https://p3-dy.byteimg.com/aweme/1080x1080/20b5d00006c3864ebabf5.jpeg", "https://p9-dy.byteimg.com/aweme/1080x1080/20b5d00006c3864ebabf5.jpeg", "https://p1-dy.byteimg.com/aweme/1080x1080/20b5d00006c3864ebabf5.jpeg"],
"width": 720,
"height": 720
},
"collect_stat": 0,
"redirect": false,
"status": 1,
"owner_nickname": "药水哥",
"avatar_large": {
"uri": "20b5d00006c3864ebabf5",
"url_list": ["https://p3-dy.byteimg.com/aweme/1080x1080/20b5d00006c3864ebabf5.jpeg", "https://p9-dy.byteimg.com/aweme/1080x1080/20b5d00006c3864ebabf5.jpeg", "https://p1-dy.byteimg.com/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": ["https://p3-dy.byteimg.com/aweme/720x720/20b5d00006c3864ebabf5.jpeg", "https://p9-dy.byteimg.com/aweme/720x720/20b5d00006c3864ebabf5.jpeg", "https://p1-dy.byteimg.com/aweme/720x720/20b5d00006c3864ebabf5.jpeg"],
"width": 720,
"height": 720,
"uri": "20b5d00006c3864ebabf5"
},
"cover_large": {
"url_list": ["https://p3-dy.byteimg.com/aweme/1080x1080/20b5d00006c3864ebabf5.jpeg", "https://p9-dy.byteimg.com/aweme/1080x1080/20b5d00006c3864ebabf5.jpeg", "https://p1-dy.byteimg.com/aweme/1080x1080/20b5d00006c3864ebabf5.jpeg"],
"width": 720,
"height": 720,
"uri": "20b5d00006c3864ebabf5"
},
"cover_thumb": {
"height": 720,
"uri": "20b5d00006c3864ebabf5",
"url_list": ["https://p3-dy.byteimg.com/aweme/100x100/20b5d00006c3864ebabf5.jpeg", "https://p9-dy.byteimg.com/aweme/100x100/20b5d00006c3864ebabf5.jpeg", "https://p1-dy.byteimg.com/aweme/100x100/20b5d00006c3864ebabf5.jpeg"],
"width": 720
},
"start_time": 0,
"duration": 128,
"extra": "{\"has_edited\":0,\"reviewed\":1,\"beats\":{\"energy_trace\":\"http://p9-dy.byteimg.com/obj/ies-music/strong_beat/v3/1640751651221518\",\"audio_effect_onset\":\"http://p3-dy.byteimg.com/obj/ies-music/strong_beat/v3/1640751651239948\",\"merged_beats\":\"http://p3-dy.byteimg.com/obj/ies-music/strong_beat/v3/1640751709689867\",\"beats_tracker\":\"http://p3-dy.byteimg.com/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": ["https://p3-dy.byteimg.com/aweme/100x100/20b5d00006c3864ebabf5.jpeg", "https://p9-dy.byteimg.com/aweme/100x100/20b5d00006c3864ebabf5.jpeg", "https://p1-dy.byteimg.com/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": "https://www.iesdouyin.com/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": ["http://p3-dy.byteimg.com/img/mosaic-legacy/285610004f7565511d1f6~168x168.webp", "http://p9-dy.byteimg.com/img/mosaic-legacy/285610004f7565511d1f6~168x168.webp", "http://p1-dy.byteimg.com/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": ["https://p3-dy.byteimg.com/aweme/100x100/285610004f7565511d1f6.jpeg", "https://p9-dy.byteimg.com/aweme/100x100/285610004f7565511d1f6.jpeg", "https://p1-dy.byteimg.com/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": ["http://p3-dy.byteimg.com/img/mosaic-legacy/285610004f7565511d1f6~300x300.webp", "http://p9-dy.byteimg.com/img/mosaic-legacy/285610004f7565511d1f6~300x300.webp", "http://p1-dy.byteimg.com/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": ["https://p3-dy.byteimg.com/aweme/1080x1080/285610004f7565511d1f6.jpeg", "https://p9-dy.byteimg.com/aweme/1080x1080/285610004f7565511d1f6.jpeg", "https://p1-dy.byteimg.com/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": ["https://p9-dy.byteimg.com/obj/216a00215063b305b5ba", "https://p1-dy.byteimg.com/obj/216a00215063b305b5ba", "https://p3-dy.byteimg.com/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": ["https://p9-dy.byteimg.com/obj/c8510002be9a3a61aad2", "https://p1-dy.byteimg.com/obj/c8510002be9a3a61aad2", "https://p3-dy.byteimg.com/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": ["https://p3-dy.byteimg.com/aweme/720x720/285610004f7565511d1f6.jpeg", "https://p9-dy.byteimg.com/aweme/720x720/285610004f7565511d1f6.jpeg", "https://p1-dy.byteimg.com/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": "",
"story_open": false,
"verification_type": 1,
"sec_uid": "MS4wLjABAAAA0Dnmi-9Gg6hEgW1N4Vg07fcvhTWOmU7FweH9pAm2_fQ"
},
"comment_list": null,
"text_extra": [{
"user_id": "6796248446",
"type": 0,
"sec_uid": "MS4wLjABAAAAGA9bHrExvrQmowuVfRZxjG4s07M7EUjf1PlaHRHqdls",
"start": 29,
"end": 35
}, {
"end": 18,
"type": 1,
"hashtag_name": "七彩七夕",
"hashtag_id": "1608836241932295",
"is_commerce": false,
"start": 13
}, {
"type": 1,
"hashtag_name": "女人最迷人的动作",
"hashtag_id": "1581856270185485",
"is_commerce": false,
"start": 19,
"end": 28
}],
"image_infos": null,
"position": null,
"uniqid_position": null,
"author_user_id": 59898870726,
"interaction_stickers": null,
"origin_comment_ids": null,
"aweme_id": "6722308029779332359",
"aweme_type": 0,
"sort_label": "",
"video_text": [],
"with_promotional_music": false,
"item_duet": 0,
"rate": 10,
"bodydance_score": 0,
"is_pgcshow": false,
"vr_type": 0,
"label_top_text": null,
"item_react": 0,
"is_top": 0,
"cmt_swt": false,
"geofencing": [],
"collect_stat": 0,
"item_comment_settings": 0,
"distance": "",
"is_vr": false,
"is_hash_tag": 1,
"video_labels": null,
"poi_info": {
"icon_on_map": {
"width": 720,
"height": 720,
"uri": "9b9f0000b4780966e7d6",
"url_list": ["https://p3-dy.byteimg.com/obj/9b9f0000b4780966e7d6", "https://p9-dy.byteimg.com/obj/9b9f0000b4780966e7d6", "https://p1-dy.byteimg.com/obj/9b9f0000b4780966e7d6"]
},
"icon_on_entry": {
"uri": "9b9b00005de3e48dc45a",
"url_list": ["https://p9-dy.byteimg.com/obj/9b9b00005de3e48dc45a", "https://p1-dy.byteimg.com/obj/9b9b00005de3e48dc45a", "https://p3-dy.byteimg.com/obj/9b9b00005de3e48dc45a"],
"width": 720,
"height": 720
},
"poi_frontend_type": null,
"collect_stat": 0,
"poi_longitude": 106.628114,
"expand_type": 1,
"distance": "",
"poi_latitude": 30.45617,
"poi_name": "摩尔春天百货",
"poi_subtitle_type": 0,
"is_admin_area": false,
"user_count": 4813,
"item_count": 1713,
"cover_thumb": {
"uri": "42dd001cefd27779e5e7",
"url_list": ["https://p9-dy.byteimg.com/obj/42dd001cefd27779e5e7", "https://p1-dy.byteimg.com/obj/42dd001cefd27779e5e7", "https://p3-dy.byteimg.com/obj/42dd001cefd27779e5e7"],
"width": 720,
"height": 720
},
"icon_on_info": {
"url_list": ["https://p3-dy.byteimg.com/obj/9b9d00022313b7094a75", "https://p9-dy.byteimg.com/obj/9b9d00022313b7094a75", "https://p1-dy.byteimg.com/obj/9b9d00022313b7094a75"],
"width": 720,
"height": 720,
"uri": "9b9d00022313b7094a75"
},
"show_type": 1,
"poi_id": "6601126235177224206",
"icon_type": 3,
"voucher_release_areas": null,
"poi_backend_type": {
"code": "050101",
"name": "购物;商场;商场"
},
"share_info": {
"bool_persist": 0,
"share_title_myself": "",
"share_title_other": "",
"share_url": "https://www.iesdouyin.com/share/poilist/?id=B0FFFDFBHD",
"share_weibo_desc": "摩尔春天百货附近超多有趣的抖音视频,一起来玩,戳这里",
"share_desc": "",
"share_title": "摩尔春天百货附近超多有趣的抖音视频,一起来玩,戳这里"
},
"cover_large": {
"uri": "42dd001cefd27779e5e7",
"url_list": ["https://p9-dy.byteimg.com/obj/42dd001cefd27779e5e7", "https://p1-dy.byteimg.com/obj/42dd001cefd27779e5e7", "https://p3-dy.byteimg.com/obj/42dd001cefd27779e5e7"],
"width": 720,
"height": 720
},
"address_info": {
"district": "广安区",
"address": "滨河路88号",
"simple_addr": "广安市广安区滨河路88号",
"city_code": "511600",
"country": "中国",
"country_code": "CN",
"province": "四川省",
"city": "广安市"
},
"view_count": "1162087",
"type_code": "060102",
"cover_hd": {
"url_list": ["https://p3-dy.byteimg.com/obj/42dd001cefd27779e5e7", "https://p9-dy.byteimg.com/obj/42dd001cefd27779e5e7", "https://p1-dy.byteimg.com/obj/42dd001cefd27779e5e7"],
"width": 720,
"height": 720,
"uri": "42dd001cefd27779e5e7"
},
"cover_medium": {
"uri": "42dd001cefd27779e5e7",
"url_list": ["https://p1-dy.byteimg.com/obj/42dd001cefd27779e5e7", "https://p3-dy.byteimg.com/obj/42dd001cefd27779e5e7", "https://p9-dy.byteimg.com/obj/42dd001cefd27779e5e7"],
"width": 720,
"height": 720
}
},
"commerce_config_data": null,
"video_control": {
"allow_duet": true,
"show_progress_bar": 0,
"draft_progress_bar": 0,
"allow_react": true,
"prevent_download_type": 0,
"allow_dynamic_wallpaper": true,
"timer_status": 1,
"allow_download": true,
"share_type": 1
}
},
"extra": {
"logid": "20190808140646010029055092536F8C",
"now": 1565244406000,
"fatal_item_ids": []
},
"log_pb": {
"impr_id": "20190808140646010029055092536F8C"
}
}
info_json = 请求结果
那么,info_json.aweme_detail.video.play_addr.url_list就是实际的播放地址数组了了,无水印的,一般里面有两个链接
[
0: "https://aweme-hl.snssdk.com/aweme/v1/play/?video_id=v0200fee0000bl59elet8ah4rl1hnqa0&line=0&ratio=540p&media_type=4&vr_type=0&improve_bitrate=0&is_play_url=1",
1: "https://api-hl.amemv.com/aweme/v1/play/?video_id=v0200fee0000bl59elet8ah4rl1hnqa0&line=1&ratio=540p&media_type=4&vr_type=0&improve_bitrate=0&is_play_url=1"
]
取出一个进行下载即可。
超出抖音的调用频率限制,接口正常响应,但是返回的数据是空的
在最新抖音视频无水印解析接口-突破频率限制给出了解决
{
"status_code": 0,
"aweme_detail": {
"video": {
"ratio": "720p",
"play_addr": {
"url_list": []
},
"height": 1024,
"width": 576,
"bit_rate": [{
"bit_rate": 2053004,
"gear_name": "normal",
"quality_type": 0
}],
"download_addr": {
"url_list": [],
"uri": ""
},
"has_watermark": true,
"play_addr_lowbr": {
"url_list": [],
"uri": ""
},
"dynamic_cover": {
"url_list": [],
"uri": ""
}
},
"video_labels": [],
"is_vr": false,
"vr_type": 0,
"statistics": {
"play_count": 1300405217,
"comment_count": 343735703,
"share_count": 591234323,
"digg_count": 454542222
},
"author": {},
"music": {
"status": 1,
"extra": "{\"has_edited\": 0}",
"is_original": false,
"offline_desc": "",
"audio_track": {
"url_list": []
},
"play_url": {
"url_list": []
},
"effects_data": {
"url_list": []
}
},
"status": {
"with_goods": false,
"is_delete": false,
"private_status": 0,
"with_fusion_goods": false,
"allow_comment": true,
"allow_share": true,
"is_private": false
},
"video_text": [],
"is_top": 0,
"aweme_type": 0,
"geofencing": [],
"region": "CN",
"is_pgcshow": false,
"is_relieve": false,
"text_extra": [{
"at_user_type": "",
"type": 0
}],
"cha_list": []
}
}