1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "repositories": [
12 {
13 "id": "apify-crawlee",
14 "name": "Apify Crawlee",
15 "repo": "apify/crawlee",
16 "criticality": "high",
17 "owner": "Platform",
18 "tags": [
19 "crawler",
20 "sdk"
21 ],
22 "modes": [
23 "releases",
24 "tags"
25 ]
26 },
27 {
28 "id": "axios",
29 "name": "Axios",
30 "repo": "axios/axios",
31 "criticality": "standard",
32 "owner": "Developer Experience",
33 "tags": [
34 "dependency",
35 "http-client"
36 ],
37 "modes": [
38 "releases",
39 "tags",
40 "changelog"
41 ],
42 "changelogUrl": "https://raw.githubusercontent.com/axios/axios/v1.x/CHANGELOG.md"
43 }
44 ]
45};
46
47
48const run = await client.actor("taroyamada/github-release-monitor").call(input);
49
50
51console.log('Results from dataset');
52console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
53const { items } = await client.dataset(run.defaultDatasetId).listItems();
54items.forEach((item) => {
55 console.dir(item);
56});
57
58