1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "targets": [
12 {
13 "id": "nextjs",
14 "name": "Next.js",
15 "repo": "vercel/next.js",
16 "criticality": "high",
17 "owner": "Frontend Platform",
18 "tags": [
19 "framework",
20 "docs"
21 ],
22 "releaseNotesUrl": "https://github.com/vercel/next.js/releases.atom",
23 "migrationGuideUrl": "https://nextjs.org/docs/app/guides/upgrading/version-16",
24 "docsPages": [
25 {
26 "id": "nextjs-caching",
27 "name": "Caching Guide",
28 "url": "https://nextjs.org/docs/app/guides/caching"
29 }
30 ]
31 },
32 {
33 "id": "crawlee-docs",
34 "name": "Crawlee",
35 "repo": "apify/crawlee",
36 "criticality": "standard",
37 "owner": "Automation",
38 "tags": [
39 "crawler",
40 "sdk"
41 ],
42 "changelogUrl": "https://raw.githubusercontent.com/apify/crawlee/master/CHANGELOG.md",
43 "docsPages": [
44 {
45 "id": "crawlee-migrations",
46 "name": "Migration Guide",
47 "url": "https://crawlee.dev/js/docs/upgrading/upgrading-to-v3"
48 }
49 ]
50 }
51 ]
52};
53
54
55const run = await client.actor("taroyamada/docs-changelog-drift-monitor").call(input);
56
57
58console.log('Results from dataset');
59console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
60const { items } = await client.dataset(run.defaultDatasetId).listItems();
61items.forEach((item) => {
62 console.dir(item);
63});
64
65