当前位置: 首页 > news >正文

tiktok 用户主页接口API服务

文章目录

  • tiktok接口请求示例
  • 响应示例

tiktok接口请求示例

def get_tk_user():sec_user_id = "MS4wLjABAAAA4FtqNMs_KtXx0S6LLVyqIpswl7tdt3s4UEzG78PdWja_Ry63vr3zGrWhTo5jHr4H"#sec_user_id = "MS4wLjABAAAA1d75SkC_HRg8I3ew_KkrgLGmMdC6GQypFauRCEkiLjKMWSbeusbKwcDfOpS8EKsc"token = 'xxxxxx'url = f"http://xxx/tk/user?token={token}&sec_user_id={sec_user_id}"res = requests.get(url)print(res.json())

响应示例

{"common": {"user_statics_info": {"visible_videos_count": 719,"aweme_count": 719},"user_profile_info": {"uid": "6909181729837122566","sec_uid": "MS4wLjABAAAA4FtqNMs_KtXx0S6LLVyqIpswl7tdt3s4UEzG78PdWja_Ry63vr3zGrWhTo5jHr4H","nickname": "★𝐌𝐚𝐫𝐢𝐖𝐨𝐫★","username": "wormarij","avatar": {"avatar_larger": {"uri": "tos-alisg-avt-0068/773b8f325f2fb36b139cf6ffc3eabb9e","url_list": ["https://p16-sign-sg.tiktokcdn.com/aweme/1080x1080/tos-alisg-avt-0068/773b8f325f2fb36b139cf6ffc3eabb9e.webp?lk3s=a5d48078&nonce=27206&refresh_token=91779a1b73697f07e68af08fcd14520c&x-expires=1731499200&x-signature=JaGqFOVIOvx19R95RHQERWQmd1Y%3D&shp=a5d48078&shcp=2472a6c6","https://p77-sign-sg.tiktokcdn.com/aweme/1080x1080/tos-alisg-avt-0068/773b8f325f2fb36b139cf6ffc3eabb9e.webp?lk3s=a5d48078&nonce=22325&refresh_token=087d2ca47db9123486fb3a820625cbdf&x-expires=1731499200&x-signature=rkOuVODUDljL3nmVyUXJ0iZC8vI%3D&shp=a5d48078&shcp=2472a6c6","https://p16-sign-sg.tiktokcdn.com/aweme/1080x1080/tos-alisg-avt-0068/773b8f325f2fb36b139cf6ffc3eabb9e.jpeg?lk3s=a5d48078&nonce=23808&refresh_token=16a01502e5a45af4edac6ca8a8d548e0&x-expires=1731499200&x-signature=OPjWLANd%2Fz8hpt6%2FrOWz6xz12g0%3D&shp=a5d48078&shcp=2472a6c6"],"url_prefix": null},"avatar_thumb": {"uri": "tos-alisg-avt-0068/773b8f325f2fb36b139cf6ffc3eabb9e","url_list": ["https://p16-sign-sg.tiktokcdn.com/aweme/100x100/tos-alisg-avt-0068/773b8f325f2fb36b139cf6ffc3eabb9e.webp?lk3s=a5d48078&nonce=53305&refresh_token=154ad765cd4996e23fe03d1f21afb2f5&x-expires=1731499200&x-signature=ynyr3h73mSHjJ9mX%2Bc%2FzGjYLrJU%3D&shp=a5d48078&shcp=2472a6c6","https://p77-sign-sg.tiktokcdn.com/aweme/100x100/tos-alisg-avt-0068/773b8f325f2fb36b139cf6ffc3eabb9e.webp?lk3s=a5d48078&nonce=94640&refresh_token=2ac9b0a1762dca9b5668d5f65e1c59c4&x-expires=1731499200&x-signature=P0B8TuCQlyNeLXL7gJFL6C75Xa4%3D&shp=a5d48078&shcp=2472a6c6","https://p16-sign-sg.tiktokcdn.com/aweme/100x100/tos-alisg-avt-0068/773b8f325f2fb36b139cf6ffc3eabb9e.jpeg?lk3s=a5d48078&nonce=8342&refresh_token=2719b28b5c2fda524bf58327cc82d7e0&x-expires=1731499200&x-signature=6JJtSsz5LurU2I9OzlLrPGUygl4%3D&shp=a5d48078&shcp=2472a6c6"],"url_prefix": null},"avatar_medium": {"uri": "tos-alisg-avt-0068/773b8f325f2fb36b139cf6ffc3eabb9e","url_list": ["https://p16-sign-sg.tiktokcdn.com/aweme/720x720/tos-alisg-avt-0068/773b8f325f2fb36b139cf6ffc3eabb9e.webp?lk3s=a5d48078&nonce=71324&refresh_token=8cd35d2d5861727b05005acee048388f&x-expires=1731499200&x-signature=B6%2FzLoNxSGZ7hwOQTgcmqnZFXLc%3D&shp=a5d48078&shcp=2472a6c6","https://p77-sign-sg.tiktokcdn.com/aweme/720x720/tos-alisg-avt-0068/773b8f325f2fb36b139cf6ffc3eabb9e.webp?lk3s=a5d48078&nonce=52855&refresh_token=2d41f268914e133570de7dc6a409540a&x-expires=1731499200&x-signature=BEOORA6rr5sCuaM59ayYNIXS2vc%3D&shp=a5d48078&shcp=2472a6c6","https://p16-sign-sg.tiktokcdn.com/aweme/720x720/tos-alisg-avt-0068/773b8f325f2fb36b139cf6ffc3eabb9e.jpeg?lk3s=a5d48078&nonce=87528&refresh_token=466d4a708ff1cef7b0a00907aa823a2e&x-expires=1731499200&x-signature=8kYJXGibca7kdvP8gbTjcGvb3JY%3D&shp=a5d48078&shcp=2472a6c6"],"url_prefix": null},"avatar_300x300": {"url_prefix": null,"uri": "tos-alisg-avt-0068/773b8f325f2fb36b139cf6ffc3eabb9e","url_list": ["https://p16-sign-sg.tiktokcdn.com/tos-alisg-avt-0068/773b8f325f2fb36b139cf6ffc3eabb9e~c5_300x300.webp?lk3s=a5d48078&nonce=7446&refresh_token=066acce542ff252c53b191463d4de15c&x-expires=1731499200&x-signature=0U6GBo7SSLogV3m3FEjXp6aBdgc%3D&shp=a5d48078&shcp=2472a6c6","https://p77-sign-sg.tiktokcdn.com/tos-alisg-avt-0068/773b8f325f2fb36b139cf6ffc3eabb9e~c5_300x300.webp?lk3s=a5d48078&nonce=19980&refresh_token=653af53ae4988235872cd8bf41a7ed89&x-expires=1731499200&x-signature=WQEKkLDTuW1UiN6AwS8682gX5AM%3D&shp=a5d48078&shcp=2472a6c6","https://p16-sign-sg.tiktokcdn.com/tos-alisg-avt-0068/773b8f325f2fb36b139cf6ffc3eabb9e~c5_300x300.jpeg?lk3s=a5d48078&nonce=93881&refresh_token=30d1f4c43c19c9e21a18ca021e8871a8&x-expires=1731499200&x-signature=3fX77x5xoNjq5gQLgIXWQ%2BPDKxY%3D&shp=a5d48078&shcp=2472a6c6"]}}},"user_account_info": {"account_type": 0,"is_private_account": false},"user_relation_info": {"follow_status": 0,"follower_status": 0,"is_blocking": false,"is_blocked": false}},"status_code": 0,"status_msg": "","extra": {"now": 1731327430000,"fatal_item_ids": [],"logid": "202411111217085552E714009DCE007162"},"log_pb": {"impr_id": "202411111217085552E714009DCE007162"},"nav_bar": {"component_id": "nav_bar","name": "nav_bar","components": [{"component_id": "nav_bar_start","name": "nav_bar_start","components": [{"component_id": "nav_bar_start_back","name": "nav_bar_start_back","biz_data": {"icon": {"icon_key": "icon_arrow_left_ltr"}}}]},{"component_id": "nav_bar_center","name": "nav_bar_center","components": [{"component_id": "nav_bar_center_nickname","name": "nav_bar_center_nickname","biz_data": {"describe": {"text": "★𝐌𝐚𝐫𝐢𝐖𝐨𝐫★"}}}]},{"components": [{"biz_data": {"icon": {"icon_key": "icon_arrow_turn_up_right"},"share_info": {"share_url": "https://www.tiktok.com/@wormarij?_r=1&_d=ed2364c91gl658&sec_uid=MS4wLjABAAAA4FtqNMs_KtXx0S6LLVyqIpswl7tdt3s4UEzG78PdWja_Ry63vr3zGrWhTo5jHr4H&share_author_id=6909181729837122566&sharer_language=en&source=h5_m","share_desc": "Check out ★𝐌𝐚𝐫𝐢𝐖𝐨𝐫★! #TikTok","share_title": "Join TikTok and see what I’ve been up to!","now_invitation_card_image_urls": null},"following_count": 37,"follower_count": 881262,"cert_info": {"verification_type": 0,"commerce_user_level": 0},"signature": "2nd acc: @WorMari🪐 \nIG: wormarij\nBusiness: wormarij.cooperation@list.ru"},"component_id": "nav_bar_end_more","name": "nav_bar_end_more"}],"component_id": "nav_bar_end","name": "nav_bar_end"}]},"header": {"component_id": "header","name": "header","components": [{"component_id": "header_avatar","name": "header_avatar","components": [{"component_id": "avatar_normal","name": "avatar_normal","biz_data": {"share_info": {"now_invitation_card_image_urls": null,"share_url": "https://www.tiktok.com/@wormarij?_r=1&_d=ed2364c91gl658&sec_uid=MS4wLjABAAAA4FtqNMs_KtXx0S6LLVyqIpswl7tdt3s4UEzG78PdWja_Ry63vr3zGrWhTo5jHr4H&share_author_id=6909181729837122566&sharer_language=en&source=h5_m","share_desc": "Check out ★𝐌𝐚𝐫𝐢𝐖𝐨𝐫★! #TikTok","share_title": "Join TikTok and see what I’ve been up to!"}}}]},{"component_id": "info","name": "info","components": [{"component_id": "user_info","name": "user_info","components": [{"component_id": "user_account_base_info","name": "user_account_base_info","components": [{"component_id": "user_account_user_name","name": "user_account_user_name","biz_data": {"describe": {"text": "@wormarij"}}}]}]},{"component_id": "user_relation_info","name": "user_relation_info","components": [{"component_id": "relation_info_following","name": "relation_info_following","biz_data": {"following_count": 37,"follow_toast_type": 0,"formatted_number": "37","describe": {"text": "Following"},"following_visibility": 2}},{"component_id": "relation_info_follower","name": "relation_info_follower","biz_data": {"describe": {"text": "Followers"},"following_visibility": 2,"follow_toast_type": 0,"follower_count": 881262}},{"biz_data": {"describe": {"text": "Likes"},"formatted_number": "51.7M","like_count": 51651847},"component_id": "relation_info_like","name": "relation_info_like"}]}]},{"component_id": "cta","name": "cta","components": [{"component_id": "cta_social_follow","name": "cta_social_follow"},{"component_id": "cta_social_message","name": "cta_social_message","biz_data": {"show_messaging_entrance_on_profile": true}},{"component_id": "cta_recommend_button","name": "cta_recommend_button"}]},{"component_id": "recommend","name": "recommend","components": [{"component_id": "recommend_user_card","name": "recommend_user_card"}]},{"components": [{"component_id": "bio_signature","name": "bio_signature","biz_data": {"describe": {"text": "2nd acc: @WorMari🪐 \nIG: wormarij\nBusiness: wormarij.cooperation@list.ru"},"signature_extra": [{"sec_uid": "MS4wLjABAAAAl6AMYXEHIjywakpEzu0q_hgeIlNojO97wMxVkgsYPa1aRYxvYaGYoPUijwic3sRv","start": 9,"end": 18,"type": 0,"user_id": "7284217619300713515"}]}}],"component_id": "bio","name": "bio"}]},"profile_tab": {"name": "profile_tab","components": [{"component_id": "profile_tab_public_post","name": "profile_tab_public_post","biz_data": {"profile_tab_id": 0,"icon": {"icon_key": "icon_3pt_collection"}}}],"biz_data": {"default_landing_tab_id": 0},"component_id": "profile_tab"}
}

