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.1",
12 "signal": {
13 "signalId": "nike-recall-001",
14 "signalType": "recall",
15 "headline": "Nike issues a limited product recall",
16 "summary": "The buyer supplied this normalized recall signal for review by a downstream operator.",
17 "severity": "high",
18 "occurredAt": "2026-08-05T12:00:00Z",
19 "evidence": [
20 {
21 "url": "https://example.com/evidence/nike-recall-001",
22 "title": "Buyer evidence record",
23 "capturedAt": "2026-08-05T12:05:00Z"
24 }
25 ]
26 },
27 "target": "slack",
28 "presentation": {
29 "includeHeadline": true,
30 "includeSummary": true,
31 "includeSeverity": true,
32 "includeSource": true,
33 "includeOccurredAt": true,
34 "maxContentChars": 600,
35 "style": "standard"
36 }
37};
38
39
40const run = await client.actor("zinin/us-brand-signal-webhook-payload-builder").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