1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "olderFiling": `DEMONSTRATION DOCUMENT — not a live company filing.
12FORM 10-K
13COMPANY NAME: Northstar Demonstration Company
14CIK: 0000000001
15FILING DATE: 2025-02-01
16
17ITEM 1. Business
18Northstar Demonstration Company supplies inventory software to small manufacturers. This document is a fictional example designed to show how a filing comparison works. It is not an investment recommendation or a verified company report. The company sells annual subscriptions and provides support to its business customers. Customer records are processed in the company's hosted service.
19
20ITEM 1A. Risk Factors
21We rely on a single hosting provider for our production systems. Service interruptions could prevent customers from accessing their inventory records. We maintain backups and test restoration procedures each quarter. Customers may cancel their subscriptions if interruptions continue for extended periods. Our operating results also depend on renewing annual subscriptions and retaining experienced support staff.
22
23ITEM 7. Management Discussion and Analysis
24Subscription revenue increased by 12 percent during the period. Management continued investing in customer support and routine infrastructure maintenance. The business had adequate cash to fund its planned operating expenses. These observations are part of this fictional demonstration and should not be interpreted as information about a real issuer.`,
25 "newerFiling": `DEMONSTRATION DOCUMENT — not a live company filing.
26FORM 10-K
27COMPANY NAME: Northstar Demonstration Company
28CIK: 0000000001
29FILING DATE: 2026-02-01
30
31ITEM 1. Business
32Northstar Demonstration Company supplies inventory software to small manufacturers. This document is a fictional example designed to show how a filing comparison works. It is not an investment recommendation or a verified company report. The company sells annual subscriptions and provides support to its business customers. Customer records are processed in the company's hosted service.
33
34ITEM 1A. Risk Factors
35We rely on two independent hosting providers for our production systems. Service interruptions could prevent customers from accessing their inventory records. We maintain backups and test restoration procedures each month. Customers may cancel their subscriptions if interruptions continue for extended periods. Our operating results also depend on renewing annual subscriptions and retaining experienced support staff.
36
37ITEM 7. Management Discussion and Analysis
38Subscription revenue increased by 18 percent during the period. Management continued investing in customer support and routine infrastructure maintenance. The business had adequate cash to fund its planned operating expenses. These observations are part of this fictional demonstration and should not be interpreted as information about a real issuer.
39
40The company added a second support team to improve response times for customers.`
41};
42
43
44const run = await client.actor("thescrapelab/apify-sec-edgar-data").call(input);
45
46
47console.log('Results from dataset');
48console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
49const { items } = await client.dataset(run.defaultDatasetId).listItems();
50items.forEach((item) => {
51 console.dir(item);
52});
53
54