api-config.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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": ["query"],
  18. "properties": {
  19. "query": {
  20. "type": "string",
  21. "description": "搜索关键词,如品牌名 'NEST New York'、'Paddywax'、'SpaRoom'"
  22. },
  23. "select": {
  24. "type": "string",
  25. "description": "搜索类型: 'users'=搜索用户, 'hashtags'=搜索标签",
  26. "default": "users",
  27. "enum": ["users", "hashtags"]
  28. }
  29. }
  30. },
  31. "requestTransform": {
  32. "queryParams": {
  33. "query": "{{query}}",
  34. "select": "{{select}}"
  35. }
  36. },
  37. "response": {
  38. "type": "object",
  39. "description": "搜索结果",
  40. "properties": {
  41. "users": {
  42. "type": "array",
  43. "description": "匹配的用户列表",
  44. "items": {
  45. "type": "object",
  46. "properties": {
  47. "user": {
  48. "type": "object",
  49. "properties": {
  50. "pk": { "type": "string", "description": "用户数字 ID(用于获取帖子)" },
  51. "username": { "type": "string", "description": "用户名" },
  52. "full_name": { "type": "string", "description": "显示名称" },
  53. "is_verified": { "type": "boolean", "description": "是否认证" },
  54. "profile_pic_url": { "type": "string", "description": "头像 URL" },
  55. "follower_count": { "type": "integer", "description": "粉丝数" },
  56. "is_private": { "type": "boolean", "description": "是否私密账号" }
  57. }
  58. }
  59. }
  60. }
  61. }
  62. }
  63. },
  64. "notes": "搜索结果中的 user.pk 可用于 instagram_user_posts 接口获取帖子列表。username 可用于 instagram_user_info 获取详细资料。",
  65. "usageExamples": [
  66. {
  67. "name": "搜索 NEST New York 品牌",
  68. "input": { "query": "NEST New York", "select": "users" },
  69. "description": "搜索 NEST New York 的 Instagram 品牌账号"
  70. },
  71. {
  72. "name": "搜索 Paddywax 品牌",
  73. "input": { "query": "Paddywax", "select": "users" },
  74. "description": "搜索 Paddywax 的 Instagram 品牌账号"
  75. }
  76. ],
  77. "reportMapping": {
  78. "slides": ["竞品对标(Slide4)", "知识中心(Slide11)"],
  79. "dataPoints": ["品牌IG账号发现", "粉丝数初步数据"]
  80. }
  81. }