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