1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "deliveryMode": "compact",
10 "mode": "inline",
11 "plannerInput": {
12 "synthetic": True,
13 "namespace": "example-support-docs",
14 "checkedAt": "2026-10-13T12:00:00Z",
15 "scope": {
16 "id": "example-support-section",
17 "definition": "Exactly the two example documents below; no whole-site inventory claim.",
18 },
19 "chunkBytes": 1200,
20 "source": {
21 "format": "documents",
22 "completed": True,
23 "immutable": True,
24 "inventoryComplete": False,
25 "reference": "SYNTHETIC example; replace with your dated export",
26 "items": [
27 {
28 "id": "returns",
29 "url": "https://example.test/help/returns",
30 "title": "Example returns policy",
31 "text": "SYNTHETIC: This example policy describes where customers can review return instructions. Replace this text with your actual export.",
32 "complete": True,
33 "extractionProfile": "example-v1",
34 "fetchedAt": "2026-10-13T12:00:00Z",
35 },
36 {
37 "id": "shipping",
38 "url": "https://example.test/help/shipping",
39 "title": "Example shipping policy",
40 "text": "SYNTHETIC: This example document describes shipping information. Replace this text with your actual export.",
41 "complete": True,
42 "extractionProfile": "example-v1",
43 "fetchedAt": "2026-10-13T12:00:00Z",
44 },
45 ],
46 },
47 },
48}
49
50
51run = client.actor("jj_toolworks/jj-knowledge-update-evidence-feed").call(run_input=run_input)
52
53
54print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
55for item in client.dataset(run.default_dataset_id).iterate_items():
56 print(item)
57
58