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 my authorized Baldwin County record by county and listing.",
11 "years": [2026],
12 "businessPurpose": "Internal due-diligence research for a possible direct purchase.",
13 "customerType": "direct_customer",
14 "expectedVolume": "under_500",
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": "CUSTOMER-SAMPLE-001",
31 "stateCode": "AL",
32 "county": "Baldwin County",
33 "recordYear": 2026,
34 "listingStatus": "ACTIVE",
35 "dataAsOf": "2026-08-10",
36 "parcelId": "SAMPLE-PARCEL-001",
37 "propertyType": "land",
38 "saleMethod": "non auction tax sale",
39 "minimumBidUsd": 900,
40 "assessedValueUsd": 12000,
41 "marketValueUsd": 15000,
42 }],
43 "rankingMode": "counties_and_listings",
44 "minQualifyingListingsPerCounty": 0,
45 "minCountyMatchRatePercent": 0,
46 "countyWeightListingCount": 30,
47 "countyWeightMatchRate": 25,
48 "countyWeightValueContext": 20,
49 "countyWeightSaleTiming": 15,
50 "countyWeightCompleteness": 10,
51 "jurisdictions": [{
52 "stateCode": "AL",
53 "name": "Baldwin County",
54 "jurisdictionId": "US-AL-01003",
55 }],
56}
57
58
59run = client.actor("ascensionworks/ascension-works-opportunity-screening-request").call(run_input=run_input)
60
61
62print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
63for item in client.dataset(run.default_dataset_id).iterate_items():
64 print(item)
65
66