{
 "name": "[노드 한 장] Sort + Limit · 할인율 높은 순 상위 3개",
 "nodes": [
  {
   "id": "b1",
   "name": "Run manually",
   "type": "n8n-nodes-base.manualTrigger",
   "typeVersion": 1,
   "position": [
    0,
    0
   ],
   "parameters": {}
  },
  {
   "id": "b2",
   "name": "Get Steam deals",
   "type": "n8n-nodes-base.httpRequest",
   "typeVersion": 4.2,
   "position": [
    220,
    0
   ],
   "parameters": {
    "url": "https://store.steampowered.com/api/featuredcategories?cc=us&l=english",
    "options": {}
   }
  },
  {
   "id": "b3",
   "name": "Split Out",
   "type": "n8n-nodes-base.splitOut",
   "typeVersion": 1,
   "position": [
    440,
    0
   ],
   "parameters": {
    "fieldToSplitOut": "specials.items",
    "options": {}
   }
  },
  {
   "id": "b4",
   "name": "Keep 3 fields",
   "type": "n8n-nodes-base.set",
   "typeVersion": 3.4,
   "position": [
    660,
    0
   ],
   "parameters": {
    "assignments": {
     "assignments": [
      {
       "id": "k1",
       "name": "game",
       "type": "string",
       "value": "={{ $json.name }}"
      },
      {
       "id": "k2",
       "name": "discount",
       "type": "number",
       "value": "={{ $json.discount_percent }}"
      },
      {
       "id": "k3",
       "name": "price_usd",
       "type": "number",
       "value": "={{ $json.final_price / 100 }}"
      }
     ]
    },
    "options": {}
   }
  },
  {
   "id": "b5",
   "name": "Sort by discount",
   "type": "n8n-nodes-base.sort",
   "typeVersion": 1,
   "position": [
    880,
    0
   ],
   "parameters": {
    "sortFieldsUi": {
     "sortField": [
      {
       "fieldName": "discount",
       "order": "descending"
      }
     ]
    },
    "options": {}
   }
  },
  {
   "id": "b6",
   "name": "Top 3",
   "type": "n8n-nodes-base.limit",
   "typeVersion": 1,
   "position": [
    1100,
    0
   ],
   "parameters": {
    "maxItems": 3
   }
  }
 ],
 "connections": {
  "Run manually": {
   "main": [
    [
     {
      "node": "Get Steam deals",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Get Steam deals": {
   "main": [
    [
     {
      "node": "Split Out",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Split Out": {
   "main": [
    [
     {
      "node": "Keep 3 fields",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Keep 3 fields": {
   "main": [
    [
     {
      "node": "Sort by discount",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Sort by discount": {
   "main": [
    [
     {
      "node": "Top 3",
      "type": "main",
      "index": 0
     }
    ]
   ]
  }
 },
 "settings": {
  "timezone": "Asia/Seoul",
  "executionOrder": "v1"
 },
 "meta": {
  "templateCredsSetupCompleted": false,
  "source": "datapopcorn.ai/workflow/nodes"
 }
}