1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "schemaVersion": "1.0",
12 "snapshotAt": "2026-08-05T00:00:00Z",
13 "title": "Nike US signal brief",
14 "rows": [
15 {
16 "eventId": "nike-launch-001",
17 "severity": "HIGH",
18 "sourceName": "Brand newsroom",
19 "summary": "New running product announced",
20 "status": "active"
21 },
22 {
23 "eventId": "nike-price-001",
24 "severity": "MEDIUM",
25 "sourceName": "Retail monitor",
26 "summary": "List price changed for a tracked SKU",
27 "status": "resolved"
28 },
29 {
30 "eventId": "nike-review-001",
31 "severity": "LOW",
32 "sourceName": "Retail monitor",
33 "summary": "Review volume moved above the watch threshold",
34 "status": "active"
35 }
36 ]
37};
38
39
40const run = await client.actor("zinin/us-brand-signal-brief-composer").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