1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "queries": [
9 {
10 "lookup": "apify.com",
11 "include_suggestions": True,
12 "include_webservers": True,
13 },
14 {
15 "lookup": "nonexistentdomain.xyz",
16 "include_suggestions": False,
17 "include_webservers": False,
18 },
19 {
20 "lookup": "204.246.191.10",
21 "include_suggestions": False,
22 "include_webservers": False,
23 },
24 ] }
25
26
27run = client.actor("maged120/domain-lookup-rental").call(run_input=run_input)
28
29
30print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
31for item in client.dataset(run["defaultDatasetId"]).iterate_items():
32 print(item)
33
34