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