{
 "name": "[노드 한 장] Convert to File · Steam 순위 → CSV·엑셀 → 다시 데이터",
 "nodes": [
  {
   "id": "b1",
   "name": "Run manually",
   "type": "n8n-nodes-base.manualTrigger",
   "typeVersion": 1,
   "position": [
    0,
    200
   ],
   "parameters": {}
  },
  {
   "id": "b2",
   "name": "Get Steam top sellers",
   "type": "n8n-nodes-base.httpRequest",
   "typeVersion": 4.2,
   "position": [
    220,
    200
   ],
   "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,
    200
   ],
   "parameters": {
    "fieldToSplitOut": "top_sellers.items",
    "options": {}
   }
  },
  {
   "id": "b4",
   "name": "Keep 3 fields",
   "type": "n8n-nodes-base.set",
   "typeVersion": 3.4,
   "position": [
    660,
    200
   ],
   "parameters": {
    "assignments": {
     "assignments": [
      {
       "id": "c1",
       "name": "game",
       "type": "string",
       "value": "={{ $json.name }}"
      },
      {
       "id": "c2",
       "name": "price_usd",
       "type": "number",
       "value": "={{ $json.final_price / 100 }}"
      },
      {
       "id": "c3",
       "name": "discount",
       "type": "number",
       "value": "={{ $json.discount_percent }}"
      }
     ]
    },
    "options": {}
   }
  },
  {
   "id": "b5",
   "name": "To CSV file",
   "type": "n8n-nodes-base.convertToFile",
   "typeVersion": 1.1,
   "position": [
    900,
    100
   ],
   "parameters": {
    "operation": "csv",
    "options": {
     "fileName": "steam-top-sellers.csv"
    }
   }
  },
  {
   "id": "b6",
   "name": "To Excel file",
   "type": "n8n-nodes-base.convertToFile",
   "typeVersion": 1.1,
   "position": [
    900,
    320
   ],
   "parameters": {
    "operation": "xlsx",
    "options": {
     "fileName": "steam-top-sellers.xlsx",
     "sheetName": "top sellers"
    }
   }
  },
  {
   "id": "b7",
   "name": "CSV back to rows",
   "type": "n8n-nodes-base.extractFromFile",
   "typeVersion": 1,
   "position": [
    1140,
    100
   ],
   "parameters": {
    "options": {}
   }
  }
 ],
 "connections": {
  "Run manually": {
   "main": [
    [
     {
      "node": "Get Steam top sellers",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Get Steam top sellers": {
   "main": [
    [
     {
      "node": "Split Out",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Split Out": {
   "main": [
    [
     {
      "node": "Keep 3 fields",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Keep 3 fields": {
   "main": [
    [
     {
      "node": "To CSV file",
      "type": "main",
      "index": 0
     },
     {
      "node": "To Excel file",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "To CSV file": {
   "main": [
    [
     {
      "node": "CSV back to rows",
      "type": "main",
      "index": 0
     }
    ]
   ]
  }
 },
 "settings": {
  "timezone": "Asia/Seoul",
  "executionOrder": "v1"
 },
 "meta": {
  "templateCredsSetupCompleted": false,
  "source": "datapopcorn.ai/workflow/nodes"
 }
}