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 "name": "Jane Doe",
14 "email": "jane.doe@apify.com",
15 "company": "Apify",
16 "website": "https://apify.com",
17 "title": "Head of Growth",
18 "source": "https://apify.com/about",
19 "scrapedAt": "2026-10-01T10:00:00Z"
20 },
21 {
22 "name": "John Smith",
23 "email": "john@example-nonexistent-domain-xyz.com",
24 "company": "Example Co",
25 "website": "http://example-nonexistent-domain-xyz.com",
26 "title": "CEO",
27 "scrapedAt": "2024-01-15T10:00:00Z"
28 },
29 {
30 "name": "",
31 "email": "not-an-email",
32 "company": "Acme",
33 "website": "acme",
34 "title": null
35 }
36 ]
37};
38
39
40const run = await client.actor("apricot_blackberry/scrape-trust-score").call(input);
41
42
43console.log('Results from dataset');
44console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
45const { items } = await client.dataset(run.defaultDatasetId).listItems();
46items.forEach((item) => {
47 console.dir(item);
48});
49
50