1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "targets": [
12 {
13 "id": "hawke-root",
14 "url": "https://hawkemedia.com/"
15 }
16 ],
17 "requiredClientTypes": [
18 "ecommerce",
19 "DTC"
20 ],
21 "complementaryServices": [
22 "paid media",
23 "web development",
24 "retention",
25 "email marketing"
26 ],
27 "overlappingServices": [
28 "creative strategy",
29 "ad creative production"
30 ],
31 "maxPagesPerTarget": 5,
32 "maxTotalRequests": 10,
33 "maxResults": 20,
34 "timeoutSeconds": 120,
35 "maxConcurrency": 2
36};
37
38
39const run = await client.actor("kingly_contest_7cb/agency-referral-fit-checker").call(input);
40
41
42console.log('Results from dataset');
43console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
44const { items } = await client.dataset(run.defaultDatasetId).listItems();
45items.forEach((item) => {
46 console.dir(item);
47});
48
49