api-config.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. {
  2. "name": "tiktok-video-comments",
  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/app/v3/fetch_video_comments",
  10. "headers": {
  11. "Authorization": "Bearer tKIbAsEM8X+GmE2vHqGW7D/ICwK1Q5V4viKFrWiPB6HholGdLFqZJmmyNw==",
  12. "Accept": "application/json"
  13. }
  14. },
  15. "parameters": {
  16. "type": "object",
  17. "required": [
  18. "aweme_id"
  19. ],
  20. "properties": {
  21. "aweme_id": {
  22. "type": "string",
  23. "description": "TikTok 视频唯一 ID"
  24. },
  25. "count": {
  26. "type": "integer",
  27. "description": "每页评论数量",
  28. "default": 20,
  29. "maximum": 50
  30. },
  31. "cursor": {
  32. "type": "integer",
  33. "description": "分页游标,首次不传或传 0",
  34. "default": 0
  35. }
  36. }
  37. },
  38. "requestTransform": {
  39. "queryParams": {
  40. "aweme_id": "{{aweme_id}}",
  41. "count": "{{count}}",
  42. "cursor": "{{cursor}}"
  43. }
  44. },
  45. "response": {
  46. "type": "object",
  47. "description": "评论列表",
  48. "properties": {
  49. "comments": {
  50. "type": "array",
  51. "items": {
  52. "type": "object",
  53. "properties": {
  54. "cid": {
  55. "type": "string",
  56. "description": "评论 ID"
  57. },
  58. "text": {
  59. "type": "string",
  60. "description": "评论内容"
  61. },
  62. "digg_count": {
  63. "type": "integer",
  64. "description": "评论点赞数"
  65. },
  66. "reply_comment_total": {
  67. "type": "integer",
  68. "description": "回复数"
  69. },
  70. "create_time": {
  71. "type": "integer",
  72. "description": "评论时间戳"
  73. },
  74. "user": {
  75. "type": "object",
  76. "properties": {
  77. "nickname": {
  78. "type": "string",
  79. "description": "评论者昵称"
  80. },
  81. "unique_id": {
  82. "type": "string",
  83. "description": "评论者用户名"
  84. }
  85. }
  86. }
  87. }
  88. }
  89. },
  90. "has_more": {
  91. "type": "boolean",
  92. "description": "是否有更多评论"
  93. },
  94. "cursor": {
  95. "type": "integer",
  96. "description": "下一页游标"
  97. },
  98. "total": {
  99. "type": "integer",
  100. "description": "评论总数"
  101. }
  102. }
  103. },
  104. "usageExamples": [
  105. {
  106. "name": "获取视频评论",
  107. "input": {
  108. "aweme_id": "7300000000000000000",
  109. "count": 20
  110. },
  111. "description": "获取视频前 20 条评论用于 AI 情感分析"
  112. }
  113. ],
  114. "reportMapping": {
  115. "slides": [
  116. "社媒聆听(Slide14)"
  117. ],
  118. "dataPoints": [
  119. "视频评论内容",
  120. "用户情感倾向",
  121. "需求关键词提取"
  122. ]
  123. },
  124. "timeout": 15000,
  125. "retry": {
  126. "maxAttempts": 3,
  127. "delay": 1500,
  128. "backoffMultiplier": 2
  129. }
  130. }