1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "items": [
12 {
13 "domain": "apify.com",
14 "input": "apify.com",
15 "found": true,
16 "partial": false,
17 "checkedAt": "2026-09-22T05:45:22.120Z",
18 "sourcePageUrls": [
19 {
20 "sourcePath": "/",
21 "sourceUrl": "https://apify.com/"
22 },
23 {
24 "sourcePath": "/contact",
25 "sourceUrl": "https://apify.com/contact"
26 }
27 ],
28 "emails": [
29 "hello@apify.com"
30 ],
31 "error": null,
32 "_exampleProvenance": {
33 "sourceActorId": "CHnXcdLMha9GvwRh5",
34 "sourceRunId": "fTQG832SGP7sB6hWk",
35 "sourceDatasetId": "Gt7XpREftdsw0Ebz7",
36 "curatedPublicSnapshot": true,
37 "redaction": "Allowlisted public business/product fields only; review excerpts and social captions truncated; no reviewer identities."
38 }
39 }
40 ]
41};
42
43
44const run = await client.actor("zinin/company-contact-route-planner").call(input);
45
46
47console.log('Results from dataset');
48console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
49const { items } = await client.dataset(run.defaultDatasetId).listItems();
50items.forEach((item) => {
51 console.dir(item);
52});
53
54