1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "documents": [
9 {
10 "id": "sample-clauses",
11 "text": "SECTION I - CONTRACT CLAUSES. The following FAR clauses are incorporated by reference: 52.212-4 Contract Terms and Conditions-Commercial Products and Commercial Services (Nov 2023); 52.204-25 Prohibition on Contracting for Certain Telecommunications and Video Surveillance Services or Equipment (Nov 2021); 52.219-8 Utilization of Small Business Concerns (Jan 2025); 52.222-26 Equal Opportunity (Sept 2016). The Contractor shall flow down 52.204-25 and 52.222-26 to all subcontracts. Delivery shall be completed within 180 days after award. The Government may exercise up to three 12-month option periods under 52.217-9.",
12 },
13 {
14 "id": "sample-gap-analysis",
15 "text": "PRIME CONTRACT. Flowed down to all subcontracts: DFARS 252.204-7012 Safeguarding Covered Defense Information; FAR 52.204-25; FAR 52.222-26 Equal Opportunity.",
16 "subcontract_text": "SUBCONTRACT. Incorporated clauses: FAR 52.222-26 Equal Opportunity; FAR 52.212-4.",
17 },
18 ] }
19
20
21run = client.actor("jadelike_zine/govcon-far-dfars-clause-extractor").call(run_input=run_input)
22
23
24print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
25for item in client.dataset(run["defaultDatasetId"]).iterate_items():
26 print(item)
27
28