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 "Biel/Bienne Moving companies",
13 "Thun Car repair shops",
14 "Winterthur Property management companies",
15 "Aarau Renovation contractors",
16 "St. Gallen Cleaning companies",
17 "Lugano Auto repair shops",
18 "Fribourg Hair salons",
19 "Neuchâtel Dentists",
20 "Sion Roofing contractors",
21 "Chur Real estate agencies"
22 ],
23 "proxyConfiguration": {
24 "useApifyProxy": true
25 },
26 "smtpAccounts": [
27 {
28 "email": "shahji90k@gmail.com",
29 "app_password": "hgck udow kgdn fzpo",
30 "host": "smtp.gmail.com",
31 "port": 587,
32 "daily_limit": 200
33 }
34 ]
35};
36
37
38const run = await client.actor("awake_orchestra_trb/google-maps-review-outreach-actor").call(input);
39
40
41console.log('Results from dataset');
42console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
43const { items } = await client.dataset(run.defaultDatasetId).listItems();
44items.forEach((item) => {
45 console.dir(item);
46});
47
48