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-JURISDICTION-20260810",
12 "requestText": "Find the official research route for the District of Columbia 2026 real-property tax lien sale.",
13 "years": [
14 2026
15 ],
16 "businessPurpose": "Internal due-diligence research for a possible direct tax-lien purchase.",
17 "customerType": "direct_customer",
18 "expectedVolume": "under_500",
19 "deliveryMode": "portal_api",
20 "lawfulPurposeAccepted": true,
21 "restrictedUseAccepted": true,
22 "licenseAccepted": true,
23 "maxResults": 100,
24 "jurisdictions": [
25 {
26 "stateCode": "DC",
27 "name": "District of Columbia",
28 "jurisdictionId": "US-DC-11001"
29 }
30 ]
31};
32
33
34const run = await client.actor("ascensionworks/ascension-works-jurisdiction-research-request").call(input);
35
36
37console.log('Results from dataset');
38console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
39const { items } = await client.dataset(run.defaultDatasetId).listItems();
40items.forEach((item) => {
41 console.dir(item);
42});
43
44