1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "as_of": "2026-09-24T12:00:00Z",
10 "max_age_seconds": 86400,
11 "max_source_age_seconds": 2592000,
12 "records": [
13 {
14 "id": "healthy",
15 "observed_at": "2026-09-24T11:00:00Z",
16 "source_updated_at": "2026-09-23T12:00:00Z",
17 "source_id": "feed-a",
18 "evidence_id": "capture-1",
19 },
20 {
21 "id": "old-observation",
22 "observed_at": "2026-09-22T12:00:00Z",
23 "source_updated_at": "2026-09-21T12:00:00Z",
24 "source_id": "feed-a",
25 "evidence_id": "capture-2",
26 },
27 {
28 "id": "fresh-fetch-old-content",
29 "observed_at": "2026-09-24T11:00:00Z",
30 "source_updated_at": "2026-08-01T12:00:00Z",
31 "source_id": "feed-a",
32 "evidence_id": "capture-3",
33 },
34 {
35 "id": "unknown-source-age",
36 "observed_at": "2026-09-24T11:00:00Z",
37 "source_updated_at": None,
38 "source_id": "feed-a",
39 "evidence_id": "capture-4",
40 },
41 ],
42}
43
44
45run = client.actor("saimislam/dataset-recency-evidence-gate").call(run_input=run_input)
46
47
48print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
49for item in client.dataset(run.default_dataset_id).iterate_items():
50 print(item)
51
52