api-config.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. {
  2. "name": "keyword-search-trend",
  3. "displayName": "关键词搜索趋势查询",
  4. "description": "查询指定关键词的搜索结果趋势变化,包括搜索量随时间的变化。用于发现飙升关键词、季节性趋势分析。",
  5. "category": "voc",
  6. "version": "1.1.0",
  7. "endpoint": {
  8. "method": "POST",
  9. "url": "https://server.fmode.cn/api/voc/forward",
  10. "headers": {
  11. "Content-Type": "application/json",
  12. "Authorization": "Bearer r:858b3ee92314d5447d1fc3cdc10462d7"
  13. }
  14. },
  15. "parameters": {
  16. "type": "object",
  17. "required": [
  18. "Keyword"
  19. ],
  20. "properties": {
  21. "Keyword": {
  22. "type": "string",
  23. "description": "要查询趋势的关键词"
  24. },
  25. "domain": {
  26. "type": "integer",
  27. "description": "Amazon 站点 ID: 1=amazon.com",
  28. "default": 1
  29. }
  30. }
  31. },
  32. "requestTransform": {
  33. "template": {
  34. "path": "/api/KeywordSearchResultTrend",
  35. "method": "POST",
  36. "query": {
  37. "domain": "{{domain}}"
  38. },
  39. "body": {
  40. "Keyword": "{{Keyword}}"
  41. }
  42. }
  43. },
  44. "response": {
  45. "type": "object",
  46. "description": "关键词趋势数据",
  47. "properties": {
  48. "TrendData": {
  49. "type": "array",
  50. "description": "趋势数据点列表",
  51. "items": {
  52. "type": "object",
  53. "properties": {
  54. "Date": {
  55. "type": "string",
  56. "description": "日期"
  57. },
  58. "SearchVolume": {
  59. "type": "integer",
  60. "description": "搜索量"
  61. },
  62. "ProductCount": {
  63. "type": "integer",
  64. "description": "搜索结果产品数"
  65. }
  66. }
  67. }
  68. }
  69. }
  70. },
  71. "usageExamples": [
  72. {
  73. "name": "查询关键词搜索趋势",
  74. "input": {
  75. "Keyword": "candle warmer lamp aesthetic",
  76. "domain": 1
  77. },
  78. "description": "查看 'candle warmer lamp aesthetic' 的搜索量变化趋势"
  79. }
  80. ],
  81. "reportMapping": {
  82. "slides": [
  83. "趋势雷达(Slide12)"
  84. ],
  85. "dataPoints": [
  86. "关键词搜索趋势",
  87. "飙升卖点词增幅"
  88. ]
  89. },
  90. "timeout": 10000,
  91. "retry": {
  92. "maxAttempts": 3,
  93. "delay": 1000,
  94. "backoffMultiplier": 2
  95. }
  96. }