api-config.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. {
  2. "name": "instagram-user-info",
  3. "displayName": "Instagram 用户详情",
  4. "description": "根据用户名获取 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_user_info_by_username_v3",
  10. "headers": {
  11. "Authorization": "Bearer tKIbAsEM8X+GmE2vHqGW7D/ICwK1Q5V4viKFrWiPB6HholGdLFqZJmmyNw==",
  12. "Accept": "application/json"
  13. }
  14. },
  15. "parameters": {
  16. "type": "object",
  17. "required": [
  18. "username"
  19. ],
  20. "properties": {
  21. "username": {
  22. "type": "string",
  23. "description": "Instagram 用户名(不含@),如 'nestnewyork'、'paddywax'"
  24. }
  25. }
  26. },
  27. "requestTransform": {
  28. "queryParams": {
  29. "username": "{{username}}"
  30. }
  31. },
  32. "response": {
  33. "type": "object",
  34. "description": "用户详细资料",
  35. "properties": {
  36. "user": {
  37. "type": "object",
  38. "properties": {
  39. "pk": {
  40. "type": "string",
  41. "description": "用户数字 ID"
  42. },
  43. "username": {
  44. "type": "string",
  45. "description": "用户名"
  46. },
  47. "full_name": {
  48. "type": "string",
  49. "description": "显示名称"
  50. },
  51. "biography": {
  52. "type": "string",
  53. "description": "个人简介"
  54. },
  55. "follower_count": {
  56. "type": "integer",
  57. "description": "粉丝数"
  58. },
  59. "following_count": {
  60. "type": "integer",
  61. "description": "关注数"
  62. },
  63. "media_count": {
  64. "type": "integer",
  65. "description": "帖子总数"
  66. },
  67. "is_verified": {
  68. "type": "boolean",
  69. "description": "是否蓝V认证"
  70. },
  71. "is_business": {
  72. "type": "boolean",
  73. "description": "是否商业账号"
  74. },
  75. "category": {
  76. "type": "string",
  77. "description": "账号类别"
  78. },
  79. "external_url": {
  80. "type": "string",
  81. "description": "外部链接(如品牌官网)"
  82. },
  83. "profile_pic_url_hd": {
  84. "type": "string",
  85. "description": "高清头像 URL"
  86. }
  87. }
  88. }
  89. }
  90. },
  91. "notes": "返回的 pk(用户数字 ID)可用于 instagram_user_posts 接口获取帖子列表。media_count 对应报告中的帖子数(如 Paddywax 3,095 条)。",
  92. "usageExamples": [
  93. {
  94. "name": "获取 NEST New York IG 详情",
  95. "input": {
  96. "username": "nestnewyork"
  97. },
  98. "description": "获取 NEST New York 的 IG 粉丝数(报告中显示 144,102)、帖子数等"
  99. },
  100. {
  101. "name": "获取 Paddywax IG 详情",
  102. "input": {
  103. "username": "paddywax"
  104. },
  105. "description": "获取 Paddywax 的 IG 粉丝数(报告中显示 126,441)和帖子数(3,095 条)"
  106. },
  107. {
  108. "name": "获取 SpaRoom IG 详情",
  109. "input": {
  110. "username": "sparoom"
  111. },
  112. "description": "获取 SpaRoom 的 IG 数据(报告中显示极低存在感)"
  113. }
  114. ],
  115. "reportMapping": {
  116. "slides": [
  117. "竞品对标(Slide4)",
  118. "知识中心(Slide11)"
  119. ],
  120. "dataPoints": [
  121. "IG粉丝数",
  122. "帖子总数",
  123. "认证状态",
  124. "品牌简介",
  125. "外部链接"
  126. ]
  127. },
  128. "timeout": 15000,
  129. "retry": {
  130. "maxAttempts": 3,
  131. "delay": 1500,
  132. "backoffMultiplier": 2
  133. }
  134. }