api-config.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {
  2. "name": "douyin-user-search",
  3. "displayName": "抖音用户搜索 V2",
  4. "description": "按关键词搜索抖音达人/用户,返回匹配的账号列表及基础数据。适用于红人库建设、品类达人批量筛选、竞品代言人定位。",
  5. "category": "douyin",
  6. "version": "1.3.0",
  7. "endpoint": {
  8. "method": "POST",
  9. "url": "https://server.fmode.cn/api/voc-social/douyin/search/fetch_user_search_v2",
  10. "headers": {
  11. "Authorization": "Bearer r:a5a19ea9868043b15d9b10423234ca43",
  12. "Content-Type": "application/json",
  13. "Accept": "application/json"
  14. }
  15. },
  16. "parameters": {
  17. "type": "object",
  18. "required": [
  19. "keyword"
  20. ],
  21. "properties": {
  22. "keyword": {
  23. "type": "string",
  24. "description": "搜索关键词,如 '人工智能'、'美妆'"
  25. },
  26. "cursor": {
  27. "type": "integer",
  28. "description": "翻页游标,首次请求传 0",
  29. "default": 0
  30. }
  31. }
  32. },
  33. "requestTransform": {
  34. "body": {
  35. "keyword": "{{keyword}}",
  36. "cursor": "{{cursor}}"
  37. }
  38. },
  39. "response": {
  40. "type": "object",
  41. "description": "用户搜索结果",
  42. "properties": {
  43. "cursor": {
  44. "type": "integer",
  45. "description": "下一页游标"
  46. },
  47. "has_more": {
  48. "type": "integer",
  49. "description": "是否有更多数据(1=有,0=无)"
  50. },
  51. "user_list": {
  52. "type": "array",
  53. "description": "用户列表",
  54. "items": {
  55. "type": "object",
  56. "properties": {
  57. "user_info": {
  58. "type": "object",
  59. "description": "用户信息(uid, nickname, unique_id, sec_uid, follower_count, signature 等)"
  60. }
  61. }
  62. }
  63. }
  64. }
  65. },
  66. "usageExamples": [
  67. {
  68. "name": "品类达人批量筛选",
  69. "input": {
  70. "keyword": "香薰蜡烛达人",
  71. "cursor": 0
  72. },
  73. "description": "搜索香薰蜡烛品类达人,得到候选名单后用 douyin-user-profile 获取粉丝数评估化"
  74. },
  75. {
  76. "name": "竞品品牌账号搜索",
  77. "input": {
  78. "keyword": "竞品品牌名+官方旗舰店",
  79. "cursor": 0
  80. },
  81. "description": "搜索竞品品牌在抖音的官方账号,用于监控其运营动态"
  82. }
  83. ],
  84. "workflow": {
  85. "description": "推荐调用链",
  86. "steps": [
  87. "本步: douyin-user-search(keyword) → 搜索达人/品牌 → 得到 uid、nickname、sec_uid、follower_count",
  88. "下游: douyin-user-profile(sec_user_id) → 获取账号完整数据和统计",
  89. "筛选: 按 follower_count 筛选符合粉丝规模要求的达人"
  90. ]
  91. },
  92. "reportMapping": {
  93. "slides": [
  94. "社媒聆听(Slide14)"
  95. ],
  96. "dataPoints": [
  97. "品类达人候选列表",
  98. "粉丝规模分布(头部/腰部/尾部达人)",
  99. "竞品代言人定位"
  100. ]
  101. },
  102. "timeout": 45000,
  103. "retry": {
  104. "maxAttempts": 3,
  105. "delay": 1500,
  106. "backoffMultiplier": 2
  107. }
  108. }