1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "searchQueries": ["dentist in Austin, TX"],
10 "startUrls": [],
11 "maxPlacesPerQuery": 50,
12 "maxResults": 50,
13 "language": "en",
14 "countryCode": "",
15 "enrichContacts": True,
16 "maxPagesPerWebsite": 5,
17 "emailTypes": "all",
18 "validateEmailMx": True,
19 "includeReviewsSummary": False,
20 "proxyConfiguration": {
21 "useApifyProxy": True,
22 "apifyProxyGroups": ["RESIDENTIAL"],
23 },
24 "enrichmentProxyConfiguration": { "useApifyProxy": True },
25 "maxRequestRetries": 4,
26}
27
28
29run = client.actor("yasaslive/google-maps-leads-email-enrichment").call(run_input=run_input)
30
31
32print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
33for item in client.dataset(run.default_dataset_id).iterate_items():
34 print(item)
35
36