{
  "name": "Free Amazon price check (mini) \u2013 Tidyware",
  "nodes": [
    {
      "parameters": {},
      "id": "859c0a9b-eec2-42b1-bac3-ae46b3b5e592",
      "name": "Run manually",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        240,
        300
      ]
    },
    {
      "parameters": {
        "jsCode": "// Change the ASIN to the Amazon.com product you want to check (10 characters, from the URL: amazon.com/dp/XXXXXXXXXX).\nreturn [{ json: { asin: 'B0GVZCDSM1' } }];"
      },
      "id": "f5818280-1279-4d7d-93bf-a7ec9ae40650",
      "name": "Your product (edit the ASIN)",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        480,
        300
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.apify.com/v2/acts/henrycrawl~back-in-stock-price-drop-monitor/run-sync-get-dataset-items?timeout=280",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ urls: ['https://www.amazon.com/dp/' + $json.asin], watchName: 'n8n-free-price-check' }) }}",
        "options": {
          "timeout": 300000
        }
      },
      "id": "eff1ee32-b85f-4e66-9546-70d557f42aa7",
      "name": "Run Apify actor",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        720,
        300
      ],
      "retryOnFail": true,
      "maxTries": 3,
      "waitBetweenTries": 5000,
      "onError": "continueRegularOutput",
      "alwaysOutputData": true
    },
    {
      "parameters": {
        "jsCode": "// Reads the Apify result for the product page and returns one tidy row: title, price, status, URL.\nconst num = v => { const n = Number(String(v ?? '').replace(/[^0-9.\\-]/g, '')); return Number.isFinite(n) && String(v ?? '').trim() !== '' ? n : null; };\nconst asin = $('Your product (edit the ASIN)').first().json.asin;\nconst asinOf = j => j.asin || ((String(j.url || '').match(/\\/dp\\/([A-Z0-9]{10})/i) || [])[1] || '');\nconst results = $input.all().map(i => i.json).filter(j => j && j.checkedAt && String(asinOf(j)).toUpperCase() === String(asin).toUpperCase());\nconst j = results[0];\nif (!j) return [{ json: { asin, status: 'NOT_FOUND', price: '', title: '', url: `https://www.amazon.com/dp/${asin}` } }];\nconst price = num(j.price);\nreturn [{ json: {\n  checked_at: new Date().toISOString(),\n  asin,\n  title: String(j.title || '').slice(0, 200),\n  price: price ?? '',\n  currency: j.currency || '',\n  // NO_PRICE: the product page shows no price right now (out of stock or \"See options\").\n  status: price === null ? 'NO_PRICE' : 'OK',\n  url: j.productUrl || j.url || `https://www.amazon.com/dp/${asin}`,\n} }];"
      },
      "id": "bb677ec0-0f68-4190-ba92-c828ed9a5616",
      "name": "Read the price",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        960,
        300
      ]
    },
    {
      "parameters": {
        "width": 520,
        "height": 420,
        "content": "## Free Amazon price check (mini)\n\nChecks ONE Amazon.com product on demand and shows its price.\n\n**Setup (5 minutes)**\n1. Open node **Run Apify actor**, create a credential of type *Header Auth*: Name `Authorization`, Value `Bearer YOUR_APIFY_TOKEN` (Apify account settings > Integrations). A free Apify account includes monthly credit.\n2. Open **Your product** and put the product's ASIN in.\n3. Click *Execute workflow*. The price appears in **Read the price**.\n\n**Cost:** a check is one Apify run (under 1 cent).\n\n**Limits:** single product, manual start, no history, no alerts. The full price-watch workflow logs Amazon and eBay prices to Google Sheets every 6 hours and emails you the drops: https://tidyware.app/n8n-price-tracker-free-workflow/\n\nMade by Tidyware with the help of AI. Not affiliated with Amazon, eBay or Apify."
      },
      "id": "5ab24864-6eea-41ed-9f67-f8ae4c01477b",
      "name": "Setup",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        160,
        -200
      ]
    }
  ],
  "connections": {
    "Run manually": {
      "main": [
        [
          {
            "node": "Your product (edit the ASIN)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Your product (edit the ASIN)": {
      "main": [
        [
          {
            "node": "Run Apify actor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run Apify actor": {
      "main": [
        [
          {
            "node": "Read the price",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "tags": []
}