api-config.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. {
  2. "name": "tiktok-user-posts",
  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_user_post_videos",
  10. "headers": {
  11. "Authorization": "Bearer tKIbAsEM8X+GmE2vHqGW7D/ICwK1Q5V4viKFrWiPB6HholGdLFqZJmmyNw==",
  12. "Accept": "application/json"
  13. }
  14. },
  15. "parameters": {
  16. "type": "object",
  17. "required": [
  18. "sec_user_id"
  19. ],
  20. "properties": {
  21. "sec_user_id": {
  22. "type": "string",
  23. "description": "用户的安全 ID(secUid),需先通过 tiktok_user_profile 接口获取"
  24. },
  25. "count": {
  26. "type": "integer",
  27. "description": "每页视频数量",
  28. "default": 20,
  29. "maximum": 30
  30. },
  31. "cursor": {
  32. "type": "integer",
  33. "description": "分页游标",
  34. "default": 0
  35. }
  36. }
  37. },
  38. "requestTransform": {
  39. "queryParams": {
  40. "sec_user_id": "{{sec_user_id}}",
  41. "count": "{{count}}",
  42. "cursor": "{{cursor}}"
  43. }
  44. },
  45. "response": {
  46. "type": "object",
  47. "description": "用户视频列表",
  48. "properties": {
  49. "aweme_list": {
  50. "type": "array",
  51. "items": {
  52. "type": "object",
  53. "properties": {
  54. "aweme_id": {
  55. "type": "string",
  56. "description": "视频 ID"
  57. },
  58. "desc": {
  59. "type": "string",
  60. "description": "视频描述"
  61. },
  62. "statistics": {
  63. "type": "object",
  64. "properties": {
  65. "play_count": {
  66. "type": "integer"
  67. },
  68. "digg_count": {
  69. "type": "integer"
  70. },
  71. "comment_count": {
  72. "type": "integer"
  73. },
  74. "share_count": {
  75. "type": "integer"
  76. }
  77. }
  78. },
  79. "create_time": {
  80. "type": "integer",
  81. "description": "发布时间戳"
  82. }
  83. }
  84. }
  85. },
  86. "has_more": {
  87. "type": "boolean"
  88. },
  89. "cursor": {
  90. "type": "integer"
  91. }
  92. }
  93. },
  94. "notes": "sec_user_id 需先通过 tiktok_user_profile 获取。该接口可用于分析竞品品牌的内容发布频率和互动表现。",
  95. "relatedSkills": [
  96. "tiktok_user_profile"
  97. ],
  98. "usageExamples": [
  99. {
  100. "name": "获取品牌视频列表",
  101. "input": {
  102. "sec_user_id": "MS4wLjABAAAA...",
  103. "count": 20
  104. },
  105. "description": "获取品牌最近 20 条视频的播放和互动数据"
  106. }
  107. ],
  108. "reportMapping": {
  109. "slides": [
  110. "竞品对标(Slide4)",
  111. "社媒聆听(Slide14)"
  112. ],
  113. "dataPoints": [
  114. "内容发布频率",
  115. "视频平均播放量",
  116. "内容类型分布"
  117. ]
  118. },
  119. "timeout": 15000,
  120. "retry": {
  121. "maxAttempts": 3,
  122. "delay": 1500,
  123. "backoffMultiplier": 2
  124. }
  125. }