1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "claim": {
12 "id": "claim-1",
13 "text": "The restriction is currently in force.",
14 "required_evidence_classes": [
15 "official_record",
16 "independent_report"
17 ]
18 },
19 "evidence": [
20 {
21 "id": "official",
22 "evidence_class": "official_record",
23 "source": {
24 "id": "authority",
25 "url": "https://example.org/official-record",
26 "source_type": "official_record",
27 "publisher": "Example Authority"
28 },
29 "evidence_kind": "TRANSMITTED",
30 "observed_at": "2026-09-06T10:00:00Z",
31 "max_age_seconds": 86400,
32 "claim_id": "claim-1",
33 "relation": "SUPPORTS"
34 },
35 {
36 "id": "independent",
37 "evidence_class": "independent_report",
38 "source": {
39 "id": "observer",
40 "url": "https://example.org/independent-report"
41 },
42 "evidence_kind": "TRANSMITTED",
43 "observed_at": "2026-09-06T09:30:00Z",
44 "max_age_seconds": 86400,
45 "claim_id": "claim-1",
46 "relation": "SUPPORTS"
47 }
48 ]
49};
50
51
52const run = await client.actor("suezcanal.xyz/research-verification").call(input);
53
54
55console.log('Results from dataset');
56console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
57const { items } = await client.dataset(run.defaultDatasetId).listItems();
58items.forEach((item) => {
59 console.dir(item);
60});
61
62