api-config.json 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {
  2. "name": "category_products",
  3. "displayName": "Amazon 类目产品查询",
  4. "description": "根据类目 ID 获取该类目下的产品列表。用于获取品类 Top 产品、分析品类竞争格局、统计品牌分布和中国卖家占比。",
  5. "category": "voc",
  6. "version": "1.0.0",
  7. "endpoint": {
  8. "method": "POST",
  9. "url": "https://server-msq.fmode.cn/api/sorftime/forward",
  10. "headers": {
  11. "Content-Type": "application/json"
  12. }
  13. },
  14. "parameters": {
  15. "type": "object",
  16. "required": ["NodeId"],
  17. "properties": {
  18. "NodeId": {
  19. "type": "string",
  20. "description": "Amazon 类目节点 ID,可通过 category_tree 接口获取"
  21. },
  22. "domain": {
  23. "type": "integer",
  24. "description": "Amazon 站点 ID: 1=amazon.com",
  25. "default": 1
  26. }
  27. }
  28. },
  29. "requestTransform": {
  30. "template": {
  31. "path": "/api/CategoryProducts",
  32. "method": "POST",
  33. "query": { "domain": "{{domain}}" },
  34. "body": {
  35. "NodeId": "{{NodeId}}"
  36. }
  37. }
  38. },
  39. "response": {
  40. "type": "array",
  41. "description": "类目下的产品列表",
  42. "items": {
  43. "type": "object",
  44. "properties": {
  45. "Asin": { "type": "string", "description": "产品 ASIN" },
  46. "Title": { "type": "string", "description": "产品标题" },
  47. "Price": { "type": "number", "description": "售价" },
  48. "Rating": { "type": "number", "description": "评分" },
  49. "RatingsCount": { "type": "integer", "description": "评论数" },
  50. "BSR": { "type": "integer", "description": "BSR 排名" },
  51. "Brand": { "type": "string", "description": "品牌" }
  52. }
  53. }
  54. },
  55. "relatedSkills": ["category_tree"],
  56. "usageExamples": [
  57. {
  58. "name": "获取类目产品列表",
  59. "input": { "NodeId": "3734931", "domain": 1 },
  60. "description": "获取指定类目下的产品列表"
  61. }
  62. ],
  63. "reportMapping": {
  64. "slides": ["市场全景(Slide3)"],
  65. "dataPoints": ["品类产品列表", "品牌分布", "价格带分析"]
  66. }
  67. }