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 "Web Development",
13 "Mobile App Development"
14 ],
15 "startUrls": [
16 {
17 "url": "https://clutch.co/directory/mobile-application-developers"
18 }
19 ],
20 "maxItems": 50,
21 "includeReviews": true,
22 "maxReviewsPerCompany": 5,
23 "includePortfolio": false,
24 "proxyConfiguration": {
25 "useApifyProxy": true,
26 "apifyProxyGroups": [
27 "RESIDENTIAL"
28 ]
29 },
30 "maxConcurrency": 5,
31 "debugMode": false
32};
33
34
35const run = await client.actor("happitap/clutch-agency-scraper").call(input);
36
37
38console.log('Results from dataset');
39console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
40const { items } = await client.dataset(run.defaultDatasetId).listItems();
41items.forEach((item) => {
42 console.dir(item);
43});
44
45