1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "actualCsv": [
12 {
13 "actualHrs": 52,
14 "client": "Acme",
15 "date": "2026-09-01",
16 "service": "SEO-retainer"
17 },
18 {
19 "actualHrs": 20,
20 "client": "Acme",
21 "date": "2026-09-02",
22 "service": "PPC"
23 },
24 {
25 "actualHrs": 18,
26 "client": "Beta",
27 "date": "2026-09-03",
28 "service": "Web-care"
29 },
30 {
31 "actualHrs": 35,
32 "client": "Gamma",
33 "date": "2026-09-04",
34 "service": "SEO Monthly"
35 },
36 {
37 "actualHrs": 12,
38 "client": "Delta",
39 "date": "2026-09-05",
40 "service": "Audit"
41 }
42 ],
43 "checkedAt": "2026-09-28T12:00:00Z",
44 "quoteCsv": [
45 {
46 "client": "Acme",
47 "quotedHrs": 40,
48 "rate": 90,
49 "service": "SEO-retainer"
50 },
51 {
52 "client": "Acme",
53 "quotedHrs": 20,
54 "rate": 120,
55 "service": "PPC"
56 },
57 {
58 "client": "Beta",
59 "quotedHrs": 10,
60 "rate": 100,
61 "service": "Web-care"
62 },
63 {
64 "client": "Gamma",
65 "quotedHrs": 30,
66 "rate": 80,
67 "service": "SEO Monthly"
68 },
69 {
70 "client": "Delta",
71 "quotedHrs": 15,
72 "rate": 150,
73 "service": "Audit"
74 }
75 ],
76 "runId": "demo-audit-001",
77 "scopeBook": "demo-book-001"
78};
79
80
81const run = await client.actor("steadyworks/seo-retainer-overservice-audit").call(input);
82
83
84console.log('Results from dataset');
85console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
86const { items } = await client.dataset(run.defaultDatasetId).listItems();
87items.forEach((item) => {
88 console.dir(item);
89});
90
91