1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "kinds": [
12 "sale-motion",
13 "bid-procedures-motion",
14 "bid-procedures-order",
15 "sale-order",
16 "stalking-horse",
17 "auction-notice",
18 "successful-bidder",
19 "auction-cancelled",
20 "bid-deadline-change",
21 "sale-closed",
22 "sale-notice",
23 "bid-deadline",
24 "auction-date",
25 "sale-hearing"
26 ],
27 "keyword": "",
28 "sources": [
29 "verita",
30 "angeion",
31 "ecf"
32 ],
33 "courts": [
34 "deb",
35 "njb",
36 "nysb",
37 "txnb",
38 "txwb",
39 "txeb",
40 "ilnb",
41 "cacb",
42 "flsb"
43 ],
44 "proxyConfiguration": {
45 "useApifyProxy": true
46 }
47};
48
49
50const run = await client.actor("mdcurt/chapter11-asset-sale-signals").call(input);
51
52
53console.log('Results from dataset');
54console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
55const { items } = await client.dataset(run.defaultDatasetId).listItems();
56items.forEach((item) => {
57 console.dir(item);
58});
59
60