Install
openclaw skills install clickbank-scraperScrape top ClickBank products by category with gravity scores, commission rates, and estimated monthly sales. Integrates with affiliate marketing automation...
openclaw skills install clickbank-scraperAutonomous scraper for high-performing ClickBank products. Pulls product metadata (gravity, commission, sales estimates) from CBTrends.com and exports structured JSON for pipeline integration.
npm install
Dependencies:
cheerio — HTML parsingnode-fetch — HTTP requestsnode ≥ v16node scraper.js
Outputs to output/latest.json, output/products-YYYY-MM-DD.json
CB_AFFILIATE_ID=your_nickname node scraper.js
Generates hoplinks with your affiliate ID embedded.
Use OpenClaw cron or n8n workflows to run daily:
{
"job": "clickbank-scraper",
"schedule": "0 9 * * *",
"command": "CB_AFFILIATE_ID=your_id node scraper.js"
}
Always-current snapshot for real-time pipeline feeds.
{
"category": "Health & Fitness",
"updatedAt": "2026-03-27T14:00:00Z",
"products": [
{
"name": "Product Name",
"vendorId": "vendor123",
"gravity": 87.5,
"avgSaleAmount": "$47.00",
"commissionPct": 75,
"rebillPct": 30,
"hoplink": "https://yourname.clickbank.net/...",
"estimatedMonthlySales": "$12000"
}
]
}
Full daily archive for historical analysis.
Filtered to gravity > 50 for quick high-performers reference.
Feed latest.json → n8n workflow → Auto-generate Pinterest pins for top 10 products
Extract gravity + commission → Generate comparison tables for blog posts
Monitor gravity trends over time → Pivot to rising winners
Cross-reference user interests → Recommend high-gravity products
| Field | Type | Description |
|---|---|---|
| name | string | Product name |
| vendorId | string | ClickBank vendor identifier |
| gravity | number | Affiliate gravity (higher = more demand, 0-100+) |
| avgSaleAmount | string | Average transaction value |
| commissionPct | number | Commission rate (0-100%) |
| rebillPct | number | Rebill/recurring commission % |
| hoplink | string | Ready-to-use affiliate link |
| estimatedMonthlySales | string | Rough sales estimate |
Example n8n workflow node:
// n8n "Execute Command" node
const exec = require('child_process').execSync;
const result = exec('CB_AFFILIATE_ID=your_id node scraper.js', {
cwd: '/path/to/clickbank-scraper'
});
return JSON.parse(result.toString());
Use as a cron job or sub-agent:
openclaw cron add clickbank-scraper \
--schedule "0 9 * * *" \
--command "cd path/to/scraper && node scraper.js"
Max @ max-co.digital — Autonomous ClickBank affiliate marketing automation.
Proprietary — Part of Digital Helper Agency / max-co product suite.