1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "current": {
12 "observedAt": "2026-11-18T02:00:00Z",
13 "items": [
14 {
15 "platform": "musinsa",
16 "productId": "demo-1",
17 "variantId": "black-M",
18 "matchKey": "demo-black-M",
19 "priceType": "sale",
20 "priceKrw": 45000,
21 "stock": "out_of_stock",
22 "rank": 3,
23 "rankContext": "weekly-outerwear"
24 },
25 {
26 "platform": "29cm",
27 "productId": "demo-2",
28 "variantId": "black-M",
29 "matchKey": "demo-black-M",
30 "priceType": "sale",
31 "priceKrw": 49000
32 },
33 {
34 "platform": "kream",
35 "productId": "demo-3",
36 "variantId": "black-M",
37 "matchKey": "demo-black-M",
38 "priceType": "last_trade",
39 "priceKrw": 40000
40 }
41 ]
42 },
43 "previous": {
44 "observedAt": "2026-11-17T02:00:00Z",
45 "items": [
46 {
47 "platform": "musinsa",
48 "productId": "demo-1",
49 "variantId": "black-M",
50 "matchKey": "demo-black-M",
51 "priceType": "sale",
52 "priceKrw": 50000,
53 "stock": "in_stock",
54 "rank": 6,
55 "rankContext": "weekly-outerwear"
56 },
57 {
58 "platform": "29cm",
59 "productId": "demo-2",
60 "variantId": "black-M",
61 "matchKey": "demo-black-M",
62 "priceType": "sale",
63 "priceKrw": 49000
64 }
65 ]
66 }
67};
68
69
70const run = await client.actor("magenta_courser/korean-fashion-catalog-monitor").call(input);
71
72
73console.log('Results from dataset');
74console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
75const { items } = await client.dataset(run.defaultDatasetId).listItems();
76items.forEach((item) => {
77 console.dir(item);
78});
79
80