1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "runs": [
12 {
13 "runId": "example-run-01",
14 "status": "SUCCEEDED",
15 "startedAt": "2026-10-01T00:00:00Z",
16 "finishedAt": "2026-10-01T00:00:10Z",
17 "items": 25,
18 "chargedEvents": 1,
19 "customerChargeUsd": 0.1,
20 "platformCostUsd": 0.001,
21 "paidPlan": true
22 },
23 {
24 "runId": "example-run-01",
25 "status": "SUCCEEDED",
26 "startedAt": "2026-10-01T00:00:00Z",
27 "finishedAt": "2026-10-01T00:00:10Z",
28 "items": 25,
29 "chargedEvents": 1,
30 "customerChargeUsd": 0.1,
31 "platformCostUsd": 0.001,
32 "paidPlan": true
33 }
34 ],
35 "ownOperationalData": true
36};
37
38
39const run = await client.actor("domestic_buffalograss/run-audit").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