api-config.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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": ["username"],
  18. "properties": {
  19. "username": {
  20. "type": "string",
  21. "description": "Instagram 用户名(不含@),如 'nestnewyork'、'paddywax'"
  22. }
  23. }
  24. },
  25. "requestTransform": {
  26. "queryParams": {
  27. "username": "{{username}}"
  28. }
  29. },
  30. "response": {
  31. "type": "object",
  32. "description": "用户详细资料",
  33. "properties": {
  34. "user": {
  35. "type": "object",
  36. "properties": {
  37. "pk": { "type": "string", "description": "用户数字 ID" },
  38. "username": { "type": "string", "description": "用户名" },
  39. "full_name": { "type": "string", "description": "显示名称" },
  40. "biography": { "type": "string", "description": "个人简介" },
  41. "follower_count": { "type": "integer", "description": "粉丝数" },
  42. "following_count": { "type": "integer", "description": "关注数" },
  43. "media_count": { "type": "integer", "description": "帖子总数" },
  44. "is_verified": { "type": "boolean", "description": "是否蓝V认证" },
  45. "is_business": { "type": "boolean", "description": "是否商业账号" },
  46. "category": { "type": "string", "description": "账号类别" },
  47. "external_url": { "type": "string", "description": "外部链接(如品牌官网)" },
  48. "profile_pic_url_hd": { "type": "string", "description": "高清头像 URL" }
  49. }
  50. }
  51. }
  52. },
  53. "notes": "返回的 pk(用户数字 ID)可用于 instagram_user_posts 接口获取帖子列表。media_count 对应报告中的帖子数(如 Paddywax 3,095 条)。",
  54. "usageExamples": [
  55. {
  56. "name": "获取 NEST New York IG 详情",
  57. "input": { "username": "nestnewyork" },
  58. "description": "获取 NEST New York 的 IG 粉丝数(报告中显示 144,102)、帖子数等"
  59. },
  60. {
  61. "name": "获取 Paddywax IG 详情",
  62. "input": { "username": "paddywax" },
  63. "description": "获取 Paddywax 的 IG 粉丝数(报告中显示 126,441)和帖子数(3,095 条)"
  64. },
  65. {
  66. "name": "获取 SpaRoom IG 详情",
  67. "input": { "username": "sparoom" },
  68. "description": "获取 SpaRoom 的 IG 数据(报告中显示极低存在感)"
  69. }
  70. ],
  71. "reportMapping": {
  72. "slides": ["竞品对标(Slide4)", "知识中心(Slide11)"],
  73. "dataPoints": ["IG粉丝数", "帖子总数", "认证状态", "品牌简介", "外部链接"]
  74. }
  75. }