1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "currentSnapshotFile": {
12 "rows": [
13 {
14 "listingId": "900000001",
15 "title": "Illustrative digital planner",
16 "digitalStatus": "digital",
17 "shopName": "Fixture Shop",
18 "currency": "USD",
19 "observedAt": "2026-11-08T12:00:00Z",
20 "price": 5,
21 "listingReviewCount": 14,
22 "visibleBadges": [
23 "Demo badge"
24 ]
25 }
26 ]
27 },
28 "optionalPreviousSnapshotFile": {
29 "rows": [
30 {
31 "listingId": "900000001",
32 "title": "Illustrative digital planner",
33 "digitalStatus": "digital",
34 "shopName": "Fixture Shop",
35 "currency": "USD",
36 "observedAt": "2026-11-01T12:00:00Z",
37 "price": 6,
38 "listingReviewCount": 10,
39 "visibleBadges": []
40 }
41 ]
42 }
43};
44
45
46const run = await client.actor("afkdigital/etsy-digital-product-momentum-tracker").call(input);
47
48
49console.log('Results from dataset');
50console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
51const { items } = await client.dataset(run.defaultDatasetId).listItems();
52items.forEach((item) => {
53 console.dir(item);
54});
55
56