api-config.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. {
  2. "name": "category_tree",
  3. "displayName": "Amazon 类目树查询",
  4. "description": "获取 Amazon 类目层级树结构,用于定位目标品类的类目 ID,再通过 category_products 获取该类目下的产品列表。",
  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. "properties": {
  17. "domain": {
  18. "type": "integer",
  19. "description": "Amazon 站点 ID: 1=amazon.com",
  20. "default": 1
  21. }
  22. }
  23. },
  24. "requestTransform": {
  25. "template": {
  26. "path": "/api/CategoryTree",
  27. "method": "POST",
  28. "query": {
  29. "domain": "{{domain}}"
  30. },
  31. "body": {}
  32. }
  33. },
  34. "response": {
  35. "type": "array",
  36. "description": "类目树节点数组",
  37. "items": {
  38. "type": "object",
  39. "properties": {
  40. "NodeId": {
  41. "type": "string",
  42. "description": "类目节点 ID"
  43. },
  44. "Name": {
  45. "type": "string",
  46. "description": "类目名称"
  47. },
  48. "Children": {
  49. "type": "array",
  50. "description": "子类目列表"
  51. }
  52. }
  53. }
  54. },
  55. "relatedSkills": [
  56. "category_products"
  57. ],
  58. "usageExamples": [
  59. {
  60. "name": "获取美国站类目树",
  61. "input": {
  62. "domain": 1
  63. },
  64. "description": "获取 amazon.com 的完整类目层级结构"
  65. }
  66. ],
  67. "reportMapping": {
  68. "slides": [
  69. "市场全景(Slide3)"
  70. ],
  71. "dataPoints": [
  72. "品类类目定位"
  73. ]
  74. },
  75. "timeout": 10000,
  76. "retry": {
  77. "maxAttempts": 3,
  78. "delay": 1000,
  79. "backoffMultiplier": 2
  80. }
  81. }