1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "checks": [
10 {
11 "domain": "one.one.one.one",
12 "record_type": "A",
13 "expected": [
14 "1.0.0.1",
15 "1.1.1.1",
16 ],
17 },
18 {
19 "domain": "dns.google",
20 "record_type": "A",
21 "expected": [
22 "8.8.4.4",
23 "8.8.8.8",
24 ],
25 },
26 {
27 "domain": "dns.google",
28 "record_type": "AAAA",
29 "expected": [
30 "2001:4860:4860::8844",
31 "2001:4860:4860::8888",
32 ],
33 },
34 ],
35 "resolvers": [
36 "https://cloudflare-dns.com/dns-query",
37 "https://dns.google/dns-query",
38 "https://dns.quad9.net/dns-query",
39 "https://unfiltered.adguard-dns.com/dns-query",
40 "https://doh.opendns.com/dns-query",
41 "https://dns.mullvad.net/dns-query",
42 "https://doh.sb/dns-query",
43 "https://dns.nextdns.io/dns-query",
44 ],
45 "pollIntervalSeconds": 60,
46 "maxWaitMinutes": 30,
47 "requireAllResolvers": True,
48 "webhookUrl": "",
49 "timeoutSeconds": 10,
50}
51
52
53run = client.actor("kingii98/dns-cutover-convergence-gate-with-webhook-receipt").call(run_input=run_input)
54
55
56print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
57for item in client.dataset(run.default_dataset_id).iterate_items():
58 print(item)
59
60