在这里插入图片描述
取到的关注数 粉丝数 点赞数都是精确值:
在这里插入图片描述


http://www.mrgr.cn/news/70638.html

相关文章:

  • wordpress调用文章上一篇 下一篇的标题和链接
  • 艾体宝干货丨差异解读:IT 和 OT 网络的数据包和网络分析
  • Go语言中的值类型与指针类型:理解内存分配与访问
  • 《AI大模型开发笔记》——Prompt提示词最佳实践
  • 医学图像语义分割:前列腺肿瘤、颅脑肿瘤、腹部多脏器 MRI、肝脏 CT、3D肝脏、心室
  • 网安基础知识|IDS入侵检测系统|IPS入侵防御系统|堡垒机|VPN|EDR|CC防御|云安全-VDC/VPC|安全服务
  • 【Vue3】基础语法案例
  • Unity学习笔记(3):场景绘制和叠层设置 Tilemap
  • CCI3.0-HQ:用于预训练大型语言模型的高质量大规模中文数据集
  • 剖析源码,带你看懂JUC线程池运行机制
  • [ Linux 命令基础 2 ] Linux 命令详解-系统管理命令
  • Qt | QMediaPlayer+QGraphicsVideoItem视频播放器
  • 无线局域网四种类型
  • 图论算法:最短路径算法详解【c语言版】(无权最短路径、Dijkstra算法)
  • Mysql 基础语法
  • Java API类与接口:类的转换方法与正则表达式
  • 自动驾驶安全方向论文阅读
  • Tomcat(9) web.xml文件的作用
  • 【英特尔IA-32架构软件开发者开发手册第3卷:系统编程指南】2001年版翻译,2-20
  • 人字齿是怎么样的一种齿轮?
  • 《黑神话:悟空》像素版v0.2重磅更新[PC+安卓]
  • 【系统架构设计师-2024下半年真题】综合知识-参考答案及部分详解(完整回忆版)
  • Java static静态变量 C语言文件读写
  • 工程师 - etc/hosts文件
  • 呼叫中心系统监控预警功能的应用
  • [ Linux 命令基础 4 ] Linux 命令详解-文本处理命令