category_tree.skill.json 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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": { "domain": "{{domain}}" },
  29. "body": {}
  30. }
  31. },
  32. "response": {
  33. "type": "array",
  34. "description": "类目树节点数组",
  35. "items": {
  36. "type": "object",
  37. "properties": {
  38. "NodeId": { "type": "string", "description": "类目节点 ID" },
  39. "Name": { "type": "string", "description": "类目名称" },
  40. "Children": { "type": "array", "description": "子类目列表" }
  41. }
  42. }
  43. },
  44. "relatedSkills": ["category_products"],
  45. "usageExamples": [
  46. {
  47. "name": "获取美国站类目树",
  48. "input": { "domain": 1 },
  49. "description": "获取 amazon.com 的完整类目层级结构"
  50. }
  51. ],
  52. "reportMapping": {
  53. "slides": ["市场全景(Slide3)"],
  54. "dataPoints": ["品类类目定位"]
  55. }
  56. }