1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "county": "hillsborough",
12 "documentTypes": [
13 "(LP) LIS PENDENS"
14 ],
15 "dateFrom": "2026-09-01",
16 "dateTo": "2026-09-07",
17 "lastDays": 7,
18 "maxResults": 500,
19 "minSalesPrice": 0,
20 "newOnly": false,
21 "stateStoreId": "",
22 "waitForLegalDescription": false,
23 "includeDetails": false
24};
25
26
27const run = await client.actor("finaldynamics/florida-pre-foreclosure-leads").call(input);
28
29
30console.log('Results from dataset');
31console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
32const { items } = await client.dataset(run.defaultDatasetId).listItems();
33items.forEach((item) => {
34 console.dir(item);
35});
36
37