1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "documents": [
12 {
13 "id": "sample-clauses",
14 "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."
15 },
16 {
17 "id": "sample-gap-analysis",
18 "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.",
19 "subcontract_text": "SUBCONTRACT. Incorporated clauses: FAR 52.222-26 Equal Opportunity; FAR 52.212-4."
20 }
21 ]
22};
23
24
25const run = await client.actor("jadelike_zine/govcon-far-dfars-clause-extractor").call(input);
26
27
28console.log('Results from dataset');
29console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
30const { items } = await client.dataset(run.defaultDatasetId).listItems();
31items.forEach((item) => {
32 console.dir(item);
33});
34
35