api-config.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. {
  2. "name": "tiktok-user-search",
  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_search_user",
  10. "headers": {
  11. "Authorization": "Bearer tKIbAsEM8X+GmE2vHqGW7D/ICwK1Q5V4viKFrWiPB6HholGdLFqZJmmyNw==",
  12. "Accept": "application/json"
  13. }
  14. },
  15. "parameters": {
  16. "type": "object",
  17. "required": [
  18. "keyword"
  19. ],
  20. "properties": {
  21. "keyword": {
  22. "type": "string",
  23. "description": "搜索关键词,如品牌名 'NEST New York' 或品类 'candle warmer'"
  24. },
  25. "count": {
  26. "type": "integer",
  27. "description": "返回用户数量",
  28. "default": 10,
  29. "maximum": 30
  30. },
  31. "cursor": {
  32. "type": "integer",
  33. "description": "分页游标",
  34. "default": 0
  35. }
  36. }
  37. },
  38. "requestTransform": {
  39. "queryParams": {
  40. "keyword": "{{keyword}}",
  41. "count": "{{count}}",
  42. "cursor": "{{cursor}}"
  43. }
  44. },
  45. "response": {
  46. "type": "object",
  47. "description": "用户搜索结果",
  48. "properties": {
  49. "user_list": {
  50. "type": "array",
  51. "description": "用户列表(可能在 data.user_list 中)",
  52. "items": {
  53. "type": "object",
  54. "properties": {
  55. "user_info": {
  56. "type": "object",
  57. "properties": {
  58. "unique_id": {
  59. "type": "string",
  60. "description": "用户名"
  61. },
  62. "nickname": {
  63. "type": "string",
  64. "description": "昵称"
  65. },
  66. "follower_count": {
  67. "type": "integer",
  68. "description": "粉丝数"
  69. },
  70. "following_count": {
  71. "type": "integer",
  72. "description": "关注数"
  73. },
  74. "total_favorited": {
  75. "type": "integer",
  76. "description": "获赞总数"
  77. },
  78. "video_count": {
  79. "type": "integer",
  80. "description": "作品数"
  81. },
  82. "avatar_larger": {
  83. "type": "object",
  84. "description": "头像(大图)"
  85. },
  86. "signature": {
  87. "type": "string",
  88. "description": "个人简介"
  89. }
  90. }
  91. }
  92. }
  93. }
  94. }
  95. }
  96. },
  97. "usageExamples": [
  98. {
  99. "name": "搜索香薰达人",
  100. "input": {
  101. "keyword": "candle warmer",
  102. "count": 15
  103. },
  104. "description": "搜索与 candle warmer 相关的 TikTok 达人"
  105. },
  106. {
  107. "name": "搜索品牌账号",
  108. "input": {
  109. "keyword": "NEST New York",
  110. "count": 5
  111. },
  112. "description": "搜索竞品品牌的 TikTok 官方账号"
  113. }
  114. ],
  115. "reportMapping": {
  116. "slides": [
  117. "红人达人库(Slide11)"
  118. ],
  119. "dataPoints": [
  120. "达人粉丝数",
  121. "互动率",
  122. "作品数",
  123. "品类契合度"
  124. ]
  125. },
  126. "timeout": 15000,
  127. "retry": {
  128. "maxAttempts": 3,
  129. "delay": 1500,
  130. "backoffMultiplier": 2
  131. }
  132. }