1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "jurisdiction": "CA_CPRA",
10 "requestDate": "2026-03-02",
11 "responseDate": "2026-03-20",
12 "extensionNotices": [{
13 "noticeDate": "2026-03-10",
14 "expectedDate": "2026-03-24",
15 "reason": "VOLUMINOUS_RECORDS",
16 "noticeSource": "Portal message of 2026-03-10",
17 }],
18 "documents": [
19 {
20 "name": "response-letter.txt",
21 "text": """Dated March 20, 2026. Records are released in part. Portions marked [REDACTED] are withheld. See attached Exhibit B for the log.
22Personnel email on 2025-11-03 follows.""",
23 },
24 {
25 "name": "release-2.txt",
26 "text": "Email dated 2026-01-15. The manager wrote that Maria Alvarez approved the overtime budget request on Friday afternoon.",
27 },
28 {
29 "name": "release-1.txt",
30 "text": "Email dated 2026-01-15. The manager wrote that [REDACTED] approved the overtime budget request on Friday afternoon. Withheld per Gov. Code 7922.000.",
31 },
32 ],
33 "agencyName": "City of Example Public Works Department",
34 "requestReference": "PRA-2026-0142",
35}
36
37
38run = client.actor("davidcondrey/wl-audit-public-record").call(run_input=run_input)
39
40
41print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
42for item in client.dataset(run.default_dataset_id).iterate_items():
43 print(item)
44
45