1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "sourceMode": "list",
12 "goalDescription": "We sell a B2B analytics tool that competes with Northwind: flag price, plan and launch changes our sales team must know this week.",
13 "maxDiscoveryChargeUsd": 0.5,
14 "itemsList": [
15 {
16 "url": "https://northwind-analytics.example/pricing",
17 "label": "Northwind Analytics",
18 "title": "Pricing — Northwind Analytics",
19 "loadedTime": "2026-09-27T08:00:00Z",
20 "previousCheckedAt": "2026-09-20T08:00:00Z",
21 "previousTitle": "Pricing — Northwind Analytics",
22 "previousText": "Simple pricing for growing teams\nStarter | $0 | up to 3 seats | 1 dashboard\nPro | $49 per seat / month | unlimited dashboards | email support\nBusiness | $99 per seat / month | SSO | priority support\nEnterprise | Contact sales\nLast updated 3 days ago",
23 "text": "Simple pricing for growing teams\nStarter | $0 | up to 3 seats | 1 dashboard\nPro | $59 per seat / month | unlimited dashboards | email support\nBusiness | $99 per seat / month | SSO | priority support | audit log included\nEnterprise | Contact sales\nLast updated 2 hours ago"
24 },
25 {
26 "url": "https://northwind-analytics.example/changelog",
27 "label": "Northwind Analytics",
28 "title": "Changelog — Northwind Analytics",
29 "loadedTime": "2026-09-27T08:00:00Z",
30 "previousCheckedAt": "2026-09-20T08:00:00Z",
31 "previousTitle": "Changelog — Northwind Analytics",
32 "previousText": "Changelog\nv4.12 — Scheduled exports to Google Sheets\nv4.11 — Faster dashboard loading",
33 "text": "Changelog\nv4.13 — Launched: AI anomaly alerts, now available on the Pro and Business plans\nv4.12 — Scheduled exports to Google Sheets\nv4.11 — Faster dashboard loading"
34 },
35 {
36 "url": "https://northwind-analytics.example/careers",
37 "label": "Northwind Analytics",
38 "title": "Careers — Northwind Analytics",
39 "loadedTime": "2026-09-27T08:00:00Z",
40 "previousCheckedAt": "2026-09-20T08:00:00Z",
41 "previousTitle": "Careers — Northwind Analytics",
42 "previousText": "Join Northwind\nOpen roles\nProduct Designer — Remote (EU)\nBackend Engineer — Berlin",
43 "text": "Join Northwind\nOpen roles\nSenior Sales Engineer — London (new EMEA team)\nAccount Executive, Enterprise — London\nBackend Engineer — Berlin"
44 },
45 {
46 "url": "https://northwind-analytics.example/blog",
47 "label": "Northwind Analytics",
48 "title": "Blog — Northwind Analytics",
49 "loadedTime": "2026-09-27T08:00:00Z",
50 "previousCheckedAt": "2026-09-20T08:00:00Z",
51 "previousTitle": "Blog — Northwind Analytics",
52 "previousText": "How we cut dashboard load time in half\nSeptember 12, 2026 · 1,204 views\n© 2025 Northwind Analytics",
53 "text": "How we cut dashboard load time in half\nSeptember 12, 2026 · 1,873 views\n© 2026 Northwind Analytics"
54 }
55 ],
56 "discoveryInput": {}
57};
58
59
60const run = await client.actor("rich_minds/website-change-monitor-ai").call(input);
61
62
63console.log('Results from dataset');
64console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
65const { items } = await client.dataset(run.defaultDatasetId).listItems();
66items.forEach((item) => {
67 console.dir(item);
68});
69
70