1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "demo",
12 "expected": {
13 "schemaVersion": 1,
14 "expected": [
15 {
16 "collectionId": "580e63fc8c9a982ac9b8b745",
17 "itemId": "62b720ef280c7a7a3be8cabe",
18 "cmsLocaleId": "653ad57de882f528b32e810e",
19 "required": true
20 },
21 {
22 "collectionId": "580e63fc8c9a982ac9b8b745",
23 "itemId": "62b720ef280c7a7a3be8cabe",
24 "cmsLocaleId": "653fd9af6a07fc9cfd7a5e5d",
25 "required": true
26 },
27 {
28 "collectionId": "580e63fc8c9a982ac9b8b745",
29 "itemId": "62c880ef281c7b7b4cf9dabc",
30 "cmsLocaleId": "653fd9af6a07fc9cfd7a5e5d",
31 "required": true
32 },
33 {
34 "collectionId": "580e63fc8c9a982ac9b8b745",
35 "itemId": "000000000000000000000003",
36 "cmsLocaleId": "653fd9af6a07fc9cfd7a5e5d",
37 "required": false
38 },
39 {
40 "collectionId": "580e63fc8c9a982ac9b8b745",
41 "itemId": "62b720ef280c7a7a3be8cabe",
42 "cmsLocaleId": "654112a3a525b2739d97664f",
43 "required": true
44 }
45 ]
46 },
47 "captures": {
48 "schemaVersion": 1,
49 "snapshots": [
50 {
51 "collectionId": "580e63fc8c9a982ac9b8b745",
52 "cmsLocaleId": "653ad57de882f528b32e810e",
53 "format": "json",
54 "complete": true,
55 "unfiltered": true,
56 "pages": [
57 {
58 "items": [
59 {
60 "id": "62b720ef280c7a7a3be8cabe",
61 "cmsLocaleId": "653ad57de882f528b32e810e",
62 "isDraft": false,
63 "isArchived": false,
64 "lastPublished": "2026-10-01T00:00:00Z"
65 }
66 ],
67 "pagination": {
68 "limit": 100,
69 "offset": 0,
70 "total": 1
71 }
72 }
73 ]
74 },
75 {
76 "collectionId": "580e63fc8c9a982ac9b8b745",
77 "cmsLocaleId": "653fd9af6a07fc9cfd7a5e5d",
78 "format": "json",
79 "complete": true,
80 "unfiltered": true,
81 "pages": [
82 {
83 "items": [
84 {
85 "id": "62c880ef281c7b7b4cf9dabc",
86 "cmsLocaleId": "653fd9af6a07fc9cfd7a5e5d",
87 "isDraft": true,
88 "isArchived": false,
89 "lastPublished": null
90 }
91 ],
92 "pagination": {
93 "limit": 100,
94 "offset": 0,
95 "total": 1
96 }
97 }
98 ]
99 }
100 ]
101 }
102};
103
104
105const run = await client.actor("atesen-software/webflow-cms-locale-inventory-check").call(input);
106
107
108console.log('Results from dataset');
109console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
110const { items } = await client.dataset(run.defaultDatasetId).listItems();
111items.forEach((item) => {
112 console.dir(item);
113});
114
115