cURL
curl --request GET \
--url 'https://api.keyapi.ai/v1/douyin/app/fetch_music_detail?music_id=7136850194742315016' \
--header 'Authorization: Bearer <YOUR_API_KEY>'import requests
response = requests.get(
'https://api.keyapi.ai/v1/douyin/app/fetch_music_detail',
params={"music_id": "7136850194742315016"},
headers={'Authorization': 'Bearer <YOUR_API_KEY>'}
)
print(response.json())const params = new URLSearchParams({"music_id": "7136850194742315016"});
const response = await fetch(`https://api.keyapi.ai/v1/douyin/app/fetch_music_detail?${params}`, {
method: 'GET',
headers: { 'Authorization': 'Bearer <YOUR_API_KEY>' }
});
const data = await response.json();
console.log(data);{
"code": 0,
"message": "success",
"data": {
"status_code": 0,
"msg": "success",
"music_info": {
"id": "7136850194742315016",
"id_str": "7136850194742315016",
"title": "深海",
"author": "FRESH_ye",
"album": "",
"cover_hd": {
"uri": "tos-cn-v-2774c002/7fab9610e0424ef4a78de1ec6b00faa9",
"url_list": [
"https://p3.douyinpic.com/tos-cn-v-2774c002/7fab9610e0424ef4a78de1ec6b00faa9~tplv-dy-resize-walign-adapt-aq:1080:q75.heic?biz_tag=aweme_music&s=PackSourceEnum_MUSIC_DETAIL&sc=cover"
],
"width": 720,
"height": 720
},
"cover_large": {
"uri": "tos-cn-v-2774c002/7fab9610e0424ef4a78de1ec6b00faa9",
"url_list": [
"https://p3.douyinpic.com/tos-cn-v-2774c002/7fab9610e0424ef4a78de1ec6b00faa9~tplv-dy-resize-walign-adapt-aq:720:q75.heic?biz_tag=aweme_music&s=PackSourceEnum_MUSIC_DETAIL&sc=cover"
],
"width": 720,
"height": 720
},
"cover_medium": {
"uri": "tos-cn-v-2774c002/7fab9610e0424ef4a78de1ec6b00faa9",
"url_list": [
"https://p3.douyinpic.com/tos-cn-v-2774c002/7fab9610e0424ef4a78de1ec6b00faa9~tplv-dy-resize-walign-adapt-aq:200:q75.heic?biz_tag=aweme_music&s=PackSourceEnum_MUSIC_DETAIL&sc=cover"
],
"width": 720,
"height": 720
},
"cover_thumb": {
"uri": "tos-cn-v-2774c002/7fab9610e0424ef4a78de1ec6b00faa9",
"url_list": [
"https://p3.douyinpic.com/tos-cn-v-2774c002/7fab9610e0424ef4a78de1ec6b00faa9~tplv-dy-resize-walign-adapt-aq:100:q75.heic?biz_tag=aweme_music&s=PackSourceEnum_MUSIC_DETAIL&sc=cover"
],
"width": 720,
"height": 720
},
"play_url": {
"uri": "https://sf6-cdn-tos.douyinstatic.com/obj/tos-cn-ve-2774/o46YfRnIh8C4R3BHMADD5vtMAR9wbZufklBRgW",
"url_list": [
"https://v5-dy-ov-experiment.zjcdn.com/48e47cc37e365d0c60771a892927d6b0/6aae0598/video/tos/cn/tos-cn-ve-2774/o46YfRnIh8C4R3BHMADD5vtMAR9wbZufklBRgW/?a=1128&ch=0&cr=3&dr=0&er=2&cd=0%7C0%7C0%7C3&br=126&bt=126&ft=LoM-81H7sQOCCp5Sup-Q6_Mme-rLWa5eF2KjUCd-IJmVjqkwUBMEq&mime_type=audio_mp4&qs=6&rc=ZWU4ODQ8Nzs8O2U5ZzRkM0BpajhoZDc6ZjV3ajMzNDlkM0AuLTJfYmNhXmMxMTMxYTM2YSNlYF9jcjQwcGNgLS1kYTBzcw%3D%3D&btag=c0010e000a8000&cquery=100h&dy_q=1787197384&l=20260820114304FA7F95680024B00B8470",
"https://v5-hl-zenl-ov.zjcdn.com/338a7799cf9bf3c0c5148d626721eba4/6aae0598/video/tos/cn/tos-cn-ve-2774/o46YfRnIh8C4R3BHMADD5vtMAR9wbZufklBRgW/?a=1128&ch=0&cr=3&dr=0&er=2&cd=0%7C0%7C0%7C3&br=126&bt=126&ft=LoM-81H7sQOCCp5Sup-Q6_Mme-rLWa5eF2KjUCd-IJmVjqkwUBMEq&mime_type=audio_mp4&qs=6&rc=ZWU4ODQ8Nzs8O2U5ZzRkM0BpajhoZDc6ZjV3ajMzNDlkM0AuLTJfYmNhXmMxMTMxYTM2YSNlYF9jcjQwcGNgLS1kYTBzcw%3D%3D&btag=c0010e000a8000&cquery=100h&dy_q=1787197384&l=20260820114304FA7F95680024B00B8470",
"https://api-play.amemv.com/aweme/v1/play/music/?video_id=v03ad6g10000cgfts23c77u4fabec5hg&line=0&file_id=906ad14d664b48f9a8d4f9e1b5550b1b&sign=ec55d5d0f11db38a54a81b56deea7475&is_play_url=1&source=PackSourceEnum_MUSIC_DETAIL"
],
"width": 720,
"height": 720,
"url_key": "906ad14d664b48f9a8d4f9e1b5550b1b",
"data_size": 3380848
},
"source_platform": 25,
"duration": 208,
"extra": "{\"is_aed_music\":0,\"dsp_switch\":0,\"review_unshelve_reason\":0,\"hotsoon_review_time\":-1,\"reviewed\":0,\"music_label_id\":1112,\"aggregate_exempt_conf\":[],\"cover_colors\":{\"rgb\":[43,43,43]},\"music_tagging\":{\"Languages\":[\"non_vocal\"],\"Moods\":[\"Miss\",\"Memory\"],\"Genres\":[\"Easy Listening\"],\"Themes\":null,\"AEDs\":[\"non_vocal\"],\"SingingVersions\":null,\"Instruments\":null},\"long_pic_video_usable\":true,\"loudness\":\"-14.396366\",\"peak\":\"1.0097046\",\"image_beats_url\":\"https://sf11-cdn-tos.douyinstatic.com/obj/tos-cn-v-2774c002/o4fgAPvQgA4mBRK2aAEekaKeaFz0vFOdHQkCAW\",\"beats\":{\"audio_effect_onset\":\"https://sf6-cdn-tos.douyinstatic.com/obj/tos-cn-v-2774c002/ogFXCQkQnEIXzBadgDbeCTAAm87OAlAtgo0ZSe\",\"beats_tracker\":\"https://sf11-cdn-tos.douyinstatic.com/obj/tos-cn-v-2774c002/o4fgAPvQgA4mBRK2aAEekaKeaFz0vFOdHQkCAW\",\"energy_trace\":\"https://sf11-cdn-tos.douyinstatic.com/obj/tos-cn-v-2774c002/oIvvP2CKaHzEQ8aeTAKA4CNeQzzmFAWEFBvAqe\",\"merged_beats\":\"https://sf6-cdn-tos.douyinstatic.com/obj/tos-cn-v-2774c002/o8M3AnXQsA8zASlbtgKenNleaFZKXC7VDQtBAV\"},\"douyin_beats_info\":{},\"is_subsidy_exp\":false,\"aigc_clip\":false,\"with_aed_model\":0,\"has_edited\":0,\"schedule_search_time\":0,\"is_red\":0}",
"user_count": 28860,
"position": null,
"share_info": {
"share_url": "https://www.iesdouyin.com/share/music/7136850194742315016?from_ssr=1",
"share_weibo_desc": "《深海》>>",
"share_desc": "在抖音,记录美好生活",
"share_title": "《深海》>>",
"bool_persist": 0,
"share_title_myself": "",
"share_title_other": "",
"share_signature_url": "",
"share_signature_desc": "",
"share_quote": "",
"share_desc_info": "《深海》>>"
},
"collect_stat": 0,
"status": 1,
"offline_desc": "",
"owner_id": "103125294335",
"owner_nickname": "",
"is_original": true,
"mid": "7136850194742315016",
"binded_challenge_id": 0,
"is_restricted": false,
"author_deleted": false,
"is_del_video": false,
"is_video_self_see": false,
"owner_handle": "",
"author_position": null,
"prevent_download": false,
"strong_beat_url": {
"uri": "https://sf6-cdn-tos.douyinstatic.com/obj/tos-cn-v-2774c002/o0nDEZEtCBilWgAA9rCBfi00eANhkEnvZa2ixA",
"url_list": [
"https://sf6-cdn-tos.douyinstatic.com/obj/tos-cn-v-2774c002/o0nDEZEtCBilWgAA9rCBfi00eANhkEnvZa2ixA",
"https://sf11-cdn-tos.douyinstatic.com/obj/tos-cn-v-2774c002/o0nDEZEtCBilWgAA9rCBfi00eANhkEnvZa2ixA"
],
"width": 720,
"height": 720
},
"unshelve_countries": null,
"prevent_item_download_status": 0,
"external_song_info": [],
"sec_uid": "MS4wLjABAAAAnlQY0AxmWa32-TITF_r9INsmcPDtFztDbqZfgW7CFk4",
"avatar_thumb": {
"uri": "100x100/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea",
"url_list": [
"https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea.webp?from=889713528",
"https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea.jpeg?from=889713528"
],
"width": 720,
"height": 720
},
"avatar_medium": {
"uri": "720x720/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea",
"url_list": [
"https://p3.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea.webp?from=889713528",
"https://p3.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea.jpeg?from=889713528"
],
"width": 720,
"height": 720
},
"avatar_large": {
"uri": "1080x1080/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea",
"url_list": [
"https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea.webp?from=889713528",
"https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea.jpeg?from=889713528"
],
"width": 720,
"height": 720
},
"preview_start_time": 0,
"preview_end_time": 0,
"is_commerce_music": false,
"is_original_sound": false,
"audition_duration": 208,
"shoot_duration": 208,
"reason_type": 0,
"artists": [],
"lyric_short_position": null,
"mute_share": false,
"tag_list": null,
"dmv_auto_show": false,
"is_pgc": true,
"is_matched_metadata": false,
"is_audio_url_with_cookie": false,
"music_chart_ranks": null,
"can_background_play": true,
"music_status": 1,
"video_duration": 6000,
"cover_color_hsv": {
"h": 0,
"s": 0,
"v": 17
},
"pgc_music_type": 1,
"original_musician_display_name": "FRESH_ye",
"author_status": 1,
"song": {
"id": "7136850194742298632",
"id_str": "7136850194742298632",
"title": "深海",
"artists": null,
"chorus": {
"start_ms": 25152,
"duration_ms": 68352
},
"chorus_v3_infos": null
},
"artist_user_infos": null,
"bit_rate": null,
"dsp_status": 10,
"musician_user_infos": [
{
"uid": "103125294335",
"short_id": "2372333282",
"nickname": "FRESH_ye",
"gender": 0,
"signature": "形容不上来的就叫感觉",
"avatar_larger": {
"uri": "1080x1080/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea",
"url_list": [
"https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea.webp?from=889713528",
"https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea.jpeg?from=889713528"
],
"width": 720,
"height": 720
},
"avatar_thumb": {
"uri": "100x100/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea",
"url_list": [
"https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea.webp?from=889713528",
"https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea.jpeg?from=889713528"
],
"width": 720,
"height": 720
},
"avatar_medium": {
"uri": "720x720/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea",
"url_list": [
"https://p3.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea.webp?from=889713528",
"https://p3.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea.jpeg?from=889713528"
],
"width": 720,
"height": 720
},
"is_verified": true,
"follow_status": 0,
"aweme_count": 0,
"following_count": 0,
"follower_count": 0,
"favoriting_count": 0,
"total_favorited": 0,
"is_block": false,
"hide_search": false,
"constellation": 10,
"location": "",
"hide_location": false,
"weibo_verify": "",
"custom_verify": "",
"unique_id": "FRESHye69513",
"bind_phone": "",
"special_lock": 1,
"need_recommend": 0,
"is_binded_weibo": false,
"weibo_name": "",
"weibo_schema": "",
"weibo_url": "",
"story_open": false,
"story_count": 0,
"has_facebook_token": false,
"has_twitter_token": false,
"fb_expire_time": 0,
"tw_expire_time": 0,
"has_youtube_token": false,
"youtube_expire_time": 0,
"room_id": 0,
"live_verify": 0,
"authority_status": 0,
"verify_info": "",
"shield_follow_notice": 0,
"shield_digg_notice": 0,
"shield_comment_notice": 0,
"school_name": "",
"school_poi_id": "",
"school_type": 0,
"share_info": {
"share_url": "",
"share_weibo_desc": "",
"share_desc": "",
"share_title": "",
"share_qrcode_url": {
"uri": "2d02e0002dfa22d297931",
"url_list": [
"https://p3-sign.douyinpic.com/obj/2d02e0002dfa22d297931?lk3s=3507f378&x-expires=1787216400&x-signature=6%2BiK%2FLPFRDughJhhoclL8r2dD1M%3D&from=889713528"
],
"width": 720,
"height": 720
},
"share_title_myself": "",
"share_title_other": "",
"share_desc_info": ""
},
"with_commerce_entry": false,
"verification_type": 2,
"enterprise_verify_reason": "",
"is_ad_fake": false,
"followers_detail": null,
"region": "CN",
"account_region": "",
"sync_to_toutiao": 0,
"commerce_user_level": 0,
"live_agreement": 0,
"platform_sync_info": null,
"with_shop_entry": false,
"is_discipline_member": false,
"secret": 0,
"has_orders": false,
"prevent_download": false,
"show_image_bubble": false,
"geofencing": [],
"unique_id_modify_time": 1787197384,
"video_icon": {
"uri": "",
"url_list": [],
"width": 720,
"height": 720
},
"ins_id": "",
"google_account": "",
"youtube_channel_id": "",
"youtube_channel_title": "",
"apple_account": 0,
"with_dou_entry": false,
"with_fusion_shop_entry": false,
"is_phone_binded": false,
"accept_private_policy": false,
"twitter_id": "",
"twitter_name": "",
"user_canceled": false,
"has_email": false,
"is_gov_media_vip": false,
"live_agreement_time": 0,
"status": 1,
"create_time": 1565550486,
"avatar_uri": "aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea",
"follower_status": 0,
"neiguang_shield": 0,
"comment_setting": 0,
"duet_setting": 0,
"reflow_page_gid": 0,
"reflow_page_uid": 0,
"user_rate": 1,
"download_setting": -1,
"download_prompt_ts": 0,
"react_setting": 0,
"live_commerce": false,
"cover_url": [
{
"uri": "c8510002be9a3a61aad2",
"url_list": [
"https://p3-sign.douyinpic.com/obj/c8510002be9a3a61aad2?lk3s=3507f378&x-expires=1788404400&x-signature=W0Qz%2Fj0450szrC5EUsoRzvcEKT8%3D&from=889713528"
],
"width": 720,
"height": 720
}
],
"language": "zh-Hans",
"has_insights": false,
"share_qrcode_uri": "2d02e0002dfa22d297931",
"item_list": null,
"user_mode": 0,
"user_period": 0,
"has_unread_story": false,
"new_story_cover": null,
"is_star": false,
"cv_level": "",
"type_label": null,
"ad_cover_url": null,
"comment_filter_status": 0,
"avatar_168x168": {
"uri": "168x168/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea",
"url_list": [
"https://p3.douyinpic.com/img/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea~c5_168x168.webp?from=889713528",
"https://p3.douyinpic.com/img/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea~c5_168x168.jpeg?from=889713528"
],
"width": 720,
"height": 720
},
"avatar_300x300": {
"uri": "300x300/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea",
"url_list": [
"https://p3.douyinpic.com/img/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea~c5_300x300.webp?from=889713528",
"https://p3.douyinpic.com/img/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea~c5_300x300.jpeg?from=889713528"
],
"width": 720,
"height": 720
},
"relative_users": null,
"cha_list": null,
"sec_uid": "MS4wLjABAAAAnlQY0AxmWa32-TITF_r9INsmcPDtFztDbqZfgW7CFk4",
"need_points": null,
"homepage_bottom_toast": null,
"aweme_hotsoon_auth": 1,
"can_set_geofencing": null,
"room_id_str": "0",
"white_cover_url": null,
"user_tags": null,
"stitch_setting": 0,
"is_mix_user": false,
"enable_nearby_visible": false,
"ban_user_functions": [],
"aweme_control": {
"can_forward": true,
"can_share": true,
"can_comment": true,
"can_show_comment": true
},
"user_not_show": 1,
"ky_only_predict": 0,
"user_not_see": 0,
"card_entries": null,
"signature_display_lines": 5,
"display_info": null,
"follower_request_status": 0,
"live_status": 0,
"is_not_show": false,
"card_entries_not_display": null,
"card_sort_priority": null,
"show_nearby_active": false,
"interest_tags": null,
"school_id": "",
"school_category": 0,
"search_impr": {
"entity_id": "103125294335"
},
"link_item_list": null,
"user_permissions": null,
"offline_info_list": null,
"is_cf": 0,
"is_blocking_v2": false,
"is_blocked_v2": false,
"close_friend_type": 0,
"signature_extra": null,
"max_follower_count": 0,
"personal_tag_list": null,
"cf_list": null,
"im_role_ids": null,
"not_seen_item_id_list": null,
"user_age": 126,
"contacts_status": 2,
"risk_notice_text": "",
"follower_list_secondary_information_struct": null,
"endorsement_info_list": null,
"text_extra": null,
"contrail_list": null,
"data_label_list": null,
"not_seen_item_id_list_v2": null,
"is_ban": false,
"special_people_labels": null,
"special_follow_status": 0,
"familiar_visitor_user": null,
"live_high_value": 0,
"follow_status_err_code": 1,
"awemehts_greet_info": "",
"avatar_schema_list": null,
"profile_mob_params": null,
"disable_image_comment_saved": 0,
"verification_permission_ids": null,
"batch_unfollow_relation_desc": null,
"batch_unfollow_contain_tabs": null,
"creator_tag_list": null,
"account_cert_info": "{\"label_style\":3,\"label_text\":\"抖音音乐人、音乐制作人\"}",
"private_relation_list": null,
"mate_relation": {
"mate_status": 0,
"mate_apply_forward": 0,
"mate_apply_reverse": 0
},
"mate_add_permission": 0,
"familiar_confidence": 0,
"mate_count": 0,
"social_real_relation_type": 0,
"identity_labels": null,
"profile_component_disabled": null,
"story_ttl": 0,
"story_interactive": 0,
"house_talent_info": 0,
"allow_story_normal_like": false,
"story25_comment": 0,
"profile_signature_components": null,
"webcast_preview_labels": null
}
],
"luna_info": {
"is_luna_user": false,
"has_copyright": true
},
"music_image_beats": {
"music_image_beats_url": {
"uri": "tos-cn-v-2774c002/o4fgAPvQgA4mBRK2aAEekaKeaFz0vFOdHQkCAW",
"url_list": [
"https://sf11-cdn-tos.douyinstatic.com/obj/tos-cn-v-2774c002/o4fgAPvQgA4mBRK2aAEekaKeaFz0vFOdHQkCAW"
],
"width": 720,
"height": 720
}
},
"music_collect_count": 0,
"music_cover_atmosphere_color_value": "",
"luna_song": {
"luna_song_id": "7136850194742298632",
"luna_song_id_str": "7136850194742298632",
"luna_copyright": true
},
"unified_music_group": {
"song_id": "7136850194742298632",
"title": "深海",
"author": "FRESH_ye",
"medium_cover_url": {
"uri": "tos-cn-v-2774c002/7fab9610e0424ef4a78de1ec6b00faa9",
"url_list": [
"https://p3.douyinpic.com/tos-cn-v-2774c002/7fab9610e0424ef4a78de1ec6b00faa9~tplv-dy-resize-walign-adapt-aq:200:q75.heic?biz_tag=aweme_music&s=PackSourceEnum_MUSIC_DETAIL&sc=cover"
]
}
},
"show_origin_clip": false
},
"rec_list": [],
"extra": {
"now": 1787197384000,
"logid": "20260820114304FA7F95680024B00B8470",
"fatal_item_ids": [],
"scenes": null
},
"log_pb": {
"impr_id": "20260820114304FA7F95680024B00B8470"
},
"small_banner": [],
"feature_data": {},
"related_musics": null,
"related_effects": null,
"trends_infos": null,
"disable_music_activity_setting": false,
"music_activity_resource_infos": null,
"lora_model_ids": null,
"follow_shoot_buttons": null,
"detail_page_labels": null
},
"requestId": "2c59c78f-a0fc-4adc-8201-d801a05b8412"
}{
"code": 400,
"data": null,
"message": "Missing required parameter: handle"
}{
"code": 401,
"data": null,
"message": "apiKey is null"
}{
"code": 402,
"data": null,
"message": "apiKey quota is not enough"
}{
"code": 429,
"data": null,
"message": "qps limit exceeded"
}{
"code": 500,
"data": null,
"message": "Internal server error"
}Douyin App API
Get details of specified music
Get details of specified music
GET
/
v1
/
douyin
/
app
/
fetch_music_detail
cURL
curl --request GET \
--url 'https://api.keyapi.ai/v1/douyin/app/fetch_music_detail?music_id=7136850194742315016' \
--header 'Authorization: Bearer <YOUR_API_KEY>'import requests
response = requests.get(
'https://api.keyapi.ai/v1/douyin/app/fetch_music_detail',
params={"music_id": "7136850194742315016"},
headers={'Authorization': 'Bearer <YOUR_API_KEY>'}
)
print(response.json())const params = new URLSearchParams({"music_id": "7136850194742315016"});
const response = await fetch(`https://api.keyapi.ai/v1/douyin/app/fetch_music_detail?${params}`, {
method: 'GET',
headers: { 'Authorization': 'Bearer <YOUR_API_KEY>' }
});
const data = await response.json();
console.log(data);{
"code": 0,
"message": "success",
"data": {
"status_code": 0,
"msg": "success",
"music_info": {
"id": "7136850194742315016",
"id_str": "7136850194742315016",
"title": "深海",
"author": "FRESH_ye",
"album": "",
"cover_hd": {
"uri": "tos-cn-v-2774c002/7fab9610e0424ef4a78de1ec6b00faa9",
"url_list": [
"https://p3.douyinpic.com/tos-cn-v-2774c002/7fab9610e0424ef4a78de1ec6b00faa9~tplv-dy-resize-walign-adapt-aq:1080:q75.heic?biz_tag=aweme_music&s=PackSourceEnum_MUSIC_DETAIL&sc=cover"
],
"width": 720,
"height": 720
},
"cover_large": {
"uri": "tos-cn-v-2774c002/7fab9610e0424ef4a78de1ec6b00faa9",
"url_list": [
"https://p3.douyinpic.com/tos-cn-v-2774c002/7fab9610e0424ef4a78de1ec6b00faa9~tplv-dy-resize-walign-adapt-aq:720:q75.heic?biz_tag=aweme_music&s=PackSourceEnum_MUSIC_DETAIL&sc=cover"
],
"width": 720,
"height": 720
},
"cover_medium": {
"uri": "tos-cn-v-2774c002/7fab9610e0424ef4a78de1ec6b00faa9",
"url_list": [
"https://p3.douyinpic.com/tos-cn-v-2774c002/7fab9610e0424ef4a78de1ec6b00faa9~tplv-dy-resize-walign-adapt-aq:200:q75.heic?biz_tag=aweme_music&s=PackSourceEnum_MUSIC_DETAIL&sc=cover"
],
"width": 720,
"height": 720
},
"cover_thumb": {
"uri": "tos-cn-v-2774c002/7fab9610e0424ef4a78de1ec6b00faa9",
"url_list": [
"https://p3.douyinpic.com/tos-cn-v-2774c002/7fab9610e0424ef4a78de1ec6b00faa9~tplv-dy-resize-walign-adapt-aq:100:q75.heic?biz_tag=aweme_music&s=PackSourceEnum_MUSIC_DETAIL&sc=cover"
],
"width": 720,
"height": 720
},
"play_url": {
"uri": "https://sf6-cdn-tos.douyinstatic.com/obj/tos-cn-ve-2774/o46YfRnIh8C4R3BHMADD5vtMAR9wbZufklBRgW",
"url_list": [
"https://v5-dy-ov-experiment.zjcdn.com/48e47cc37e365d0c60771a892927d6b0/6aae0598/video/tos/cn/tos-cn-ve-2774/o46YfRnIh8C4R3BHMADD5vtMAR9wbZufklBRgW/?a=1128&ch=0&cr=3&dr=0&er=2&cd=0%7C0%7C0%7C3&br=126&bt=126&ft=LoM-81H7sQOCCp5Sup-Q6_Mme-rLWa5eF2KjUCd-IJmVjqkwUBMEq&mime_type=audio_mp4&qs=6&rc=ZWU4ODQ8Nzs8O2U5ZzRkM0BpajhoZDc6ZjV3ajMzNDlkM0AuLTJfYmNhXmMxMTMxYTM2YSNlYF9jcjQwcGNgLS1kYTBzcw%3D%3D&btag=c0010e000a8000&cquery=100h&dy_q=1787197384&l=20260820114304FA7F95680024B00B8470",
"https://v5-hl-zenl-ov.zjcdn.com/338a7799cf9bf3c0c5148d626721eba4/6aae0598/video/tos/cn/tos-cn-ve-2774/o46YfRnIh8C4R3BHMADD5vtMAR9wbZufklBRgW/?a=1128&ch=0&cr=3&dr=0&er=2&cd=0%7C0%7C0%7C3&br=126&bt=126&ft=LoM-81H7sQOCCp5Sup-Q6_Mme-rLWa5eF2KjUCd-IJmVjqkwUBMEq&mime_type=audio_mp4&qs=6&rc=ZWU4ODQ8Nzs8O2U5ZzRkM0BpajhoZDc6ZjV3ajMzNDlkM0AuLTJfYmNhXmMxMTMxYTM2YSNlYF9jcjQwcGNgLS1kYTBzcw%3D%3D&btag=c0010e000a8000&cquery=100h&dy_q=1787197384&l=20260820114304FA7F95680024B00B8470",
"https://api-play.amemv.com/aweme/v1/play/music/?video_id=v03ad6g10000cgfts23c77u4fabec5hg&line=0&file_id=906ad14d664b48f9a8d4f9e1b5550b1b&sign=ec55d5d0f11db38a54a81b56deea7475&is_play_url=1&source=PackSourceEnum_MUSIC_DETAIL"
],
"width": 720,
"height": 720,
"url_key": "906ad14d664b48f9a8d4f9e1b5550b1b",
"data_size": 3380848
},
"source_platform": 25,
"duration": 208,
"extra": "{\"is_aed_music\":0,\"dsp_switch\":0,\"review_unshelve_reason\":0,\"hotsoon_review_time\":-1,\"reviewed\":0,\"music_label_id\":1112,\"aggregate_exempt_conf\":[],\"cover_colors\":{\"rgb\":[43,43,43]},\"music_tagging\":{\"Languages\":[\"non_vocal\"],\"Moods\":[\"Miss\",\"Memory\"],\"Genres\":[\"Easy Listening\"],\"Themes\":null,\"AEDs\":[\"non_vocal\"],\"SingingVersions\":null,\"Instruments\":null},\"long_pic_video_usable\":true,\"loudness\":\"-14.396366\",\"peak\":\"1.0097046\",\"image_beats_url\":\"https://sf11-cdn-tos.douyinstatic.com/obj/tos-cn-v-2774c002/o4fgAPvQgA4mBRK2aAEekaKeaFz0vFOdHQkCAW\",\"beats\":{\"audio_effect_onset\":\"https://sf6-cdn-tos.douyinstatic.com/obj/tos-cn-v-2774c002/ogFXCQkQnEIXzBadgDbeCTAAm87OAlAtgo0ZSe\",\"beats_tracker\":\"https://sf11-cdn-tos.douyinstatic.com/obj/tos-cn-v-2774c002/o4fgAPvQgA4mBRK2aAEekaKeaFz0vFOdHQkCAW\",\"energy_trace\":\"https://sf11-cdn-tos.douyinstatic.com/obj/tos-cn-v-2774c002/oIvvP2CKaHzEQ8aeTAKA4CNeQzzmFAWEFBvAqe\",\"merged_beats\":\"https://sf6-cdn-tos.douyinstatic.com/obj/tos-cn-v-2774c002/o8M3AnXQsA8zASlbtgKenNleaFZKXC7VDQtBAV\"},\"douyin_beats_info\":{},\"is_subsidy_exp\":false,\"aigc_clip\":false,\"with_aed_model\":0,\"has_edited\":0,\"schedule_search_time\":0,\"is_red\":0}",
"user_count": 28860,
"position": null,
"share_info": {
"share_url": "https://www.iesdouyin.com/share/music/7136850194742315016?from_ssr=1",
"share_weibo_desc": "《深海》>>",
"share_desc": "在抖音,记录美好生活",
"share_title": "《深海》>>",
"bool_persist": 0,
"share_title_myself": "",
"share_title_other": "",
"share_signature_url": "",
"share_signature_desc": "",
"share_quote": "",
"share_desc_info": "《深海》>>"
},
"collect_stat": 0,
"status": 1,
"offline_desc": "",
"owner_id": "103125294335",
"owner_nickname": "",
"is_original": true,
"mid": "7136850194742315016",
"binded_challenge_id": 0,
"is_restricted": false,
"author_deleted": false,
"is_del_video": false,
"is_video_self_see": false,
"owner_handle": "",
"author_position": null,
"prevent_download": false,
"strong_beat_url": {
"uri": "https://sf6-cdn-tos.douyinstatic.com/obj/tos-cn-v-2774c002/o0nDEZEtCBilWgAA9rCBfi00eANhkEnvZa2ixA",
"url_list": [
"https://sf6-cdn-tos.douyinstatic.com/obj/tos-cn-v-2774c002/o0nDEZEtCBilWgAA9rCBfi00eANhkEnvZa2ixA",
"https://sf11-cdn-tos.douyinstatic.com/obj/tos-cn-v-2774c002/o0nDEZEtCBilWgAA9rCBfi00eANhkEnvZa2ixA"
],
"width": 720,
"height": 720
},
"unshelve_countries": null,
"prevent_item_download_status": 0,
"external_song_info": [],
"sec_uid": "MS4wLjABAAAAnlQY0AxmWa32-TITF_r9INsmcPDtFztDbqZfgW7CFk4",
"avatar_thumb": {
"uri": "100x100/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea",
"url_list": [
"https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea.webp?from=889713528",
"https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea.jpeg?from=889713528"
],
"width": 720,
"height": 720
},
"avatar_medium": {
"uri": "720x720/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea",
"url_list": [
"https://p3.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea.webp?from=889713528",
"https://p3.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea.jpeg?from=889713528"
],
"width": 720,
"height": 720
},
"avatar_large": {
"uri": "1080x1080/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea",
"url_list": [
"https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea.webp?from=889713528",
"https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea.jpeg?from=889713528"
],
"width": 720,
"height": 720
},
"preview_start_time": 0,
"preview_end_time": 0,
"is_commerce_music": false,
"is_original_sound": false,
"audition_duration": 208,
"shoot_duration": 208,
"reason_type": 0,
"artists": [],
"lyric_short_position": null,
"mute_share": false,
"tag_list": null,
"dmv_auto_show": false,
"is_pgc": true,
"is_matched_metadata": false,
"is_audio_url_with_cookie": false,
"music_chart_ranks": null,
"can_background_play": true,
"music_status": 1,
"video_duration": 6000,
"cover_color_hsv": {
"h": 0,
"s": 0,
"v": 17
},
"pgc_music_type": 1,
"original_musician_display_name": "FRESH_ye",
"author_status": 1,
"song": {
"id": "7136850194742298632",
"id_str": "7136850194742298632",
"title": "深海",
"artists": null,
"chorus": {
"start_ms": 25152,
"duration_ms": 68352
},
"chorus_v3_infos": null
},
"artist_user_infos": null,
"bit_rate": null,
"dsp_status": 10,
"musician_user_infos": [
{
"uid": "103125294335",
"short_id": "2372333282",
"nickname": "FRESH_ye",
"gender": 0,
"signature": "形容不上来的就叫感觉",
"avatar_larger": {
"uri": "1080x1080/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea",
"url_list": [
"https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea.webp?from=889713528",
"https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea.jpeg?from=889713528"
],
"width": 720,
"height": 720
},
"avatar_thumb": {
"uri": "100x100/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea",
"url_list": [
"https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea.webp?from=889713528",
"https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea.jpeg?from=889713528"
],
"width": 720,
"height": 720
},
"avatar_medium": {
"uri": "720x720/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea",
"url_list": [
"https://p3.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea.webp?from=889713528",
"https://p3.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea.jpeg?from=889713528"
],
"width": 720,
"height": 720
},
"is_verified": true,
"follow_status": 0,
"aweme_count": 0,
"following_count": 0,
"follower_count": 0,
"favoriting_count": 0,
"total_favorited": 0,
"is_block": false,
"hide_search": false,
"constellation": 10,
"location": "",
"hide_location": false,
"weibo_verify": "",
"custom_verify": "",
"unique_id": "FRESHye69513",
"bind_phone": "",
"special_lock": 1,
"need_recommend": 0,
"is_binded_weibo": false,
"weibo_name": "",
"weibo_schema": "",
"weibo_url": "",
"story_open": false,
"story_count": 0,
"has_facebook_token": false,
"has_twitter_token": false,
"fb_expire_time": 0,
"tw_expire_time": 0,
"has_youtube_token": false,
"youtube_expire_time": 0,
"room_id": 0,
"live_verify": 0,
"authority_status": 0,
"verify_info": "",
"shield_follow_notice": 0,
"shield_digg_notice": 0,
"shield_comment_notice": 0,
"school_name": "",
"school_poi_id": "",
"school_type": 0,
"share_info": {
"share_url": "",
"share_weibo_desc": "",
"share_desc": "",
"share_title": "",
"share_qrcode_url": {
"uri": "2d02e0002dfa22d297931",
"url_list": [
"https://p3-sign.douyinpic.com/obj/2d02e0002dfa22d297931?lk3s=3507f378&x-expires=1787216400&x-signature=6%2BiK%2FLPFRDughJhhoclL8r2dD1M%3D&from=889713528"
],
"width": 720,
"height": 720
},
"share_title_myself": "",
"share_title_other": "",
"share_desc_info": ""
},
"with_commerce_entry": false,
"verification_type": 2,
"enterprise_verify_reason": "",
"is_ad_fake": false,
"followers_detail": null,
"region": "CN",
"account_region": "",
"sync_to_toutiao": 0,
"commerce_user_level": 0,
"live_agreement": 0,
"platform_sync_info": null,
"with_shop_entry": false,
"is_discipline_member": false,
"secret": 0,
"has_orders": false,
"prevent_download": false,
"show_image_bubble": false,
"geofencing": [],
"unique_id_modify_time": 1787197384,
"video_icon": {
"uri": "",
"url_list": [],
"width": 720,
"height": 720
},
"ins_id": "",
"google_account": "",
"youtube_channel_id": "",
"youtube_channel_title": "",
"apple_account": 0,
"with_dou_entry": false,
"with_fusion_shop_entry": false,
"is_phone_binded": false,
"accept_private_policy": false,
"twitter_id": "",
"twitter_name": "",
"user_canceled": false,
"has_email": false,
"is_gov_media_vip": false,
"live_agreement_time": 0,
"status": 1,
"create_time": 1565550486,
"avatar_uri": "aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea",
"follower_status": 0,
"neiguang_shield": 0,
"comment_setting": 0,
"duet_setting": 0,
"reflow_page_gid": 0,
"reflow_page_uid": 0,
"user_rate": 1,
"download_setting": -1,
"download_prompt_ts": 0,
"react_setting": 0,
"live_commerce": false,
"cover_url": [
{
"uri": "c8510002be9a3a61aad2",
"url_list": [
"https://p3-sign.douyinpic.com/obj/c8510002be9a3a61aad2?lk3s=3507f378&x-expires=1788404400&x-signature=W0Qz%2Fj0450szrC5EUsoRzvcEKT8%3D&from=889713528"
],
"width": 720,
"height": 720
}
],
"language": "zh-Hans",
"has_insights": false,
"share_qrcode_uri": "2d02e0002dfa22d297931",
"item_list": null,
"user_mode": 0,
"user_period": 0,
"has_unread_story": false,
"new_story_cover": null,
"is_star": false,
"cv_level": "",
"type_label": null,
"ad_cover_url": null,
"comment_filter_status": 0,
"avatar_168x168": {
"uri": "168x168/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea",
"url_list": [
"https://p3.douyinpic.com/img/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea~c5_168x168.webp?from=889713528",
"https://p3.douyinpic.com/img/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea~c5_168x168.jpeg?from=889713528"
],
"width": 720,
"height": 720
},
"avatar_300x300": {
"uri": "300x300/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea",
"url_list": [
"https://p3.douyinpic.com/img/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea~c5_300x300.webp?from=889713528",
"https://p3.douyinpic.com/img/aweme-avatar/tos-cn-i-0813c001_4db71235c8ef44bdab93b15496e3b8ea~c5_300x300.jpeg?from=889713528"
],
"width": 720,
"height": 720
},
"relative_users": null,
"cha_list": null,
"sec_uid": "MS4wLjABAAAAnlQY0AxmWa32-TITF_r9INsmcPDtFztDbqZfgW7CFk4",
"need_points": null,
"homepage_bottom_toast": null,
"aweme_hotsoon_auth": 1,
"can_set_geofencing": null,
"room_id_str": "0",
"white_cover_url": null,
"user_tags": null,
"stitch_setting": 0,
"is_mix_user": false,
"enable_nearby_visible": false,
"ban_user_functions": [],
"aweme_control": {
"can_forward": true,
"can_share": true,
"can_comment": true,
"can_show_comment": true
},
"user_not_show": 1,
"ky_only_predict": 0,
"user_not_see": 0,
"card_entries": null,
"signature_display_lines": 5,
"display_info": null,
"follower_request_status": 0,
"live_status": 0,
"is_not_show": false,
"card_entries_not_display": null,
"card_sort_priority": null,
"show_nearby_active": false,
"interest_tags": null,
"school_id": "",
"school_category": 0,
"search_impr": {
"entity_id": "103125294335"
},
"link_item_list": null,
"user_permissions": null,
"offline_info_list": null,
"is_cf": 0,
"is_blocking_v2": false,
"is_blocked_v2": false,
"close_friend_type": 0,
"signature_extra": null,
"max_follower_count": 0,
"personal_tag_list": null,
"cf_list": null,
"im_role_ids": null,
"not_seen_item_id_list": null,
"user_age": 126,
"contacts_status": 2,
"risk_notice_text": "",
"follower_list_secondary_information_struct": null,
"endorsement_info_list": null,
"text_extra": null,
"contrail_list": null,
"data_label_list": null,
"not_seen_item_id_list_v2": null,
"is_ban": false,
"special_people_labels": null,
"special_follow_status": 0,
"familiar_visitor_user": null,
"live_high_value": 0,
"follow_status_err_code": 1,
"awemehts_greet_info": "",
"avatar_schema_list": null,
"profile_mob_params": null,
"disable_image_comment_saved": 0,
"verification_permission_ids": null,
"batch_unfollow_relation_desc": null,
"batch_unfollow_contain_tabs": null,
"creator_tag_list": null,
"account_cert_info": "{\"label_style\":3,\"label_text\":\"抖音音乐人、音乐制作人\"}",
"private_relation_list": null,
"mate_relation": {
"mate_status": 0,
"mate_apply_forward": 0,
"mate_apply_reverse": 0
},
"mate_add_permission": 0,
"familiar_confidence": 0,
"mate_count": 0,
"social_real_relation_type": 0,
"identity_labels": null,
"profile_component_disabled": null,
"story_ttl": 0,
"story_interactive": 0,
"house_talent_info": 0,
"allow_story_normal_like": false,
"story25_comment": 0,
"profile_signature_components": null,
"webcast_preview_labels": null
}
],
"luna_info": {
"is_luna_user": false,
"has_copyright": true
},
"music_image_beats": {
"music_image_beats_url": {
"uri": "tos-cn-v-2774c002/o4fgAPvQgA4mBRK2aAEekaKeaFz0vFOdHQkCAW",
"url_list": [
"https://sf11-cdn-tos.douyinstatic.com/obj/tos-cn-v-2774c002/o4fgAPvQgA4mBRK2aAEekaKeaFz0vFOdHQkCAW"
],
"width": 720,
"height": 720
}
},
"music_collect_count": 0,
"music_cover_atmosphere_color_value": "",
"luna_song": {
"luna_song_id": "7136850194742298632",
"luna_song_id_str": "7136850194742298632",
"luna_copyright": true
},
"unified_music_group": {
"song_id": "7136850194742298632",
"title": "深海",
"author": "FRESH_ye",
"medium_cover_url": {
"uri": "tos-cn-v-2774c002/7fab9610e0424ef4a78de1ec6b00faa9",
"url_list": [
"https://p3.douyinpic.com/tos-cn-v-2774c002/7fab9610e0424ef4a78de1ec6b00faa9~tplv-dy-resize-walign-adapt-aq:200:q75.heic?biz_tag=aweme_music&s=PackSourceEnum_MUSIC_DETAIL&sc=cover"
]
}
},
"show_origin_clip": false
},
"rec_list": [],
"extra": {
"now": 1787197384000,
"logid": "20260820114304FA7F95680024B00B8470",
"fatal_item_ids": [],
"scenes": null
},
"log_pb": {
"impr_id": "20260820114304FA7F95680024B00B8470"
},
"small_banner": [],
"feature_data": {},
"related_musics": null,
"related_effects": null,
"trends_infos": null,
"disable_music_activity_setting": false,
"music_activity_resource_infos": null,
"lora_model_ids": null,
"follow_shoot_buttons": null,
"detail_page_labels": null
},
"requestId": "2c59c78f-a0fc-4adc-8201-d801a05b8412"
}{
"code": 400,
"data": null,
"message": "Missing required parameter: handle"
}{
"code": 401,
"data": null,
"message": "apiKey is null"
}{
"code": 402,
"data": null,
"message": "apiKey quota is not enough"
}{
"code": 429,
"data": null,
"message": "qps limit exceeded"
}{
"code": 500,
"data": null,
"message": "Internal server error"
}🪙1 creditper request
Copy for AI
🤖 Why Code When AI Can Do It For You?
Stop writing code like it’s 1970! Let AI do the heavy lifting - click the sparkles to copy a perfectly formatted prompt for ChatGPT, Claude, or your favorite AI assistant.
⌘I

