1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "companies": [
12 "stripe.com",
13 "nike.com",
14 "airbnb.com",
15 "allbirds.com"
16 ],
17 "sections": [
18 "profile",
19 "tech",
20 "contacts",
21 "domain",
22 "jobs",
23 "news",
24 "filings",
25 "awards",
26 "recalls",
27 "yc",
28 "apps"
29 ],
30 "maxItemsPerSection": 10,
31 "includeSummary": true,
32 "flattenSections": false,
33 "includeFinancials": false,
34 "financialsMaxPeriods": 8,
35 "financialsPeriodKind": "annual",
36 "filingForms": [
37 "10-K",
38 "10-Q",
39 "8-K",
40 "20-F",
41 "S-1"
42 ],
43 "newsWindowDays": 90,
44 "newsSiteScope": false,
45 "awardsWindowDays": 1825,
46 "recallsWindowDays": 3650,
47 "maxPagesPerSite": 4,
48 "includeAppDetails": false,
49 "includePersonalEmails": false,
50 "secUserAgentContact": "Insight Solutions austinhughhillis@gmail.com",
51 "maxSecsPerCompany": 60,
52 "maxConcurrency": 3,
53 "sectionConcurrency": 4,
54 "maxRunSecs": 300,
55 "proxyConfiguration": {
56 "useApifyProxy": true
57 }
58};
59
60
61const run = await client.actor("insight.solutions/company-dossier-api").call(input);
62
63
64console.log('Results from dataset');
65console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
66const { items } = await client.dataset(run.defaultDatasetId).listItems();
67items.forEach((item) => {
68 console.dir(item);
69});
70
71