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 "asOf": "2026-08-05T09:00:00Z",
13 "rows": [
14 {
15 "evidenceId": "nike-offer-001",
16 "eventType": "offer",
17 "effectiveAt": "2026-08-04T12:00:00Z",
18 "observedAt": "2026-08-04T12:30:00Z",
19 "sourceUrl": "https://www.nike.com/news/example",
20 "fact": "A submitted source reports a US offer change."
21 },
22 {
23 "evidenceId": "nike-award-001",
24 "eventType": "award",
25 "effectiveAt": "2026-08-04T12:00:00Z",
26 "observedAt": "2026-08-04T13:00:00Z",
27 "sourceUrl": "https://www.usaspending.gov/award/example",
28 "fact": "A submitted source lists an award associated with the brand."
29 }
30 ]
31};
32
33
34const run = await client.actor("zinin/us-brand-evidence-chronology-builder").call(input);
35
36
37console.log('Results from dataset');
38console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
39const { items } = await client.dataset(run.defaultDatasetId).listItems();
40items.forEach((item) => {
41 console.dir(item);
42});
43
44