1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "byTaxpayerNumber",
12 "names": [],
13 "taxpayerNumbers": [
14 "10105504087"
15 ],
16 "sosFileNumbers": [],
17 "entityUrls": [],
18 "fetchDetails": true,
19 "includeOfficers": true,
20 "maxOfficers": 5,
21 "enrichBulkDetails": false,
22 "bulkName": "",
23 "bulkNameMatch": "contains",
24 "bulkCities": [],
25 "bulkStates": [],
26 "bulkZips": [],
27 "bulkCountyCode": "any",
28 "bulkOrganizationalTypes": [],
29 "bulkRecordTypes": [],
30 "bulkRightToTransactCodes": [],
31 "bulkSosStatusCodes": [],
32 "bulkExemptReasonCodes": [],
33 "bulkNaicsCodes": [],
34 "bulkHasSosFileNumber": "any",
35 "bulkExemptOnly": false,
36 "bulkResponsibilityFrom": "",
37 "bulkResponsibilityTo": "",
38 "bulkCharterFrom": "",
39 "bulkCharterTo": "",
40 "bulkSosStatusFrom": "",
41 "bulkSosStatusTo": "",
42 "bulkSortBy": "taxpayerName",
43 "bulkSortDirection": "asc",
44 "maxItems": 1
45};
46
47
48const run = await client.actor("nimbryxo-studio/texas-franchise-tax-right-to-transact-and-officer").call(input);
49
50
51console.log('Results from dataset');
52console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
53const { items } = await client.dataset(run.defaultDatasetId).listItems();
54items.forEach((item) => {
55 console.dir(item);
56});
57
58