1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "historySince": "2026-09-01",
12 "items": [
13 {
14 "clientItemId": "demo-dispatch-correction",
15 "jan": "4580828671478",
16 "knownSchedule": {
17 "value": "2026-09-18",
18 "kind": "japan_dispatch"
19 }
20 },
21 {
22 "clientItemId": "demo-sophia-three-delays",
23 "jan": "4570001514623",
24 "knownSchedule": {
25 "value": "2026-07",
26 "kind": "japan_release_month"
27 }
28 },
29 {
30 "clientItemId": "demo-japanese-only-delay",
31 "jan": "4595055216910",
32 "knownSchedule": {
33 "value": "2026-06",
34 "kind": "japan_release_month"
35 }
36 },
37 {
38 "clientItemId": "demo-month-advance",
39 "jan": "4580522750325",
40 "knownSchedule": {
41 "value": "2026-10",
42 "kind": "japan_release_month"
43 }
44 },
45 {
46 "clientItemId": "demo-second-preorder",
47 "jan": "6977459540118",
48 "knownSchedule": {
49 "value": "2027-01",
50 "kind": "japan_release_month"
51 }
52 },
53 {
54 "clientItemId": "synthetic-cancel-4580717791256",
55 "jan": "4580717791256",
56 "knownSchedule": {
57 "value": "2026-10",
58 "kind": "japan_release_month"
59 }
60 }
61 ],
62 "noticeUrls": [
63 "https://www.goodsmile.com/ja/news/6917"
64 ],
65 "monthlyHistorySince": "2026-05-01"
66};
67
68
69const run = await client.actor("amycole/jan-japan-release-delay-checks-beta").call(input);
70
71
72console.log('Results from dataset');
73console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
74const { items } = await client.dataset(run.defaultDatasetId).listItems();
75items.forEach((item) => {
76 console.dir(item);
77});
78
79