api-config.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. {
  2. "name": "tiktok-user-profile",
  3. "displayName": "TikTok 用户详情",
  4. "description": "根据用户名获取 TikTok 用户的完整资料,包括粉丝数、获赞数、作品数、个人简介等。用于竞品品牌社媒画像、红人详情分析。",
  5. "category": "social-media",
  6. "version": "1.0.0",
  7. "endpoint": {
  8. "method": "GET",
  9. "url": "https://server.fmode.cn/thapi/v1/tiktok/web/fetch_user_profile",
  10. "headers": {
  11. "Authorization": "Bearer tKIbAsEM8X+GmE2vHqGW7D/ICwK1Q5V4viKFrWiPB6HholGdLFqZJmmyNw==",
  12. "Accept": "application/json"
  13. }
  14. },
  15. "parameters": {
  16. "type": "object",
  17. "required": [
  18. "uniqueId"
  19. ],
  20. "properties": {
  21. "uniqueId": {
  22. "type": "string",
  23. "description": "TikTok 用户名(不含@),如 'nestnewyork'、'dealwhisperer'"
  24. }
  25. }
  26. },
  27. "requestTransform": {
  28. "queryParams": {
  29. "uniqueId": "{{uniqueId}}"
  30. }
  31. },
  32. "response": {
  33. "type": "object",
  34. "description": "用户详情",
  35. "properties": {
  36. "user": {
  37. "type": "object",
  38. "properties": {
  39. "id": {
  40. "type": "string",
  41. "description": "用户 ID"
  42. },
  43. "uniqueId": {
  44. "type": "string",
  45. "description": "用户名"
  46. },
  47. "nickname": {
  48. "type": "string",
  49. "description": "昵称"
  50. },
  51. "signature": {
  52. "type": "string",
  53. "description": "个人简介"
  54. },
  55. "verified": {
  56. "type": "boolean",
  57. "description": "是否认证"
  58. },
  59. "avatarLarger": {
  60. "type": "string",
  61. "description": "头像 URL"
  62. },
  63. "secUid": {
  64. "type": "string",
  65. "description": "安全用户 ID(用于获取帖子)"
  66. }
  67. }
  68. },
  69. "stats": {
  70. "type": "object",
  71. "properties": {
  72. "followerCount": {
  73. "type": "integer",
  74. "description": "粉丝数"
  75. },
  76. "followingCount": {
  77. "type": "integer",
  78. "description": "关注数"
  79. },
  80. "heart": {
  81. "type": "integer",
  82. "description": "获赞总数"
  83. },
  84. "heartCount": {
  85. "type": "integer",
  86. "description": "获赞总数(别名)"
  87. },
  88. "videoCount": {
  89. "type": "integer",
  90. "description": "作品总数"
  91. },
  92. "diggCount": {
  93. "type": "integer",
  94. "description": "点赞数"
  95. }
  96. }
  97. }
  98. }
  99. },
  100. "notes": "返回的 secUid 可用于 tiktok_user_posts 接口获取用户发布的视频列表。",
  101. "usageExamples": [
  102. {
  103. "name": "查看竞品品牌 TikTok 账号",
  104. "input": {
  105. "uniqueId": "nestnewyork"
  106. },
  107. "description": "获取 NEST New York 的 TikTok 粉丝数和互动数据(报告中显示 12,700 粉丝)"
  108. },
  109. {
  110. "name": "查看达人详情",
  111. "input": {
  112. "uniqueId": "dealwhisperer"
  113. },
  114. "description": "获取达人 @dealwhisperer 的完整资料(报告中显示 2.1M 粉丝)"
  115. }
  116. ],
  117. "reportMapping": {
  118. "slides": [
  119. "竞品对标(Slide4)",
  120. "红人达人库(Slide11)"
  121. ],
  122. "dataPoints": [
  123. "TikTok粉丝数",
  124. "获赞总数",
  125. "作品数",
  126. "互动率"
  127. ]
  128. },
  129. "timeout": 15000,
  130. "retry": {
  131. "maxAttempts": 3,
  132. "delay": 1500,
  133. "backoffMultiplier": 2
  134. }
  135. }