1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "currentItems": [
12 {
13 "merchant": "ShopCo",
14 "product": "SKU-101",
15 "url": "https://shop.example/p/101",
16 "price": 89,
17 "feedPrice": 79,
18 "availability": "in_stock",
19 "schemaComplete": false,
20 "blockingIssueCount": 2,
21 "observedAt": "2026-09-19"
22 },
23 {
24 "merchant": "ShopCo",
25 "product": "SKU-202",
26 "url": "https://shop.example/p/202",
27 "price": 49,
28 "feedPrice": 49,
29 "availability": "in_stock",
30 "schemaComplete": true,
31 "blockingIssueCount": 0,
32 "observedAt": "2026-09-19"
33 }
34 ],
35 "previousItems": [
36 {
37 "merchant": "ShopCo",
38 "product": "SKU-101",
39 "url": "https://shop.example/p/101",
40 "price": 79,
41 "feedPrice": 79,
42 "availability": "in_stock",
43 "schemaComplete": true,
44 "blockingIssueCount": 0,
45 "observedAt": "2026-09-12"
46 }
47 ]
48};
49
50
51const run = await client.actor("quanmatrix/agentic-commerce-readiness-product-feed-intelligence").call(input);
52
53
54console.log('Results from dataset');
55console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
56const { items } = await client.dataset(run.defaultDatasetId).listItems();
57items.forEach((item) => {
58 console.dir(item);
59});
60
61