{
 "name": "[노드 한 장] Remove Duplicates · Steam 중복 빼고, 본 건 건너뛰기",
 "nodes": [
  {
   "id": "d1",
   "name": "Run manually",
   "type": "n8n-nodes-base.manualTrigger",
   "typeVersion": 1,
   "position": [
    0,
    0
   ],
   "parameters": {}
  },
  {
   "id": "d2",
   "name": "Get Steam top sellers",
   "type": "n8n-nodes-base.httpRequest",
   "typeVersion": 4.2,
   "position": [
    240,
    0
   ],
   "parameters": {
    "url": "https://store.steampowered.com/api/featuredcategories?cc=us&l=english",
    "options": {}
   }
  },
  {
   "id": "d3",
   "name": "Split into games",
   "type": "n8n-nodes-base.splitOut",
   "typeVersion": 1,
   "position": [
    480,
    0
   ],
   "parameters": {
    "fieldToSplitOut": "top_sellers.items",
    "options": {}
   }
  },
  {
   "id": "d4",
   "name": "Remove repeats in this run",
   "type": "n8n-nodes-base.removeDuplicates",
   "typeVersion": 2,
   "position": [
    720,
    0
   ],
   "parameters": {
    "compare": "selectedFields",
    "fieldsToCompare": "id",
    "options": {}
   }
  },
  {
   "id": "d5",
   "name": "Skip games seen before",
   "type": "n8n-nodes-base.removeDuplicates",
   "typeVersion": 2,
   "position": [
    960,
    0
   ],
   "parameters": {
    "operation": "removeItemsSeenInPreviousExecutions",
    "dedupeValue": "={{ $json.id }}",
    "options": {}
   }
  },
  {
   "id": "d6",
   "name": "New games only",
   "type": "n8n-nodes-base.set",
   "typeVersion": 3.4,
   "position": [
    1200,
    0
   ],
   "parameters": {
    "assignments": {
     "assignments": [
      {
       "id": "g1",
       "name": "game",
       "type": "string",
       "value": "={{ $json.name }}"
      },
      {
       "id": "g2",
       "name": "app_id",
       "type": "number",
       "value": "={{ $json.id }}"
      },
      {
       "id": "g3",
       "name": "price_usd",
       "type": "number",
       "value": "={{ $json.final_price / 100 }}"
      }
     ]
    },
    "options": {}
   }
  }
 ],
 "connections": {
  "Run manually": {
   "main": [
    [
     {
      "node": "Get Steam top sellers",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Get Steam top sellers": {
   "main": [
    [
     {
      "node": "Split into games",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Split into games": {
   "main": [
    [
     {
      "node": "Remove repeats in this run",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Remove repeats in this run": {
   "main": [
    [
     {
      "node": "Skip games seen before",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Skip games seen before": {
   "main": [
    [
     {
      "node": "New games only",
      "type": "main",
      "index": 0
     }
    ]
   ]
  }
 },
 "settings": {
  "timezone": "Asia/Seoul",
  "executionOrder": "v1"
 },
 "meta": {
  "templateCredsSetupCompleted": false,
  "source": "datapopcorn.ai/workflow/nodes"
 }
}