{
  "name": "eBay & Mercari Sold Listings Scraper — Sold Prices, Best Offer Comps & 25% Deal Sniper",
  "nodes": [
    {
      "parameters": {
        "content": "## 💰 CEA Digital — eBay & Mercari Sold Listings Scraper (`ceadigital/ebay-sold-listings-comps-scraper`)\n- **Zero Community Nodes Required**: Works on n8n Cloud & Self-Hosted.\n- **Direct Unified Key (`$29/mo` for `5,000` hits or `$2` Tripwire)**: [https://ceadigital.io/tools](https://ceadigital.io/tools)\n- **Need an Automated Recommerce Buying Desk (`$1,500–$5,000/mo` Turnkey Setup)?** Book at [https://ceadigital.io](https://ceadigital.io)",
        "height": 220,
        "width": 520
      },
      "id": "sticky-cta-3",
      "name": "Setup & Unified Key CTA",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [180, 80]
    },
    {
      "parameters": {
        "rule": {
          "interval": [{ "field": "minutes", "minutesInterval": 15 }]
        }
      },
      "id": "schedule-trigger-3",
      "name": "Every 15 Minutes Arbitrage Scan",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [200, 340]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://ceadigital.io/v1/tools/sold-comps",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            { "name": "Authorization", "value": "Bearer {{ $env.CEA_UNIFIED_API_KEY }}" },
            { "name": "Content-Type", "value": "application/json" }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\n  \"keywords\": [\"Fujifilm X100V Silver Digital Camera\", \"Herman Miller Aeron Remastered Size B Graphite\"],\n  \"condition\": \"used\",\n  \"filterDealers\": true,\n  \"monitorMode\": true,\n  \"underpricedThresholdPct\": 25,\n  \"watchlistId\": \"n8n-arbitrage-sniper\",\n  \"onlyNew\": true\n}"
      },
      "id": "http-sold-comps-3",
      "name": "Check 30-Day Sold Comps & Net Margin",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [460, 340]
    },
    {
      "parameters": {
        "conditions": {
          "boolean": [
            {
              "value1": "={{ $json.data.items[0].is_underpriced_deal }}",
              "value2": true
            }
          ]
        }
      },
      "id": "if-underpriced-3",
      "name": "Is >=25% Below 30-Day Median Sold Price?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [720, 340]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "={{ $env.DEAL_ALERT_WEBHOOK_URL || 'https://ceadigital.io/health' }}",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify($json.data.items[0]) }}"
      },
      "id": "http-deal-alert-3",
      "name": "Send Instant Buy-It-Now Sniper Alert",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [980, 340]
    }
  ],
  "connections": {
    "Every 15 Minutes Arbitrage Scan": {
      "main": [[{ "node": "Check 30-Day Sold Comps & Net Margin", "type": "main", "index": 0 }]]
    },
    "Check 30-Day Sold Comps & Net Margin": {
      "main": [[{ "node": "Is >=25% Below 30-Day Median Sold Price?", "type": "main", "index": 0 }]]
    },
    "Is >=25% Below 30-Day Median Sold Price?": {
      "main": [[{ "node": "Send Instant Buy-It-Now Sniper Alert", "type": "main", "index": 0 }], []]
    }
  },
  "settings": { "executionOrder": "v1" }
}
