1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "searchQueries": [
12 "dentist in Austin, TX"
13 ],
14 "startUrls": [],
15 "maxPlacesPerQuery": 50,
16 "maxResults": 50,
17 "language": "en",
18 "countryCode": "",
19 "enrichContacts": true,
20 "maxPagesPerWebsite": 5,
21 "emailTypes": "all",
22 "validateEmailMx": true,
23 "includeReviewsSummary": false,
24 "proxyConfiguration": {
25 "useApifyProxy": true,
26 "apifyProxyGroups": [
27 "RESIDENTIAL"
28 ]
29 },
30 "enrichmentProxyConfiguration": {
31 "useApifyProxy": true
32 },
33 "maxRequestRetries": 4
34};
35
36
37const run = await client.actor("yasaslive/google-maps-leads-email-enrichment").call(input);
38
39
40console.log('Results from dataset');
41console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
42const { items } = await client.dataset(run.defaultDatasetId).listItems();
43items.forEach((item) => {
44 console.dir(item);
45});
46
47