抖音官方的接口地址:
https://www.iesdouyin.com/web/api/v2/user/info/?sec_uid=
sec_uid是查询抖音号的id码
例如:
MS4wLjABAAAAuOe5N_u4IV1nTAZoJiv1S6Cb-Cu10wUs-1riZxWoYmiAKs8-pG62m9WfGLSfWQF-
获取以上id码的方法:
在抖音应用内点击到分享个人抖音的界面即可获得该链接(短网址):
https://v.douyin.com/Jk5X6hx/
访问后自动跳转地址:
https://www.iesdouyin.com/share/user/1503731040130840?u_code=1d6k10ekj587&sec_uid=MS4wLjABAAAAuOe5N_u4IV1nTAZoJiv1S6Cb-Cu10wUs-1riZxWoYmiAKs8-pG62m9WfGLSfWQF-&app=aweme&utm_campaign=client_share&utm_medium=ios&tt_from=copy&utm_source=copy
sec_uid可以在以上URL在提取中
演示地址:
https://www.iesdouyin.com/web/api/v2/user/info/?sec_uid=MS4wLjABAAAAuOe5N_u4IV1nTAZoJiv1S6Cb-Cu10wUs-1riZxWoYmiAKs8-pG62m9WfGLSfWQF-
访问获得一组JSON就是该账号的相关信息
{
"status_code": 0,
"user_info": {
"is_gov_media_vip": false,
"uid": "1503731040130840",
"avatar_medium": {
"uri": "c16000003f97583dac4",
"url_list": ["https://p3-dy-ipv6.byteimg.com/aweme/720x720/c16000003f97583dac4.jpeg?from=4010531038", "https://p26-dy.byteimg.com/aweme/720x720/c16000003f97583dac4.jpeg?from=4010531038", "https://p6-dy-ipv6.byteimg.com/aweme/720x720/c16000003f97583dac4.jpeg?from=4010531038"]
},
"custom_verify": "",
"verification_type": 1,
"original_musician": {
"music_count": 0,
"music_used_count": 0
},
"secret": 0,
"geofencing": null,
"short_id": "3478391165",
"follower_count": 9,
"favoriting_count": 685,
"total_favorited": "0",
"nickname": "dy92fqedv5wv",
"signature": "",
"avatar_thumb": {
"uri": "c16000003f97583dac4",
"url_list": ["https://p6-dy-ipv6.byteimg.com/aweme/100x100/c16000003f97583dac4.jpeg?from=4010531038", "https://p9-dy.byteimg.com/aweme/100x100/c16000003f97583dac4.jpeg?from=4010531038", "https://p29-dy.byteimg.com/aweme/100x100/c16000003f97583dac4.jpeg?from=4010531038"]
},
"aweme_count": 0,
"policy_version": null,
"type_label": null,
"avatar_larger": {
"uri": "c16000003f97583dac4",
"url_list": ["https://p3-dy-ipv6.byteimg.com/aweme/1080x1080/c16000003f97583dac4.jpeg?from=4010531038", "https://p29-dy.byteimg.com/aweme/1080x1080/c16000003f97583dac4.jpeg?from=4010531038", "https://p6-dy-ipv6.byteimg.com/aweme/1080x1080/c16000003f97583dac4.jpeg?from=4010531038"]
},
"following_count": 510,
"unique_id": "dy92fqedv5wv",
"followers_detail": null,
"region": "CN",
"platform_sync_info": null
},
"extra": {
"now": 1600256590000,
"logid": "202009161943100101980662033B1C75B5"
}
}
其中:
"following_count": 510,**--关注数**
"favoriting_count": 685,**--喜欢数**