instagram_user_posts.skill.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. {
  2. "name": "instagram_user_posts",
  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_posts_v2",
  10. "headers": {
  11. "Authorization": "Bearer tKIbAsEM8X+GmE2vHqGW7D/ICwK1Q5V4viKFrWiPB6HholGdLFqZJmmyNw==",
  12. "Accept": "application/json"
  13. }
  14. },
  15. "parameters": {
  16. "type": "object",
  17. "required": ["user_id"],
  18. "properties": {
  19. "user_id": {
  20. "type": "string",
  21. "description": "Instagram 用户数字 ID(pk),需先通过 instagram_user_info 或 instagram_search 接口获取"
  22. },
  23. "count": {
  24. "type": "integer",
  25. "description": "每页帖子数量",
  26. "default": 12,
  27. "maximum": 50
  28. },
  29. "end_cursor": {
  30. "type": "string",
  31. "description": "分页游标,首次不传,后续传上次返回的 end_cursor"
  32. }
  33. }
  34. },
  35. "requestTransform": {
  36. "queryParams": {
  37. "user_id": "{{user_id}}",
  38. "count": "{{count}}",
  39. "end_cursor": "{{end_cursor}}"
  40. }
  41. },
  42. "response": {
  43. "type": "object",
  44. "description": "帖子列表",
  45. "properties": {
  46. "items": {
  47. "type": "array",
  48. "description": "帖子数组",
  49. "items": {
  50. "type": "object",
  51. "properties": {
  52. "id": { "type": "string", "description": "帖子 ID" },
  53. "code": { "type": "string", "description": "帖子短码(URL 用)" },
  54. "caption": {
  55. "type": "object",
  56. "properties": {
  57. "text": { "type": "string", "description": "帖子文案" }
  58. }
  59. },
  60. "like_count": { "type": "integer", "description": "点赞数" },
  61. "comment_count": { "type": "integer", "description": "评论数" },
  62. "taken_at": { "type": "integer", "description": "发布时间戳" },
  63. "media_type": { "type": "integer", "description": "媒体类型: 1=图片, 2=视频, 8=轮播" },
  64. "image_versions2": {
  65. "type": "object",
  66. "description": "图片版本列表"
  67. },
  68. "video_versions": {
  69. "type": "array",
  70. "description": "视频版本列表(仅视频帖子)"
  71. },
  72. "view_count": { "type": "integer", "description": "视频观看次数(仅视频帖子)" }
  73. }
  74. }
  75. },
  76. "has_more": { "type": "boolean", "description": "是否有更多帖子" },
  77. "end_cursor": { "type": "string", "description": "下一页游标" }
  78. }
  79. },
  80. "notes": "user_id 需先通过 instagram_user_info 接口获取 pk 字段。帖子的互动率可通过 (like_count + comment_count) / follower_count 计算。",
  81. "relatedSkills": ["instagram_user_info", "instagram_search"],
  82. "usageExamples": [
  83. {
  84. "name": "获取品牌最近帖子",
  85. "input": { "user_id": "12345678", "count": 12 },
  86. "description": "获取品牌最近 12 条帖子的互动数据,分析内容策略"
  87. }
  88. ],
  89. "reportMapping": {
  90. "slides": ["竞品对标(Slide4)", "社媒聆听(Slide14)"],
  91. "dataPoints": ["帖子互动率", "发帖频率", "内容类型分布", "品牌视觉风格"]
  92. }
  93. }