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 "rows": [
13 {
14 "evidenceId": "evidence-001",
15 "brandName": "Northstar Coffee",
16 "eventType": "price_change",
17 "observedAt": "2026-07-31T09:30:00Z",
18 "sourceName": "Buyer newsroom note",
19 "sourceUrl": "https://example.com/northstar-price-note",
20 "excerpt": "The buyer-supplied note says the seasonal blend price changed on July 31."
21 },
22 {
23 "evidenceId": "evidence-002",
24 "brandName": "Northstar Coffee",
25 "eventType": "product_launch",
26 "observedAt": "2026-08-01T12:00:00Z",
27 "sourceName": "Buyer product page",
28 "sourceUrl": "https://example.com/northstar-seasonal",
29 "excerpt": "The buyer-supplied excerpt describes a seasonal blend launch for August."
30 },
31 {
32 "evidenceId": "evidence-003",
33 "brandName": "Harbor Supply",
34 "eventType": "campaign",
35 "observedAt": "2026-08-02T15:45:00Z",
36 "sourceName": "Buyer campaign brief",
37 "sourceUrl": "https://example.com/harbor-campaign",
38 "excerpt": "The buyer-supplied brief names a back-to-school campaign and its stated launch date."
39 }
40 ]
41};
42
43
44const run = await client.actor("zinin/us-brand-evidence-citation-table").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