1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "xml": `<?xml version="1.0"?>
12<ownershipDocument>
13
14 <schemaVersion>X0609</schemaVersion>
15
16 <documentType>4</documentType>
17
18 <periodOfReport>2026-10-27</periodOfReport>
19
20 <issuer>
21 <issuerCik>0000320193</issuerCik>
22 <issuerName>Apple Inc.</issuerName>
23 <issuerTradingSymbol>AAPL</issuerTradingSymbol>
24 <issuerForeignTradingSymbol></issuerForeignTradingSymbol>
25 </issuer>
26
27 <reportingOwner>
28 <reportingOwnerId>
29 <rptOwnerCik>0001780525</rptOwnerCik>
30 <rptOwnerName>Newstead Jennifer</rptOwnerName>
31 </reportingOwnerId>
32 <reportingOwnerAddress>
33 <rptOwnerNonUSAddressFlag>false</rptOwnerNonUSAddressFlag>
34 <rptOwnerStreet1>ONE APPLE PARK WAY</rptOwnerStreet1>
35 <rptOwnerStreet2></rptOwnerStreet2>
36 <rptOwnerCity>CUPERTINO</rptOwnerCity>
37 <rptOwnerState>CA</rptOwnerState>
38 <rptOwnerZipCode>95014</rptOwnerZipCode>
39 <rptOwnerStateDescription></rptOwnerStateDescription>
40 </reportingOwnerAddress>
41 <reportingOwnerRelationship>
42 <isDirector>false</isDirector>
43 <isOfficer>true</isOfficer>
44 <isTenPercentOwner>false</isTenPercentOwner>
45 <isOther>false</isOther>
46 <officerTitle>SVP, GC and Government Affairs</officerTitle>
47 </reportingOwnerRelationship>
48 </reportingOwner>
49
50 <aff10b5One>true</aff10b5One>
51
52 <nonDerivativeTable>
53 <nonDerivativeTransaction>
54 <securityTitle>
55 <value>Common Stock</value>
56 <footnoteId id="F1"/>
57 </securityTitle>
58 <transactionDate>
59 <value>2026-10-27</value>
60 </transactionDate>
61 <transactionCoding>
62 <transactionFormType>4</transactionFormType>
63 <transactionCode>S</transactionCode>
64 <equitySwapInvolved>false</equitySwapInvolved>
65 </transactionCoding>
66 <transactionAmounts>
67 <transactionShares>
68 <value>2399</value>
69 </transactionShares>
70 <transactionPricePerShare>
71 <value>343.36</value>
72 </transactionPricePerShare>
73 <transactionAcquiredDisposedCode>
74 <value>D</value>
75 </transactionAcquiredDisposedCode>
76 </transactionAmounts>
77 <postTransactionAmounts>
78 <sharesOwnedFollowingTransaction>
79 <value>32396</value>
80 </sharesOwnedFollowingTransaction>
81 </postTransactionAmounts>
82 <ownershipNature>
83 <directOrIndirectOwnership>
84 <value>D</value>
85 </directOrIndirectOwnership>
86 </ownershipNature>
87 </nonDerivativeTransaction>
88 </nonDerivativeTable>
89
90 <footnotes>
91 <footnote id="F1">This transaction was made pursuant to a Rule 10b5-1 trading plan adopted by the reporting person on May 5, 2026.</footnote>
92 </footnotes>
93
94 <ownerSignature>
95 <signatureName>/s/ Sam Whittington, Attorney-in-Fact for Jennifer Newstead</signatureName>
96 <signatureDate>2026-10-29</signatureDate>
97 </ownerSignature>
98</ownershipDocument>`,
99 "maxRows": 1000,
100 "includeFootnotes": true
101};
102
103
104const run = await client.actor("apex-nexus/sec-form-4-xml-to-table").call(input);
105
106
107console.log('Results from dataset');
108console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
109const { items } = await client.dataset(run.defaultDatasetId).listItems();
110items.forEach((item) => {
111 console.dir(item);
112});
113
114