1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "currentCatalogFile": {
12 "catalogs": [
13 {
14 "storeDomain": "demo-catalog.example",
15 "scopeKey": "all-online-products",
16 "observedAt": "2026-11-18T12:00:00Z",
17 "complete": true,
18 "scanSucceeded": true,
19 "variantsComplete": true,
20 "currencyContext": {
21 "currency": "USD",
22 "market": "US"
23 },
24 "sourceUrl": "https://demo-catalog.example/authorized-export.json",
25 "products": [
26 {
27 "id": "p100",
28 "title": "Demo Linen Shirt",
29 "handle": "linen-shirt",
30 "price": "39.00",
31 "available": true,
32 "variants": [
33 {
34 "id": "v100-s",
35 "title": "Small",
36 "price": "39.00",
37 "available": true
38 },
39 {
40 "id": "v100-m",
41 "title": "Medium",
42 "price": "39.00",
43 "available": false
44 }
45 ]
46 },
47 {
48 "id": "p200",
49 "title": "Demo Canvas Bag",
50 "handle": "canvas-bag",
51 "price": "24.00",
52 "available": true,
53 "variants": []
54 }
55 ]
56 }
57 ]
58 },
59 "demo": true
60};
61
62
63const run = await client.actor("afkdigital/shopify-new-product-catalog-change-monitor").call(input);
64
65
66console.log('Results from dataset');
67console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
68const { items } = await client.dataset(run.defaultDatasetId).listItems();
69items.forEach((item) => {
70 console.dir(item);
71});
72
73