1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "requestReference": "SAMPLE-SCREENING-20260809",
12 "requestText": "Rank the authorized listings returned by Step 2 across the selected counties.",
13 "years": [
14 2026
15 ],
16 "businessPurpose": "Internal due-diligence research for a possible direct purchase.",
17 "customerType": "direct_customer",
18 "expectedVolume": "up_to_1000",
19 "deliveryMode": "portal_api",
20 "lawfulPurposeAccepted": true,
21 "restrictedUseAccepted": true,
22 "licenseAccepted": true,
23 "maxResults": 100,
24 "maxSourceAgeDays": 3650,
25 "maxTargetCost": 5000,
26 "minAssessedValue": 0,
27 "minMarketValue": 0,
28 "minValueToCostRatio": 0,
29 "preferredPropertyTypes": [
30 "land"
31 ],
32 "preferredSaleMethods": [],
33 "sortPreference": "best_value",
34 "customerDataRightsAccepted": true,
35 "customerRecords": [
36 {
37 "recordReference": "SYNTHETIC-CANARY-001",
38 "stateCode": "AL",
39 "county": "Baldwin County",
40 "recordYear": 2026,
41 "listingStatus": "UPCOMING",
42 "dataAsOf": "2026-08-29",
43 "saleDate": "2026-09-15",
44 "parcelId": "SYNTHETIC-PARCEL-001",
45 "propertyType": "land",
46 "saleMethod": "non auction tax sale",
47 "minimumBidUsd": 900,
48 "assessedValueUsd": 12000,
49 "marketValueUsd": 12000
50 }
51 ],
52 "rankingMode": "counties_and_listings",
53 "minQualifyingListingsPerCounty": 0,
54 "minCountyMatchRatePercent": 0,
55 "countyWeightListingCount": 30,
56 "countyWeightMatchRate": 25,
57 "countyWeightValueContext": 20,
58 "countyWeightSaleTiming": 15,
59 "countyWeightCompleteness": 10,
60 "jurisdictions": [
61 {
62 "stateCode": "AL",
63 "name": "Baldwin County",
64 "jurisdictionId": "US-AL-01003"
65 }
66 ]
67};
68
69
70const run = await client.actor("ascensionworks/ascension-works-opportunity-screening-request").call(input);
71
72
73console.log('Results from dataset');
74console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
75const { items } = await client.dataset(run.defaultDatasetId).listItems();
76items.forEach((item) => {
77 console.dir(item);
78});
79
80