1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "imageRefs": [
12 "alpine:3.20",
13 "ghcr.io/astral-sh/uv:latest",
14 "mcr.microsoft.com/dotnet/runtime:8.0"
15 ],
16 "dockerfile": "",
17 "expectedPlatform": "linux/amd64",
18 "failOn": [
19 "unreachable",
20 "unauthorized",
21 "tls_name_mismatch",
22 "tls_error",
23 "not_found"
24 ],
25 "credentialHosts": [],
26 "ledgerStoreName": "registry-pull-ledger",
27 "concurrency": 5,
28 "timeoutSeconds": 20,
29 "maxRedirects": 5,
30 "maxResponseBytes": 262144,
31 "budgetHistoryLength": 12
32};
33
34
35const run = await client.actor("kingii98/container-registry-pull-reachability-and-rate-budget-ledger").call(input);
36
37
38console.log('Results from dataset');
39console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
40const { items } = await client.dataset(run.defaultDatasetId).listItems();
41items.forEach((item) => {
42 console.dir(item);
43});
44
45