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-LISTINGS-20260809",
12 "requestText": "Collect and normalize authorized current tax-sale listings for the counties selected in Step 1.",
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": "lowest_cost",
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 "jurisdictions": [
53 {
54 "stateCode": "AL",
55 "name": "Baldwin County",
56 "jurisdictionId": "US-AL-01003"
57 }
58 ]
59};
60
61
62const run = await client.actor("ascensionworks/ascension-works-current-listing-research-request").call(input);
63
64
65console.log('Results from dataset');
66console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
67const { items } = await client.dataset(run.defaultDatasetId).listItems();
68items.forEach((item) => {
69 console.dir(item);
70});
71
72