api-config.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. {
  2. "name": "instagram-search",
  3. "displayName": "Instagram 搜索",
  4. "description": "按关键词搜索 Instagram 用户/品牌账号,返回匹配的用户列表。用于竞品品牌 Instagram 账号发现、红人搜索。",
  5. "category": "social-media",
  6. "version": "1.0.0",
  7. "endpoint": {
  8. "method": "GET",
  9. "url": "https://server.fmode.cn/thapi/v1/instagram/v1/fetch_search",
  10. "headers": {
  11. "Authorization": "Bearer tKIbAsEM8X+GmE2vHqGW7D/ICwK1Q5V4viKFrWiPB6HholGdLFqZJmmyNw==",
  12. "Accept": "application/json"
  13. }
  14. },
  15. "parameters": {
  16. "type": "object",
  17. "required": [
  18. "query"
  19. ],
  20. "properties": {
  21. "query": {
  22. "type": "string",
  23. "description": "搜索关键词,如品牌名 'NEST New York'、'Paddywax'、'SpaRoom'"
  24. },
  25. "select": {
  26. "type": "string",
  27. "description": "搜索类型: 'users'=搜索用户, 'hashtags'=搜索标签",
  28. "default": "users",
  29. "enum": [
  30. "users",
  31. "hashtags"
  32. ]
  33. }
  34. }
  35. },
  36. "requestTransform": {
  37. "queryParams": {
  38. "query": "{{query}}",
  39. "select": "{{select}}"
  40. }
  41. },
  42. "response": {
  43. "type": "object",
  44. "description": "搜索结果",
  45. "properties": {
  46. "users": {
  47. "type": "array",
  48. "description": "匹配的用户列表",
  49. "items": {
  50. "type": "object",
  51. "properties": {
  52. "user": {
  53. "type": "object",
  54. "properties": {
  55. "pk": {
  56. "type": "string",
  57. "description": "用户数字 ID(用于获取帖子)"
  58. },
  59. "username": {
  60. "type": "string",
  61. "description": "用户名"
  62. },
  63. "full_name": {
  64. "type": "string",
  65. "description": "显示名称"
  66. },
  67. "is_verified": {
  68. "type": "boolean",
  69. "description": "是否认证"
  70. },
  71. "profile_pic_url": {
  72. "type": "string",
  73. "description": "头像 URL"
  74. },
  75. "follower_count": {
  76. "type": "integer",
  77. "description": "粉丝数"
  78. },
  79. "is_private": {
  80. "type": "boolean",
  81. "description": "是否私密账号"
  82. }
  83. }
  84. }
  85. }
  86. }
  87. }
  88. }
  89. },
  90. "notes": "搜索结果中的 user.pk 可用于 instagram_user_posts 接口获取帖子列表。username 可用于 instagram_user_info 获取详细资料。",
  91. "usageExamples": [
  92. {
  93. "name": "搜索 NEST New York 品牌",
  94. "input": {
  95. "query": "NEST New York",
  96. "select": "users"
  97. },
  98. "description": "搜索 NEST New York 的 Instagram 品牌账号"
  99. },
  100. {
  101. "name": "搜索 Paddywax 品牌",
  102. "input": {
  103. "query": "Paddywax",
  104. "select": "users"
  105. },
  106. "description": "搜索 Paddywax 的 Instagram 品牌账号"
  107. }
  108. ],
  109. "reportMapping": {
  110. "slides": [
  111. "竞品对标(Slide4)",
  112. "知识中心(Slide11)"
  113. ],
  114. "dataPoints": [
  115. "品牌IG账号发现",
  116. "粉丝数初步数据"
  117. ]
  118. },
  119. "timeout": 15000,
  120. "retry": {
  121. "maxAttempts": 3,
  122. "delay": 1500,
  123. "backoffMultiplier": 2
  124. }
  125. }