api-config.json 1.8 KB

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