XBRL to JSON Converter API

Parse and standardize any XBRL data and convert it to standardized JSON format in seconds without coding. Extract financial statements from annual and quarterly reports (10-K, 10-Q, 20-F, 40-F), offerings such as S-1 filings, and post-effective amendements for registration statements (POS AM), accounting policies and footnotes, risk-return summaries of mutual fund and ETF prospectuses (485BPOS) and general information from event filings (8-K). All XBRL-supported filing types can be converterd.

Example: XBRL Income Statement from 10-K Filing in JSON Format
1 {
2 "StatementsOfIncome": {
3 "RevenueFromContractWithCustomerExcludingAssessedTax": [
4 {
5 "decimals": "-6",
6 "unitRef": "U_USD",
7 "period": {
8 "startDate": "2023-07-01",
9 "endDate": "2024-06-30"
10 },
11 "value": "245122000000"
12 },
13 {
14 "decimals": "-6",
15 "unitRef": "U_USD",
16 "period": {
17 "startDate": "2022-07-01",
18 "endDate": "2023-06-30"
19 },
20 "value": "211915000000"
21 },
22 {
23 "decimals": "-6",
24 "unitRef": "U_USD",
25 "period": {
26 "startDate": "2023-07-01",
27 "endDate": "2024-06-30"
28 },
29 "segment": {
30 "dimension": "srt:ProductOrServiceAxis",
31 "value": "us-gaap:ProductMember"
32 },
33 "value": "64773000000"
34 },
35 // ... more revenue entries
36 ],
37 "CostOfGoodsAndServicesSold": [ "..." ],
38 "GrossProfit": [ "..." ],
39 "ResearchAndDevelopmentExpense": [ "..." ],
40 "SellingGeneralAndAdministrativeExpense": [ "..." ],
41 "OperatingExpenses": [ "..." ],
42 "OperatingIncomeLoss": [ "..." ],
43 "NonoperatingIncomeExpense": [ "..." ],
44 "IncomeTaxExpenseBenefit": [ "..." ],
45 "NetIncomeLoss": [ "..." ],
46 "EarningsPerShareBasic": [ "..." ],
47 "EarningsPerShareDiluted": [ "..." ],
48 "WeightedAverageNumberOfSharesOutstandingBasic": [ "..." ],
49 "WeightedAverageNumberOfDilutedSharesOutstanding": [ "..." ]
50 // ... more income statement items depending on the company
51 }

The entire US GAAP taxonomy is fully supported. All XBRL items are fully converted into JSON, including us-gaap, dei and custom items. XBRL facts are automatically mapped to their respective context including period instants and date ranges.

Any XBRL can be directly converted into Python pandas dataframes.

All financial statements and all US GAAP elements are supported, for example:

  • Income statement (consolidated statement of operations)
  • Balance sheet (consolidated statement of balance sheets)
  • Cash flow statement (consolidated statement of cash flows)
  • And many more.

Examples of Income Statement Items

  • RevenueFromContractWithCustomerExcludingAssessedTax
  • CostOfGoodsAndServicesSold
  • GrossProfit
  • ResearchAndDevelopmentExpense
  • SellingGeneralAndAdministrativeExpense
  • OperatingExpenses
  • OperatingIncomeLoss
  • NetIncomeLoss
  • EarningsPerShareBasic

Examples of Balance Sheet Items

  • AccountsReceivableNetCurrent
  • AccountsPayableCurrent
  • LiabilitiesCurrent
  • LongTermDebtCurrent
  • AssetsNoncurrent
  • RetainedEarningsAccumulatedDeficit
  • CashAndCashEquivalentsAtCarryingValue
  • InventoryNet
You can find a full list of all US-GAAP items authored by the Financial Accounting Standards Board here: https://www.fasb.org/xbrl

All cover page items are supported, for example:

  • DocumentPeriodEndDate
  • EntityFileNumber
  • EntityRegistrantName
  • EntityIncorporationStateCountryCode
  • EntityTaxIdentificationNumber
  • Security12bTitle
  • TradingSymbol
  • SecurityExchangeName
  • EntityPublicFloat
  • CurrentFiscalYearEndDate
Dataset size:
All XBRL data of any XBRL-friendly filing from 2005 to present.
Data update frequency:
XBRL-JSON data of new filings is available in less than 300 milliseconds after the filing is published on EDGAR.
Survivorship bias free:
Yes. The XBRL to JSON Converter API includes all XBRL data of any XBRL-friendly filing from 2005 to present, from filer entities that are still active and those that are no longer active.

Supported XBRL Filing Types

The following is a list of all supported filing types categorized by filer type:

Operating Companies:
10-K, 10-K/A, 10-KT, 10-KT/A, 10-Q, 10-Q/A, 10-QT, 10-12B, 10-QT/A, 10-12B/A, 10-12G, 10-12G/A, 8-K, 8-K/A, 8-K12B, 8-K12B/A, 8-K12G3, 8-K12G3/A, 8-K15D5, 8-K15D5/A, 20-F, 20-F/A, 20FR12B, 20FR12B/A, 20FR12G, 20FR12G/A, 40-F, 40-F/A, 40FR12B, 40FR12B/A, 40FR12G, 40FR12G/A, 6-K, 6-K/A, SP 15D2, SP 15D2/A, S-1, S-1/A, S-1MEF, S-3, S-3/A, S-3ASR, S-3D, S-3DPOS, S-3MEF, S-4, S-4/A, S-4EF, S-4MEF, S-4 POS, S-11, S-11/A, S-11MEF, POS AM, POS EX, POSASR, F-1, F-1/A, F-1MEF, F-3, F-3/A, F-3ASR, F-3D, F-3DPOS, F-3MEF, F-4, F-4/A, F-4EF, F-4MEF, F-4 POS, F-10, F-10/A, F-10EF, F-10POS, DEF 14A, DEF 14C, DEFA14A, DEFA14C, DEFC14A, DEFC14C, DEFM14A, DEFM14C, DEFR14A, DEFR14C, PRE 14A, PRE 14C, PREC14A, PREC14C, PREM14A, PREM14C, PRER14A, PRER14C
Attachement type
EX-101.*
Investment Companies:
485BPOS, 487, 497, 485APOS, 485BXT, N-1A, N-1A/A, N-2, N-2/A, N-2ASR, N-2 POSASR, N-2MEF, POS EX, POS462B, POS462C, 486BXT, 486APOS, 486BPOS, 486BXT, POS 8C, POS AMI, 424A, 424B1, 424B2, 424B3, 424B4, 424B5, 424B7, 424B8, N-CSR, N-CSR/A, N-CSRS, N-CSRS/A, SC 13E3, SC 13E3/A, DEF 14A, DEF 14C, DEFA14A, DEFA14C, DEFC14A, DEFM14A, DEFM14C DEFR14A, DEFR14C, 8-K, 8-K/A, 8-K12B, 8-K12B/A, 8-K12G3, 8-K12G3/A, 8-K15D5, 8-K15D5/A, 10-K, 10-K/A, 10-KT, 10-KT/A, 10-Q, 10-Q/A, 10-QT, 10-QT/A, 497, N-3, N-3/A, N-4, N-4/A, N-6, N-6/A, 497J, DEFC14C
Attachement type
EX-101.*
Security-Based Swap Data Repositories:
SDR, SDR/A, SDR-A, SDR-W
Attachement type
EX-99.SDR K.*, EX-99.SDR L.*

API Endpoint

XML-XBRL data attached to an EDGAR filing can be converted to JSON format by sending a GET HTTP request with the XBRL file URL, the HTML filing URL, or the accession number of the filing to the following endpoint:

https://api.sec-api.io/xbrl-to-json

Supported HTTP method: GET

Response content type: JSON. The response includes all XBRL items in JSON format.

Authentication

To authenticate requests to the XBRL to JSON Converter API, use the API key shown in your user profile. Utilize the API key in one of two ways. Choose the method that best fits your implementation:

  • Set as Authorization header. Before making a GET request to https://api.sec-api.io/xbrl-to-json, set the Authorization header to YOUR_API_KEY.
  • Set as query parameter ?token=YOUR_API_KEY: Perform a GET request to https://api.sec-api.io/xbrl-to-json?token=YOUR_API_KEY&htm-url=....

Request Parameters

The XBRL-to-JSON Converter API accepts three diferent query parameters for converting XBRL data to JSON. Provide the URL of the filing, the URL of the XBRL file, or the accession number of the filing. Choose the method that best fits your implementation:

  1. htm-url: Provide the URL of the filing ending with .htm or .html. Both URLs, to the filing itself and the index page, are accepted.
    Example URLs:
    https://www.sec.gov/Archives/edgar/data/1318605/000156459021004599/tsla-10k_20201231.htm
    https://www.sec.gov/Archives/edgar/data/914243/000091424322000011/0000914243-22-000011-index.html
  2. xbrl-url: Provide the URL of the XBRL file ending with .xml. The XBRL file URL can be found in the dataFiles array returned by the Query API. The array item always has the description EXTRACTED XBRL INSTANCE DOCUMENT.
    Example URLs:
    https://www.sec.gov/Archives/edgar/data/1318605/000156459021004599/tsla-10k_20201231_htm.xml
    https://www.sec.gov/Archives/edgar/data/914243/000091424322000011/ck0000914243-20210930_htm.xml
  3. accession-no: Provide the accession number of the filing, e.g. 0001564590-21-004599

Utilize the Query API to generate a list of the most recent 10-K filings that include XBRL files. The search query format is as follows and can be tested in the sandbox.

formType:"10-K" AND dataFiles.description:"XBRL INSTANCE DOCUMENT"

Request Examples

The following examples demonstrate how to convert XBRL data to JSON using the XBRL-to-JSON Converter API with the three different query parameters: htm-url, xbrl-url, and accession-no.

htm-url Example

Open in Data Browser

xbrl-url Example

Open in Data Browser

accession-no Example

Open in Data Browser

Response Format

The response represents a JSON object including all financial statements, the cover page and any custom items the company deems important to be published.

Standardized financial statements are:

  • StatementsOfIncome
  • StatementsOfIncomeParenthetical
  • StatementsOfComprehensiveIncome
  • StatementsOfComprehensiveIncomeParenthetical
  • BalanceSheets
  • BalanceSheetsParenthetical
  • StatementsOfCashFlows
  • StatementsOfCashFlowsParenthetical
  • StatementsOfShareholdersEquity
  • StatementsOfShareholdersEquityParenthetical

Variants such as ConsolidatedStatementsofOperations or ConsolidatedStatementsOfLossIncome are automatically renamed to their root name, e.g. StatementsOfIncome.

All US GAAP item names are standardized. For example, us-gaap_SalesRevenueGoodsNet is renamed to SalesRevenueGoodsNet ("us-gaap_" was removed). Please note that GAAP items are not renamed to its parent name. For example, us-gaap_SalesRevenueGoodsNet is not renamed to Revenue. There are many items representing different types of revenue but none of them are renamed to Revenue - the original GAAP item name is always maintained.

Response Structure

  • A financial statement is represented as an object.
  • An object holds all US GAAP items, for example RevenueFromContractWithCustomerExcludingAssessedTax.
  • An object key is an array holding all US GAAP item facts. For example, RevenueFromContractWithCustomerExcludingAssessedTax is an array where each item represents a revenue value including the period with a start and end date, unit reference (e.g. USD) and decimals (e.g. -6) indicating that the last 6 digits are rounded.
  • The period is always an object with startDate and endDate (e.g. applicable to income statements) or with an instant (e.g. applicable to balance sheets).
  • The segment key (optional) can be an object or array of objects. A segment object includes a dimension (e.g. srt:ProductOrServiceAxis) and a value (e.g. us-gaap:ProductMember). A segment is used to break-down a US GAAP element into more details. For example, a Revenue item with the srt:ProductOrServiceAxis dimension and us-gaap:ProductMember value shows how much revenue was generated with product sales for the given period - excluding service and other sales. Revenues can also be split into geographies (e.g. US, Europe, APAC) or product segments (e.g. iPhone vs Mac sales) using the dimensions.

Income Statement - Example Item

JSON
1 {
2 "StatementsOfIncome": {
3 "RevenueFromContractWithCustomerExcludingAssessedTax": [
4 {
5 "decimals": "-6",
6 "unitRef": "usd",
7 "period": {
8 "startDate": "2019-09-29",
9 "endDate": "2020-09-26"
10 },
11 "value": "274515000000"
12 },
13 {
14 "decimals": "-6",
15 "unitRef": "usd",
16 "period": {
17 "startDate": "2018-09-30",
18 "endDate": "2019-09-28"
19 },
20 "value": "260174000000"
21 },
22 {
23 "decimals": "-6",
24 "unitRef": "usd",
25 "period": {
26 "startDate": "2017-10-01",
27 "endDate": "2018-09-29"
28 },
29 "value": "265595000000"
30 },
31 {
32 "decimals": "-6",
33 "unitRef": "usd",
34 "period": {
35 "startDate": "2019-09-29",
36 "endDate": "2020-09-26"
37 },
38 "segment": {
39 "dimension": "srt:ProductOrServiceAxis",
40 "value": "us-gaap:ProductMember"
41 },
42 "value": "220747000000"
43 },
44 {
45 "decimals": "-6",
46 "unitRef": "usd",
47 "period": {
48 "startDate": "2018-09-30",
49 "endDate": "2019-09-28"
50 },
51 "segment": {
52 "dimension": "srt:ProductOrServiceAxis",
53 "value": "us-gaap:ProductMember"
54 },
55 "value": "213883000000"
56 },
57 {
58 "decimals": "-6",
59 "unitRef": "usd",
60 "period": {
61 "startDate": "2017-10-01",
62 "endDate": "2018-09-29"
63 },
64 "segment": {
65 "dimension": "srt:ProductOrServiceAxis",
66 "value": "us-gaap:ProductMember"
67 },
68 "value": "225847000000"
69 },
70 {
71 "decimals": "-6",
72 "unitRef": "usd",
73 "period": {
74 "startDate": "2019-09-29",
75 "endDate": "2020-09-26"
76 },
77 "segment": {
78 "dimension": "srt:ProductOrServiceAxis",
79 "value": "us-gaap:ServiceMember"
80 },
81 "value": "53768000000"
82 },
83 {
84 "decimals": "-6",
85 "unitRef": "usd",
86 "period": {
87 "startDate": "2018-09-30",
88 "endDate": "2019-09-28"
89 },
90 "segment": {
91 "dimension": "srt:ProductOrServiceAxis",
92 "value": "us-gaap:ServiceMember"
93 },
94 "value": "46291000000"
95 },
96 {
97 "decimals": "-6",
98 "unitRef": "usd",
99 "period": {
100 "startDate": "2017-10-01",
101 "endDate": "2018-09-29"
102 },
103 "segment": {
104 "dimension": "srt:ProductOrServiceAxis",
105 "value": "us-gaap:ServiceMember"
106 },
107 "value": "39748000000"
108 },
109 {
110 "decimals": "-6",
111 "unitRef": "usd",
112 "period": {
113 "startDate": "2019-09-29",
114 "endDate": "2020-09-26"
115 },
116 "segment": {
117 "dimension": "srt:ProductOrServiceAxis",
118 "value": "aapl:IPhoneMember"
119 },
120 "value": "137781000000"
121 },
122 {
123 "decimals": "-6",
124 "unitRef": "usd",
125 "period": {
126 "startDate": "2018-09-30",
127 "endDate": "2019-09-28"
128 },
129 "segment": {
130 "dimension": "srt:ProductOrServiceAxis",
131 "value": "aapl:IPhoneMember"
132 },
133 "value": "142381000000"
134 },
135 {
136 "decimals": "-6",
137 "unitRef": "usd",
138 "period": {
139 "startDate": "2017-10-01",
140 "endDate": "2018-09-29"
141 },
142 "segment": {
143 "dimension": "srt:ProductOrServiceAxis",
144 "value": "aapl:IPhoneMember"
145 },
146 "value": "164888000000"
147 },
148 {
149 "decimals": "-6",
150 "unitRef": "usd",
151 "period": {
152 "startDate": "2019-09-29",
153 "endDate": "2020-09-26"
154 },
155 "segment": {
156 "dimension": "srt:ProductOrServiceAxis",
157 "value": "aapl:MacMember"
158 },
159 "value": "28622000000"
160 },
161 {
162 "decimals": "-6",
163 "unitRef": "usd",
164 "period": {
165 "startDate": "2018-09-30",
166 "endDate": "2019-09-28"
167 },
168 "segment": {
169 "dimension": "srt:ProductOrServiceAxis",
170 "value": "aapl:MacMember"
171 },
172 "value": "25740000000"
173 },
174 {
175 "decimals": "-6",
176 "unitRef": "usd",
177 "period": {
178 "startDate": "2017-10-01",
179 "endDate": "2018-09-29"
180 },
181 "segment": {
182 "dimension": "srt:ProductOrServiceAxis",
183 "value": "aapl:MacMember"
184 },
185 "value": "25198000000"
186 },
187 {
188 "decimals": "-6",
189 "unitRef": "usd",
190 "period": {
191 "startDate": "2019-09-29",
192 "endDate": "2020-09-26"
193 },
194 "segment": {
195 "dimension": "srt:ProductOrServiceAxis",
196 "value": "aapl:IPadMember"
197 },
198 "value": "23724000000"
199 },
200 {
201 "decimals": "-6",
202 "unitRef": "usd",
203 "period": {
204 "startDate": "2018-09-30",
205 "endDate": "2019-09-28"
206 },
207 "segment": {
208 "dimension": "srt:ProductOrServiceAxis",
209 "value": "aapl:IPadMember"
210 },
211 "value": "21280000000"
212 },
213 {
214 "decimals": "-6",
215 "unitRef": "usd",
216 "period": {
217 "startDate": "2017-10-01",
218 "endDate": "2018-09-29"
219 },
220 "segment": {
221 "dimension": "srt:ProductOrServiceAxis",
222 "value": "aapl:IPadMember"
223 },
224 "value": "18380000000"
225 },
226 {
227 "decimals": "-6",
228 "unitRef": "usd",
229 "period": {
230 "startDate": "2019-09-29",
231 "endDate": "2020-09-26"
232 },
233 "segment": {
234 "dimension": "srt:ProductOrServiceAxis",
235 "value": "aapl:WearablesHomeandAccessoriesMember"
236 },
237 "value": "30620000000"
238 },
239 {
240 "decimals": "-6",
241 "unitRef": "usd",
242 "period": {
243 "startDate": "2018-09-30",
244 "endDate": "2019-09-28"
245 },
246 "segment": {
247 "dimension": "srt:ProductOrServiceAxis",
248 "value": "aapl:WearablesHomeandAccessoriesMember"
249 },
250 "value": "24482000000"
251 },
252 {
253 "decimals": "-6",
254 "unitRef": "usd",
255 "period": {
256 "startDate": "2017-10-01",
257 "endDate": "2018-09-29"
258 },
259 "segment": {
260 "dimension": "srt:ProductOrServiceAxis",
261 "value": "aapl:WearablesHomeandAccessoriesMember"
262 },
263 "value": "17381000000"
264 },
265 {
266 "decimals": "-6",
267 "unitRef": "usd",
268 "period": {
269 "startDate": "2019-09-29",
270 "endDate": "2020-09-26"
271 },
272 "segment": {
273 "dimension": "us-gaap:StatementBusinessSegmentsAxis",
274 "value": "aapl:AmericasSegmentMember"
275 },
276 "value": "124556000000"
277 },
278 {
279 "decimals": "-6",
280 "unitRef": "usd",
281 "period": {
282 "startDate": "2018-09-30",
283 "endDate": "2019-09-28"
284 },
285 "segment": {
286 "dimension": "us-gaap:StatementBusinessSegmentsAxis",
287 "value": "aapl:AmericasSegmentMember"
288 },
289 "value": "116914000000"
290 },
291 {
292 "decimals": "-6",
293 "unitRef": "usd",
294 "period": {
295 "startDate": "2017-10-01",
296 "endDate": "2018-09-29"
297 },
298 "segment": {
299 "dimension": "us-gaap:StatementBusinessSegmentsAxis",
300 "value": "aapl:AmericasSegmentMember"
301 },
302 "value": "112093000000"
303 },
304 {
305 "decimals": "-6",
306 "unitRef": "usd",
307 "period": {
308 "startDate": "2019-09-29",
309 "endDate": "2020-09-26"
310 },
311 "segment": {
312 "dimension": "us-gaap:StatementBusinessSegmentsAxis",
313 "value": "aapl:EuropeSegmentMember"
314 },
315 "value": "68640000000"
316 },
317 {
318 "decimals": "-6",
319 "unitRef": "usd",
320 "period": {
321 "startDate": "2018-09-30",
322 "endDate": "2019-09-28"
323 },
324 "segment": {
325 "dimension": "us-gaap:StatementBusinessSegmentsAxis",
326 "value": "aapl:EuropeSegmentMember"
327 },
328 "value": "60288000000"
329 },
330 {
331 "decimals": "-6",
332 "unitRef": "usd",
333 "period": {
334 "startDate": "2017-10-01",
335 "endDate": "2018-09-29"
336 },
337 "segment": {
338 "dimension": "us-gaap:StatementBusinessSegmentsAxis",
339 "value": "aapl:EuropeSegmentMember"
340 },
341 "value": "62420000000"
342 },
343 {
344 "decimals": "-6",
345 "unitRef": "usd",
346 "period": {
347 "startDate": "2019-09-29",
348 "endDate": "2020-09-26"
349 },
350 "segment": {
351 "dimension": "us-gaap:StatementBusinessSegmentsAxis",
352 "value": "aapl:GreaterChinaSegmentMember"
353 },
354 "value": "40308000000"
355 },
356 {
357 "decimals": "-6",
358 "unitRef": "usd",
359 "period": {
360 "startDate": "2018-09-30",
361 "endDate": "2019-09-28"
362 },
363 "segment": {
364 "dimension": "us-gaap:StatementBusinessSegmentsAxis",
365 "value": "aapl:GreaterChinaSegmentMember"
366 },
367 "value": "43678000000"
368 },
369 {
370 "decimals": "-6",
371 "unitRef": "usd",
372 "period": {
373 "startDate": "2017-10-01",
374 "endDate": "2018-09-29"
375 },
376 "segment": {
377 "dimension": "us-gaap:StatementBusinessSegmentsAxis",
378 "value": "aapl:GreaterChinaSegmentMember"
379 },
380 "value": "51942000000"
381 },
382 {
383 "decimals": "-6",
384 "unitRef": "usd",
385 "period": {
386 "startDate": "2019-09-29",
387 "endDate": "2020-09-26"
388 },
389 "segment": {
390 "dimension": "us-gaap:StatementBusinessSegmentsAxis",
391 "value": "aapl:JapanSegmentMember"
392 },
393 "value": "21418000000"
394 },
395 {
396 "decimals": "-6",
397 "unitRef": "usd",
398 "period": {
399 "startDate": "2018-09-30",
400 "endDate": "2019-09-28"
401 },
402 "segment": {
403 "dimension": "us-gaap:StatementBusinessSegmentsAxis",
404 "value": "aapl:JapanSegmentMember"
405 },
406 "value": "21506000000"
407 },
408 {
409 "decimals": "-6",
410 "unitRef": "usd",
411 "period": {
412 "startDate": "2017-10-01",
413 "endDate": "2018-09-29"
414 },
415 "segment": {
416 "dimension": "us-gaap:StatementBusinessSegmentsAxis",
417 "value": "aapl:JapanSegmentMember"
418 },
419 "value": "21733000000"
420 },
421 {
422 "decimals": "-6",
423 "unitRef": "usd",
424 "period": {
425 "startDate": "2019-09-29",
426 "endDate": "2020-09-26"
427 },
428 "segment": {
429 "dimension": "us-gaap:StatementBusinessSegmentsAxis",
430 "value": "aapl:RestOfAsiaPacificSegmentMember"
431 },
432 "value": "19593000000"
433 },
434 {
435 "decimals": "-6",
436 "unitRef": "usd",
437 "period": {
438 "startDate": "2018-09-30",
439 "endDate": "2019-09-28"
440 },
441 "segment": {
442 "dimension": "us-gaap:StatementBusinessSegmentsAxis",
443 "value": "aapl:RestOfAsiaPacificSegmentMember"
444 },
445 "value": "17788000000"
446 },
447 {
448 "decimals": "-6",
449 "unitRef": "usd",
450 "period": {
451 "startDate": "2017-10-01",
452 "endDate": "2018-09-29"
453 },
454 "segment": {
455 "dimension": "us-gaap:StatementBusinessSegmentsAxis",
456 "value": "aapl:RestOfAsiaPacificSegmentMember"
457 },
458 "value": "17407000000"
459 },
460 {
461 "decimals": "-6",
462 "unitRef": "usd",
463 "period": {
464 "startDate": "2019-09-29",
465 "endDate": "2020-09-26"
466 },
467 "segment": {
468 "dimension": "srt:StatementGeographicalAxis",
469 "value": "country:US"
470 },
471 "value": "109197000000"
472 },
473 {
474 "decimals": "-6",
475 "unitRef": "usd",
476 "period": {
477 "startDate": "2018-09-30",
478 "endDate": "2019-09-28"
479 },
480 "segment": {
481 "dimension": "srt:StatementGeographicalAxis",
482 "value": "country:US"
483 },
484 "value": "102266000000"
485 },
486 {
487 "decimals": "-6",
488 "unitRef": "usd",
489 "period": {
490 "startDate": "2017-10-01",
491 "endDate": "2018-09-29"
492 },
493 "segment": {
494 "dimension": "srt:StatementGeographicalAxis",
495 "value": "country:US"
496 },
497 "value": "98061000000"
498 },
499 {
500 "decimals": "-6",
501 "unitRef": "usd",
502 "period": {
503 "startDate": "2019-09-29",
504 "endDate": "2020-09-26"
505 },
506 "segment": {
507 "dimension": "srt:StatementGeographicalAxis",
508 "value": "country:CN"
509 },
510 "value": "40308000000"
511 },
512 {
513 "decimals": "-6",
514 "unitRef": "usd",
515 "period": {
516 "startDate": "2018-09-30",
517 "endDate": "2019-09-28"
518 },
519 "segment": {
520 "dimension": "srt:StatementGeographicalAxis",
521 "value": "country:CN"
522 },
523 "value": "43678000000"
524 },
525 {
526 "decimals": "-6",
527 "unitRef": "usd",
528 "period": {
529 "startDate": "2017-10-01",
530 "endDate": "2018-09-29"
531 },
532 "segment": {
533 "dimension": "srt:StatementGeographicalAxis",
534 "value": "country:CN"
535 },
536 "value": "51942000000"
537 },
538 {
539 "decimals": "-6",
540 "unitRef": "usd",
541 "period": {
542 "startDate": "2019-09-29",
543 "endDate": "2020-09-26"
544 },
545 "segment": {
546 "dimension": "srt:StatementGeographicalAxis",
547 "value": "aapl:OtherCountriesMember"
548 },
549 "value": "125010000000"
550 },
551 {
552 "decimals": "-6",
553 "unitRef": "usd",
554 "period": {
555 "startDate": "2018-09-30",
556 "endDate": "2019-09-28"
557 },
558 "segment": {
559 "dimension": "srt:StatementGeographicalAxis",
560 "value": "aapl:OtherCountriesMember"
561 },
562 "value": "114230000000"
563 },
564 {
565 "decimals": "-6",
566 "unitRef": "usd",
567 "period": {
568 "startDate": "2017-10-01",
569 "endDate": "2018-09-29"
570 },
571 "segment": {
572 "dimension": "srt:StatementGeographicalAxis",
573 "value": "aapl:OtherCountriesMember"
574 },
575 "value": "115592000000"
576 },
577 {
578 "decimals": "-6",
579 "unitRef": "usd",
580 "period": {
581 "startDate": "2020-06-28",
582 "endDate": "2020-09-26"
583 },
584 "value": "64698000000"
585 },
586 {
587 "decimals": "-6",
588 "unitRef": "usd",
589 "period": {
590 "startDate": "2020-03-29",
591 "endDate": "2020-06-27"
592 },
593 "value": "59685000000"
594 },
595 {
596 "decimals": "-6",
597 "unitRef": "usd",
598 "period": {
599 "startDate": "2019-12-29",
600 "endDate": "2020-03-28"
601 },
602 "value": "58313000000"
603 },
604 {
605 "decimals": "-6",
606 "unitRef": "usd",
607 "period": {
608 "startDate": "2019-09-29",
609 "endDate": "2019-12-28"
610 },
611 "value": "91819000000"
612 },
613 {
614 "decimals": "-6",
615 "unitRef": "usd",
616 "period": {
617 "startDate": "2019-06-30",
618 "endDate": "2019-09-28"
619 },
620 "value": "64040000000"
621 },
622 {
623 "decimals": "-6",
624 "unitRef": "usd",
625 "period": {
626 "startDate": "2019-03-31",
627 "endDate": "2019-06-29"
628 },
629 "value": "53809000000"
630 },
631 {
632 "decimals": "-6",
633 "unitRef": "usd",
634 "period": {
635 "startDate": "2018-12-30",
636 "endDate": "2019-03-30"
637 },
638 "value": "58015000000"
639 },
640 {
641 "decimals": "-6",
642 "unitRef": "usd",
643 "period": {
644 "startDate": "2018-09-30",
645 "endDate": "2018-12-29"
646 },
647 "value": "84310000000"
648 }
649 ],
650 "CostOfGoodsAndServicesSold": [
651 {
652 "decimals": "-6",
653 "unitRef": "usd",
654 "period": {
655 "startDate": "2019-09-29",
656 "endDate": "2020-09-26"
657 },
658 "segment": {
659 "dimension": "srt:ProductOrServiceAxis",
660 "value": "us-gaap:ProductMember"
661 },
662 "value": "151286000000"
663 },
664 {
665 "decimals": "-6",
666 "unitRef": "usd",
667 "period": {
668 "startDate": "2018-09-30",
669 "endDate": "2019-09-28"
670 },
671 "segment": {
672 "dimension": "srt:ProductOrServiceAxis",
673 "value": "us-gaap:ProductMember"
674 },
675 "value": "144996000000"
676 },
677 {
678 "decimals": "-6",
679 "unitRef": "usd",
680 "period": {
681 "startDate": "2017-10-01",
682 "endDate": "2018-09-29"
683 },
684 "segment": {
685 "dimension": "srt:ProductOrServiceAxis",
686 "value": "us-gaap:ProductMember"
687 },
688 "value": "148164000000"
689 },
690 {
691 "decimals": "-6",
692 "unitRef": "usd",
693 "period": {
694 "startDate": "2019-09-29",
695 "endDate": "2020-09-26"
696 },
697 "segment": {
698 "dimension": "srt:ProductOrServiceAxis",
699 "value": "us-gaap:ServiceMember"
700 },
701 "value": "18273000000"
702 },
703 {
704 "decimals": "-6",
705 "unitRef": "usd",
706 "period": {
707 "startDate": "2018-09-30",
708 "endDate": "2019-09-28"
709 },
710 "segment": {
711 "dimension": "srt:ProductOrServiceAxis",
712 "value": "us-gaap:ServiceMember"
713 },
714 "value": "16786000000"
715 },
716 {
717 "decimals": "-6",
718 "unitRef": "usd",
719 "period": {
720 "startDate": "2017-10-01",
721 "endDate": "2018-09-29"
722 },
723 "segment": {
724 "dimension": "srt:ProductOrServiceAxis",
725 "value": "us-gaap:ServiceMember"
726 },
727 "value": "15592000000"
728 },
729 {
730 "decimals": "-6",
731 "unitRef": "usd",
732 "period": {
733 "startDate": "2019-09-29",
734 "endDate": "2020-09-26"
735 },
736 "value": "169559000000"
737 },
738 {
739 "decimals": "-6",
740 "unitRef": "usd",
741 "period": {
742 "startDate": "2018-09-30",
743 "endDate": "2019-09-28"
744 },
745 "value": "161782000000"
746 },
747 {
748 "decimals": "-6",
749 "unitRef": "usd",
750 "period": {
751 "startDate": "2017-10-01",
752 "endDate": "2018-09-29"
753 },
754 "value": "163756000000"
755 },
756 {
757 "decimals": "-6",
758 "unitRef": "usd",
759 "period": {
760 "startDate": "2019-09-29",
761 "endDate": "2020-09-26"
762 },
763 "segment": [
764 {
765 "dimension": "us-gaap:DerivativeInstrumentRiskAxis",
766 "value": "us-gaap:ForeignExchangeContractMember"
767 },
768 {
769 "dimension": "us-gaap:ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis",
770 "value": "us-gaap:ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember"
771 },
772 {
773 "dimension": "us-gaap:StatementEquityComponentsAxis",
774 "value": "us-gaap:AccumulatedGainLossNetCashFlowHedgeParentMember"
775 }
776 ],
777 "value": "-584000000"
778 },
779 {
780 "decimals": "-6",
781 "unitRef": "usd",
782 "period": {
783 "startDate": "2018-09-30",
784 "endDate": "2019-09-28"
785 },
786 "segment": [
787 {
788 "dimension": "us-gaap:DerivativeInstrumentRiskAxis",
789 "value": "us-gaap:ForeignExchangeContractMember"
790 },
791 {
792 "dimension": "us-gaap:ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis",
793 "value": "us-gaap:ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember"
794 },
795 {
796 "dimension": "us-gaap:StatementEquityComponentsAxis",
797 "value": "us-gaap:AccumulatedGainLossNetCashFlowHedgeParentMember"
798 }
799 ],
800 "value": "-482000000"
801 }
802 ],
803 "GrossProfit": [ "..." ],
804 "ResearchAndDevelopmentExpense": [ "..." ],
805 "SellingGeneralAndAdministrativeExpense": [ "..." ],
806 "OperatingExpenses": [ "..." ],
807 "OperatingIncomeLoss": [ "..." ],
808 "NonoperatingIncomeExpense": [ "..." ],
809 "IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest": [ "..." ],
810 "IncomeTaxExpenseBenefit": [ "..." ],
811 "NetIncomeLoss": [ "..." ],
812 "EarningsPerShareBasic": [ "..." ],
813 "EarningsPerShareDiluted": [ "..." ],
814 "WeightedAverageNumberOfSharesOutstandingBasic": [ "..." ],
815 "WeightedAverageNumberOfDilutedSharesOutstanding": [ "..." ]
816 }
817 }

Balance Sheet - Example Item

JSON
1 {
2 "BalanceSheets": {
3 "CashAndCashEquivalentsAtCarryingValue": [
4 {
5 "decimals": "-6",
6 "unitRef": "usd",
7 "period": {
8 "instant": "2020-09-26"
9 },
10 "value": "38016000000"
11 },
12 {
13 "decimals": "-6",
14 "unitRef": "usd",
15 "period": {
16 "instant": "2019-09-28"
17 },
18 "value": "48844000000"
19 },
20 {
21 "decimals": "-6",
22 "unitRef": "usd",
23 "period": {
24 "instant": "2020-09-26"
25 },
26 "segment": {
27 "dimension": "us-gaap:FinancialInstrumentAxis",
28 "value": "us-gaap:CashMember"
29 },
30 "value": "17773000000"
31 },
32 {
33 "decimals": "-6",
34 "unitRef": "usd",
35 "period": {
36 "instant": "2020-09-26"
37 },
38 "segment": [
39 {
40 "dimension": "us-gaap:FairValueByFairValueHierarchyLevelAxis",
41 "value": "us-gaap:FairValueInputsLevel1Member"
42 },
43 {
44 "dimension": "us-gaap:FinancialInstrumentAxis",
45 "value": "us-gaap:MoneyMarketFundsMember"
46 }
47 ],
48 "value": "2171000000"
49 },
50 {
51 "decimals": "-6",
52 "unitRef": "usd",
53 "period": {
54 "instant": "2020-09-26"
55 },
56 "segment": {
57 "dimension": "us-gaap:FairValueByFairValueHierarchyLevelAxis",
58 "value": "us-gaap:FairValueInputsLevel1Member"
59 },
60 "value": "2171000000"
61 },
62 {
63 "decimals": "-6",
64 "unitRef": "usd",
65 "period": {
66 "instant": "2020-09-26"
67 },
68 "segment": [
69 {
70 "dimension": "us-gaap:FairValueByFairValueHierarchyLevelAxis",
71 "value": "us-gaap:FairValueInputsLevel2Member"
72 },
73 {
74 "dimension": "us-gaap:FinancialInstrumentAxis",
75 "value": "us-gaap:USTreasurySecuritiesMember"
76 }
77 ],
78 "value": "8580000000"
79 },
80 {
81 "decimals": "-6",
82 "unitRef": "usd",
83 "period": {
84 "instant": "2020-09-26"
85 },
86 "segment": [
87 {
88 "dimension": "us-gaap:FairValueByFairValueHierarchyLevelAxis",
89 "value": "us-gaap:FairValueInputsLevel2Member"
90 },
91 {
92 "dimension": "us-gaap:FinancialInstrumentAxis",
93 "value": "us-gaap:USGovernmentAgenciesDebtSecuritiesMember"
94 }
95 ],
96 "value": "2009000000"
97 },
98 {
99 "decimals": "-6",
100 "unitRef": "usd",
101 "period": {
102 "instant": "2020-09-26"
103 },
104 "segment": [
105 {
106 "dimension": "us-gaap:FairValueByFairValueHierarchyLevelAxis",
107 "value": "us-gaap:FairValueInputsLevel2Member"
108 },
109 {
110 "dimension": "us-gaap:FinancialInstrumentAxis",
111 "value": "us-gaap:ForeignGovernmentDebtSecuritiesMember"
112 }
113 ],
114 "value": "255000000"
115 },
116 {
117 "decimals": "-6",
118 "unitRef": "usd",
119 "period": {
120 "instant": "2020-09-26"
121 },
122 "segment": [
123 {
124 "dimension": "us-gaap:FairValueByFairValueHierarchyLevelAxis",
125 "value": "us-gaap:FairValueInputsLevel2Member"
126 },
127 {
128 "dimension": "us-gaap:FinancialInstrumentAxis",
129 "value": "us-gaap:BankTimeDepositsMember"
130 }
131 ],
132 "value": "4043000000"
133 },
134 {
135 "decimals": "-6",
136 "unitRef": "usd",
137 "period": {
138 "instant": "2020-09-26"
139 },
140 "segment": [
141 {
142 "dimension": "us-gaap:FairValueByFairValueHierarchyLevelAxis",
143 "value": "us-gaap:FairValueInputsLevel2Member"
144 },
145 {
146 "dimension": "us-gaap:FinancialInstrumentAxis",
147 "value": "us-gaap:CommercialPaperMember"
148 }
149 ],
150 "value": "3185000000"
151 },
152 {
153 "decimals": "-6",
154 "unitRef": "usd",
155 "period": {
156 "instant": "2020-09-26"
157 },
158 "segment": [
159 {
160 "dimension": "us-gaap:FairValueByFairValueHierarchyLevelAxis",
161 "value": "us-gaap:FairValueInputsLevel2Member"
162 },
163 {
164 "dimension": "us-gaap:FinancialInstrumentAxis",
165 "value": "us-gaap:CorporateDebtSecuritiesMember"
166 }
167 ],
168 "value": "0"
169 },
170 {
171 "decimals": "-6",
172 "unitRef": "usd",
173 "period": {
174 "instant": "2020-09-26"
175 },
176 "segment": [
177 {
178 "dimension": "us-gaap:FairValueByFairValueHierarchyLevelAxis",
179 "value": "us-gaap:FairValueInputsLevel2Member"
180 },
181 {
182 "dimension": "us-gaap:FinancialInstrumentAxis",
183 "value": "us-gaap:USStatesAndPoliticalSubdivisionsMember"
184 }
185 ],
186 "value": "0"
187 },
188 {
189 "decimals": "-6",
190 "unitRef": "usd",
191 "period": {
192 "instant": "2020-09-26"
193 },
194 "segment": [
195 {
196 "dimension": "us-gaap:FairValueByFairValueHierarchyLevelAxis",
197 "value": "us-gaap:FairValueInputsLevel2Member"
198 },
199 {
200 "dimension": "us-gaap:FinancialInstrumentAxis",
201 "value": "us-gaap:AssetBackedSecuritiesMember"
202 }
203 ],
204 "value": "0"
205 },
206 {
207 "decimals": "-6",
208 "unitRef": "usd",
209 "period": {
210 "instant": "2020-09-26"
211 },
212 "segment": {
213 "dimension": "us-gaap:FairValueByFairValueHierarchyLevelAxis",
214 "value": "us-gaap:FairValueInputsLevel2Member"
215 },
216 "value": "18072000000"
217 },
218 {
219 "decimals": "-6",
220 "unitRef": "usd",
221 "period": {
222 "instant": "2019-09-28"
223 },
224 "segment": {
225 "dimension": "us-gaap:FinancialInstrumentAxis",
226 "value": "us-gaap:CashMember"
227 },
228 "value": "12204000000"
229 },
230 {
231 "decimals": "-6",
232 "unitRef": "usd",
233 "period": {
234 "instant": "2019-09-28"
235 },
236 "segment": [
237 {
238 "dimension": "us-gaap:FairValueByFairValueHierarchyLevelAxis",
239 "value": "us-gaap:FairValueInputsLevel1Member"
240 },
241 {
242 "dimension": "us-gaap:FinancialInstrumentAxis",
243 "value": "us-gaap:MoneyMarketFundsMember"
244 }
245 ],
246 "value": "15897000000"
247 },
248 {
249 "decimals": "-6",
250 "unitRef": "usd",
251 "period": {
252 "instant": "2019-09-28"
253 },
254 "segment": {
255 "dimension": "us-gaap:FairValueByFairValueHierarchyLevelAxis",
256 "value": "us-gaap:FairValueInputsLevel1Member"
257 },
258 "value": "15897000000"
259 },
260 {
261 "decimals": "-6",
262 "unitRef": "usd",
263 "period": {
264 "instant": "2019-09-28"
265 },
266 "segment": [
267 {
268 "dimension": "us-gaap:FairValueByFairValueHierarchyLevelAxis",
269 "value": "us-gaap:FairValueInputsLevel2Member"
270 },
271 {
272 "dimension": "us-gaap:FinancialInstrumentAxis",
273 "value": "us-gaap:USTreasurySecuritiesMember"
274 }
275 ],
276 "value": "6165000000"
277 },
278 {
279 "decimals": "-6",
280 "unitRef": "usd",
281 "period": {
282 "instant": "2019-09-28"
283 },
284 "segment": [
285 {
286 "dimension": "us-gaap:FairValueByFairValueHierarchyLevelAxis",
287 "value": "us-gaap:FairValueInputsLevel2Member"
288 },
289 {
290 "dimension": "us-gaap:FinancialInstrumentAxis",
291 "value": "us-gaap:USGovernmentAgenciesDebtSecuritiesMember"
292 }
293 ],
294 "value": "6489000000"
295 },
296 {
297 "decimals": "-6",
298 "unitRef": "usd",
299 "period": {
300 "instant": "2019-09-28"
301 },
302 "segment": [
303 {
304 "dimension": "us-gaap:FairValueByFairValueHierarchyLevelAxis",
305 "value": "us-gaap:FairValueInputsLevel2Member"
306 },
307 {
308 "dimension": "us-gaap:FinancialInstrumentAxis",
309 "value": "us-gaap:ForeignGovernmentDebtSecuritiesMember"
310 }
311 ],
312 "value": "749000000"
313 },
314 {
315 "decimals": "-6",
316 "unitRef": "usd",
317 "period": {
318 "instant": "2019-09-28"
319 },
320 "segment": [
321 {
322 "dimension": "us-gaap:FairValueByFairValueHierarchyLevelAxis",
323 "value": "us-gaap:FairValueInputsLevel2Member"
324 },
325 {
326 "dimension": "us-gaap:FinancialInstrumentAxis",
327 "value": "us-gaap:BankTimeDepositsMember"
328 }
329 ],
330 "value": "2024000000"
331 },
332 {
333 "decimals": "-6",
334 "unitRef": "usd",
335 "period": {
336 "instant": "2019-09-28"
337 },
338 "segment": [
339 {
340 "dimension": "us-gaap:FairValueByFairValueHierarchyLevelAxis",
341 "value": "us-gaap:FairValueInputsLevel2Member"
342 },
343 {
344 "dimension": "us-gaap:FinancialInstrumentAxis",
345 "value": "us-gaap:CommercialPaperMember"
346 }
347 ],
348 "value": "5193000000"
349 },
350 {
351 "decimals": "-6",
352 "unitRef": "usd",
353 "period": {
354 "instant": "2019-09-28"
355 },
356 "segment": [
357 {
358 "dimension": "us-gaap:FairValueByFairValueHierarchyLevelAxis",
359 "value": "us-gaap:FairValueInputsLevel2Member"
360 },
361 {
362 "dimension": "us-gaap:FinancialInstrumentAxis",
363 "value": "us-gaap:CorporateDebtSecuritiesMember"
364 }
365 ],
366 "value": "123000000"
367 },
368 {
369 "decimals": "-6",
370 "unitRef": "usd",
371 "period": {
372 "instant": "2019-09-28"
373 },
374 "segment": [
375 {
376 "dimension": "us-gaap:FairValueByFairValueHierarchyLevelAxis",
377 "value": "us-gaap:FairValueInputsLevel2Member"
378 },
379 {
380 "dimension": "us-gaap:FinancialInstrumentAxis",
381 "value": "us-gaap:USStatesAndPoliticalSubdivisionsMember"
382 }
383 ],
384 "value": "0"
385 },
386 {
387 "decimals": "-6",
388 "unitRef": "usd",
389 "period": {
390 "instant": "2019-09-28"
391 },
392 "segment": [
393 {
394 "dimension": "us-gaap:FairValueByFairValueHierarchyLevelAxis",
395 "value": "us-gaap:FairValueInputsLevel2Member"
396 },
397 {
398 "dimension": "us-gaap:FinancialInstrumentAxis",
399 "value": "us-gaap:AssetBackedSecuritiesMember"
400 }
401 ],
402 "value": "0"
403 },
404 {
405 "decimals": "-6",
406 "unitRef": "usd",
407 "period": {
408 "instant": "2019-09-28"
409 },
410 "segment": {
411 "dimension": "us-gaap:FairValueByFairValueHierarchyLevelAxis",
412 "value": "us-gaap:FairValueInputsLevel2Member"
413 },
414 "value": "20743000000"
415 }
416 ],
417 "MarketableSecuritiesCurrent": [ "..." ],
418 "AccountsReceivableNetCurrent": [ "..." ],
419 "InventoryNet": [ "..." ],
420 "NontradeReceivablesCurrent": [ "..." ],
421 "OtherAssetsCurrent": [ "..." ],
422 "AssetsCurrent": [ "..." ],
423 "MarketableSecuritiesNoncurrent": [ "..." ],
424 "PropertyPlantAndEquipmentNet": [ "..." ],
425 "OtherAssetsNoncurrent": [ "..." ],
426 "AssetsNoncurrent": [ "..." ],
427 "Assets": [ "..." ],
428 "AccountsPayableCurrent": [ "..." ],
429 "OtherLiabilitiesCurrent": [ "..." ],
430 "ContractWithCustomerLiabilityCurrent": [ "..." ],
431 "CommercialPaper": [ "..." ],
432 "LongTermDebtCurrent": [ "..." ],
433 "LiabilitiesCurrent": [ "..." ],
434 "LongTermDebtNoncurrent": [ "..." ],
435 "OtherLiabilitiesNoncurrent": [ "..." ],
436 "LiabilitiesNoncurrent": [ "..." ],
437 "Liabilities": [ "..." ],
438 "CommitmentsAndContingencies": [ "..." ],
439 "CommonStocksIncludingAdditionalPaidInCapital": [ "..." ],
440 "RetainedEarningsAccumulatedDeficit": [ "..." ],
441 "AccumulatedOtherComprehensiveIncomeLossNetOfTax": [ "..." ],
442 "StockholdersEquity": [ "..." ],
443 "LiabilitiesAndStockholdersEquity": [ "..." ]
444 }
445 }

Response Example

The example shows the JSON version of Apple's 10-K XBRL filing filed on 29/10/2020 (shortened version):
https://www.sec.gov/Archives/edgar/data/320193/000032019320000096/aapl-20200926.htm

JSON
1 {
2 "CoverPage": {
3 "DocumentType": "10-K",
4 "DocumentAnnualReport": "true",
5 "DocumentPeriodEndDate": "2020-09-26",
6 "DocumentTransitionReport": "false",
7 "EntityFileNumber": "001-36743",
8 "EntityRegistrantName": "Apple Inc.",
9 "EntityIncorporationStateCountryCode": "CA",
10 "EntityTaxIdentificationNumber": "94-2404110",
11 "EntityAddressAddressLine1": "One Apple Park Way",
12 "EntityAddressCityOrTown": "Cupertino",
13 "EntityAddressStateOrProvince": "CA",
14 "EntityAddressPostalZipCode": "95014",
15 "CityAreaCode": "408",
16 "LocalPhoneNumber": "996-1010",
17 "Security12bTitle": [
18 {
19 "period": {
20 "startDate": "2019-09-29",
21 "endDate": "2020-09-26"
22 },
23 "segment": {
24 "dimension": "us-gaap:StatementClassOfStockAxis",
25 "value": "us-gaap:CommonStockMember"
26 },
27 "value": "Common Stock, $0.00001 par value per share"
28 },
29 {
30 "...": "... more items"
31 }
32 ],
33 "TradingSymbol": {
34 "period": {
35 "startDate": "2019-09-29",
36 "endDate": "2020-09-26"
37 },
38 "segment": {
39 "dimension": "us-gaap:StatementClassOfStockAxis",
40 "value": "us-gaap:CommonStockMember"
41 },
42 "value": "AAPL"
43 },
44 "NoTradingSymbolFlag": [
45 {
46 "period": {
47 "startDate": "2019-09-29",
48 "endDate": "2020-09-26"
49 },
50 "segment": {
51 "dimension": "us-gaap:StatementClassOfStockAxis",
52 "value": "aapl:A1.000NotesDue2022Member"
53 },
54 "value": "true"
55 },
56 {
57 "...": "... more items"
58 }
59 ],
60 "SecurityExchangeName": [
61 {
62 "period": {
63 "startDate": "2019-09-29",
64 "endDate": "2020-09-26"
65 },
66 "segment": {
67 "dimension": "us-gaap:StatementClassOfStockAxis",
68 "value": "us-gaap:CommonStockMember"
69 },
70 "value": "NASDAQ"
71 },
72 {
73 "...": "... more items"
74 }
75 ],
76 "EntityWellKnownSeasonedIssuer": "Yes",
77 "EntityVoluntaryFilers": "No",
78 "EntityCurrentReportingStatus": "Yes",
79 "EntityInteractiveDataCurrent": "Yes",
80 "EntityFilerCategory": "Large Accelerated Filer",
81 "EntitySmallBusiness": "false",
82 "EntityEmergingGrowthCompany": "false",
83 "IcfrAuditorAttestationFlag": "true",
84 "EntityShellCompany": "false",
85 "EntityPublicFloat": {
86 "decimals": "-6",
87 "unitRef": "usd",
88 "period": {
89 "instant": "2020-03-27"
90 },
91 "value": "1070633000000"
92 },
93 "EntityCommonStockSharesOutstanding": {
94 "decimals": "-3",
95 "unitRef": "shares",
96 "period": {
97 "instant": "2020-10-16"
98 },
99 "value": "17001802000"
100 },
101 "AmendmentFlag": "false",
102 "DocumentFiscalYearFocus": "2020",
103 "DocumentFiscalPeriodFocus": "FY",
104 "EntityCentralIndexKey": "0000320193",
105 "CurrentFiscalYearEndDate": "--09-26"
106 },
107 "StatementsOfIncome": {
108 "RevenueFromContractWithCustomerExcludingAssessedTax": [
109 {
110 "decimals": "-6",
111 "unitRef": "usd",
112 "period": {
113 "startDate": "2019-09-29",
114 "endDate": "2020-09-26"
115 },
116 "segment": {
117 "dimension": "srt:ProductOrServiceAxis",
118 "value": "us-gaap:ProductMember"
119 },
120 "value": "220747000000"
121 },
122 {
123 "decimals": "-6",
124 "unitRef": "usd",
125 "period": {
126 "startDate": "2018-09-30",
127 "endDate": "2019-09-28"
128 },
129 "segment": {
130 "dimension": "srt:ProductOrServiceAxis",
131 "value": "us-gaap:ProductMember"
132 },
133 "value": "213883000000"
134 },
135 "... more items"
136 ],
137 "CostOfGoodsAndServicesSold": [ "..." ],
138 "GrossProfit": [ "..." ],
139 "ResearchAndDevelopmentExpense": [ "..." ],
140 "SellingGeneralAndAdministrativeExpense": [ "..." ],
141 "OperatingExpenses": [ "..." ],
142 "OperatingIncomeLoss": [ "..." ],
143 "NonoperatingIncomeExpense": [ "..." ],
144 "IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest": [ "..." ],
145 "IncomeTaxExpenseBenefit": [ "..." ],
146 "NetIncomeLoss": [ "..." ],
147 "EarningsPerShareBasic": [ "..." ],
148 "EarningsPerShareDiluted": [ "..." ],
149 "WeightedAverageNumberOfSharesOutstandingBasic": [ "..." ],
150 "WeightedAverageNumberOfDilutedSharesOutstanding": [ "..." ]
151 },
152 "StatementsOfComprehensiveIncome": {
153 "NetIncomeLoss": [ "..." ],
154 "OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax": [ "..." ],
155 "OtherComprehensiveIncomeLossDerivativeInstrumentGainLossbeforeReclassificationafterTax": {
156 "decimals": "-6",
157 "unitRef": "usd",
158 "period": {
159 "startDate": "2019-09-29",
160 "endDate": "2020-09-26"
161 },
162 "value": "79000000"
163 },
164 "OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodNetOfTax": [ "..." ],
165 "OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax": { "...": "..." },
166 "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesNetOfTax": [ "..." ],
167 "OtherComprehensiveIncomeLossDerivativeInstrumentGainLossafterReclassificationandTax": { "...": "..." },
168 "OtherComprehensiveIncomeLossDerivativesQualifyingAsHedgesNetOfTax": [ "..." ],
169 "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax": [ "..." ],
170 "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax": [ "..." ],
171 "OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax": [ "..." ],
172 "OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent": [ "..." ],
173 "ComprehensiveIncomeNetOfTax": [ "..." ]
174 },
175 "BalanceSheets": {
176 "CashAndCashEquivalentsAtCarryingValue": [ "..." ],
177 "MarketableSecuritiesCurrent": [ "..." ],
178 "AccountsReceivableNetCurrent": [ "..." ],
179 "InventoryNet": [ "..." ],
180 "NontradeReceivablesCurrent": [ "..." ],
181 "OtherAssetsCurrent": [ "..." ],
182 "AssetsCurrent": [ "..." ],
183 "MarketableSecuritiesNoncurrent": [ "..." ],
184 "PropertyPlantAndEquipmentNet": [ "..." ],
185 "OtherAssetsNoncurrent": [ "..." ],
186 "AssetsNoncurrent": [ "..." ],
187 "Assets": [ "..." ],
188 "AccountsPayableCurrent": [ "..." ],
189 "OtherLiabilitiesCurrent": [ "..." ],
190 "ContractWithCustomerLiabilityCurrent": [ "..." ],
191 "CommercialPaper": [ "..." ],
192 "LongTermDebtCurrent": [ "..." ],
193 "LiabilitiesCurrent": [ "..." ],
194 "LongTermDebtNoncurrent": [ "..." ],
195 "OtherLiabilitiesNoncurrent": [ "..." ],
196 "LiabilitiesNoncurrent": [ "..." ],
197 "Liabilities": [ "..." ],
198 "CommitmentsAndContingencies": [ "..." ],
199 "CommonStocksIncludingAdditionalPaidInCapital": [ "..." ],
200 "RetainedEarningsAccumulatedDeficit": [ "..." ],
201 "AccumulatedOtherComprehensiveIncomeLossNetOfTax": [ "..." ],
202 "StockholdersEquity": [ "..." ],
203 "LiabilitiesAndStockholdersEquity": [ "..." ]
204 },
205 "BalanceSheetsParenthetical": {
206 "CommonStockParOrStatedValuePerShare": [ "..." ],
207 "CommonStockSharesAuthorized": [ "..." ],
208 "CommonStockSharesIssued": [ "..." ],
209 "CommonStockSharesOutstanding": [ "..." ]
210 },
211 "StatementsOfShareholdersEquity": {
212 "StockholdersEquity": [ "..." ],
213 "StockIssuedDuringPeriodValueNewIssues": [ "..." ],
214 "AdjustmentsRelatedToTaxWithholdingForShareBasedCompensation": [ "..." ],
215 "AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue": [ "..." ],
216 "NetIncomeLoss": [ "..." ],
217 "Dividends": [ "..." ],
218 "StockRepurchasedAndRetiredDuringPeriodValue": [ "..." ],
219 "OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent": [ "..." ],
220 "CommonStockDividendsPerShareDeclared": [ "..." ]
221 },
222 "StatementsOfCashFlows": {
223 "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents": [ "..." ],
224 "NetIncomeLoss": [ "..." ],
225 "DepreciationDepletionAndAmortization": [ "..." ],
226 "ShareBasedCompensation": [ "..." ],
227 "DeferredIncomeTaxExpenseBenefit": [ "..." ],
228 "OtherNoncashIncomeExpense": [ "..." ],
229 "IncreaseDecreaseInAccountsReceivable": [ "..." ],
230 "IncreaseDecreaseInInventories": [ "..." ],
231 "IncreaseDecreaseInOtherReceivables": [ "..." ],
232 "IncreaseDecreaseInOtherOperatingAssets": [ "..." ],
233 "IncreaseDecreaseInAccountsPayable": [ "..." ],
234 "IncreaseDecreaseInContractWithCustomerLiability": [ "..." ],
235 "IncreaseDecreaseInOtherOperatingLiabilities": [ "..." ],
236 "NetCashProvidedByUsedInOperatingActivities": [ "..." ],
237 "PaymentsToAcquireAvailableForSaleSecuritiesDebt": [ "..." ],
238 "ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities": [ "..." ],
239 "ProceedsFromSaleOfAvailableForSaleSecuritiesDebt": [ "..." ],
240 "PaymentsToAcquirePropertyPlantAndEquipment": [ "..." ],
241 "PaymentsToAcquireBusinessesNetOfCashAcquired": [ "..." ],
242 "PaymentsToAcquireOtherInvestments": [ "..." ],
243 "ProceedsFromSaleAndMaturityOfOtherInvestments": [ "..." ],
244 "PaymentsForProceedsFromOtherInvestingActivities": [ "..." ],
245 "NetCashProvidedByUsedInInvestingActivities": [ "..." ],
246 "ProceedsFromIssuanceOfCommonStock": [ "..." ],
247 "PaymentsRelatedToTaxWithholdingForShareBasedCompensation": [ "..." ],
248 "PaymentsOfDividends": [ "..." ],
249 "PaymentsForRepurchaseOfCommonStock": [ "..." ],
250 "ProceedsFromIssuanceOfLongTermDebt": [ "..." ],
251 "RepaymentsOfLongTermDebt": [ "..." ],
252 "ProceedsFromRepaymentsOfCommercialPaper": [ "..." ],
253 "ProceedsFromPaymentsForOtherFinancingActivities": [ "..." ],
254 "NetCashProvidedByUsedInFinancingActivities": [ "..." ],
255 "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect": [ "..." ],
256 "IncomeTaxesPaidNet": [ "..." ],
257 "InterestPaidNet": [ "..." ]
258 },
259 "SummaryofSignificantAccountingPolicies": {
260 "BasisOfPresentationAndSignificantAccountingPoliciesTextBlock": "Summary of Significant Accounting Policies<div style=\"margin-top:9pt;text-align:justify\"><span style"
261 },
262 "SummaryofSignificantAccountingPoliciesPolicies": {
263 "BasisOfAccountingPolicyPolicyTextBlock": "...",
264 "FiscalPeriod": "...",
265 "StockSplitPolicyPolicyTextBlock": "...",
266 "NewAccountingPronouncementsPolicyPolicyTextBlock": "...",
267 "AdvertisingCostsPolicyTextBlock": "...",
268 "CompensationRelatedCostsPolicyTextBlock": "...",
269 "EarningsPerSharePolicyTextBlock": "...",
270 "CashAndCashEquivalentsPolicyTextBlock": "...",
271 "InventoryPolicyTextBlock": "...",
272 "PropertyPlantAndEquipmentPolicyTextBlock": "...",
273 "EquitySecuritiesWithoutReadilyDeterminableFairValuePolicyTextBlock": "...",
274 "RestrictedCashandRestrictedMarketableSecuritiesPolicyTextBlock": "...",
275 "FairValueMeasurementPolicyPolicyTextBlock": "...",
276 "RevenueRecognitionPolicyTextBlock": "...",
277 "DerivativesPolicyTextBlock": "...",
278 "IncomeTaxPolicyTextBlock": "...",
279 "SegmentReportingPolicyPolicyTextBlock": "...",
280 "LesseeLeasesPolicyTextBlock": "..."
281 },
282 "SummaryofSignificantAccountingPoliciesTables": {
283 "ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock": "..."
284 },
285 "SummaryofSignificantAccountingPoliciesAdditionalInformationDetails": {
286 "StockholdersEquityNoteStockSplitConversionRatio1": { "...": "..." },
287 "OperatingandFinanceLeaseRightofUseAsset": [ "..." ],
288 "OperatingandFinanceLeaseLiability": [ "..." ],
289 "StockholdersEquity": [ "..." ],
290 "AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount": { "...": "..." },
291 "PropertyPlantAndEquipmentUsefulLife": [ "..." ],
292 "Depreciation": [ "..." ],
293 "NonCashActivitiesInvolvingPropertyPlantandEquipmentNetIncreaseDecreasetoAccountsPayableandOtherCurrentLiabilities": [ "..." ]
294 },
295 "SummaryofSignificantAccountingPoliciesComputationofBasicandDilutedEarningsPerShareDetails": {
296 "NetIncomeLoss": [ "..." ],
297 "WeightedAverageNumberOfSharesOutstandingBasic": [ "..." ],
298 "WeightedAverageNumberDilutedSharesOutstandingAdjustment": [ "..." ],
299 "WeightedAverageNumberOfDilutedSharesOutstanding": [ "..." ],
300 "EarningsPerShareBasic": [ "..." ],
301 "EarningsPerShareDiluted": [ "..." ]
302 },
303 "RevenueRecognition": {
304 "RevenueFromContractWithCustomerTextBlock": "..."
305 },
306 "RevenueRecognitionTables": {
307 "DisaggregationOfRevenueTableTextBlock": "..."
308 },
309 "RevenueRecognitionAdditionalInformationDetails": {
310 "PerformanceObligationsinArrangements": { "...": "..." },
311 "ContractWithCustomerLiability": [ "..." ]
312 },
313 "RevenueRecognitionDeferredRevenueExpectedTimingofRealizationDetails": {
314 "RevenueRemainingPerformanceObligationPercentage": [ "..." ],
315 "RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1": [ "..." ]
316 },
317 "RevenueRecognitionNetSalesDisaggregatedbySignificantProductsandServicesDetails": {
318 "RevenueFromContractWithCustomerExcludingAssessedTax": [ "..." ],
319 "ContractWithCustomerLiabilityRevenueRecognized": [ "..." ]
320 },
321 "FinancialInstruments": {
322 "FinancialInstrumentsDisclosureTextBlock": "..."
323 },
324 "FinancialInstrumentsTables": {
325 "ScheduleOfCashCashEquivalentsAndShortTermInvestmentsTableTextBlock": "...",
326 "ScheduleOfRestrictedCashAndCashEquivalentsTextBlock": "...",
327 "ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock": "...",
328 "ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock": "...",
329 "ScheduleOfFairValueHedgingInstrumentsStatementsOfFinancialPerformanceAndFinancialPositionLocationTableTextBlock": "...",
330 "NotionalAndCreditRiskAmountsOfOutstandingDerivativePositionsDisclosureTableTextBlock": "..."
331 },
332 "FinancialInstrumentsCashCashEquivalentsandMarketableSecuritiesDetails": {
333 "AvailableForSaleDebtSecuritiesAmortizedCostBasis": [ "..." ],
334 "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax": [ "..." ],
335 "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax": [ "..." ],
336 "AvailableForSaleSecuritiesDebtSecurities": [ "..." ],
337 "CashAndCashEquivalentsAtCarryingValue": [ "..." ],
338 "MarketableSecuritiesCurrent": [ "..." ],
339 "MarketableSecuritiesNoncurrent": [ "..." ],
340 "RestrictedInvestments": [ "..." ]
341 },
342 "...": "... more items"
343 }


FAQ

Common questions about querying the XBRL to JSON Converter API, the response shape, and the bulk archives.

How do I pull a company's annual revenue, net income, and EPS straight from its 10-K filing without scraping the HTML?

Send the 10-K to the /xbrl-to-json endpoint and pull the figures out of the standardized income statement object. The endpoint accepts the SEC filing URL (htm-url), the XBRL instance URL (xbrl-url), or the accession number (accession-no), and returns one JSON document containing every XBRL fact in the filing.

Annual revenue is reported under the income statement object (StatementsOfIncome.RevenueFromContractWithCustomerExcludingAssessedTax), net income under StatementsOfIncome.NetIncomeLoss, and earnings per share under StatementsOfIncome.EarningsPerShareBasic and StatementsOfIncome.EarningsPerShareDiluted. Each of these is an array, where every entry carries a value together with period.startDate and period.endDate. To get the full-year figure, pick the entry whose period spans roughly twelve months and that has no segment key — that is the consolidated total.

How do I convert an XBRL filing to JSON when I only have the SEC accession number?

Call the /xbrl-to-json endpoint with the accession-no parameter set to the dashed accession number, for example 0001564590-21-004599. The converter looks up the matching XBRL instance document on EDGAR and returns the same JSON structure it would produce for a direct htm-url or xbrl-url input, so no other identifier is needed.

How do I authenticate calls to the XBRL converter — can I use a header instead of a query string?

The /xbrl-to-json endpoint accepts the API key in two equivalent ways. The key can be set as the value of an Authorization header, or it can be carried on the URL itself as ?token=YOUR_API_KEY. Either form authenticates the same call, so the header path is available whenever a URL-embedded secret is undesirable.

How do I get the JSON for a filing when all I have is the SEC's HTML filing page URL or its index page URL?

Provide the URL to the /xbrl-to-json endpoint as the htm-url parameter. The parameter accepts both the URL of the primary filing document ending in .htm (for example tsla-10k_20201231.htm) and the URL of the EDGAR filing index page ending in -index.html. Either form is resolved to the underlying XBRL instance document and returned as the same JSON response.

How do I extract Apple's iPhone revenue versus Mac revenue versus Services revenue for a given fiscal year?

Convert Apple's 10-K with the /xbrl-to-json endpoint and walk the revenue array on the income statement (StatementsOfIncome.RevenueFromContractWithCustomerExcludingAssessedTax). Product-line breakdowns are tagged with a segment whose dimension is the product-or-service axis — the value of segment.dimension is srt:ProductOrServiceAxis — and the entry's segment.value identifies the product. iPhone revenue appears where segment.value is aapl:IPhoneMember, Mac revenue where it is aapl:MacMember, and Services revenue where it is us-gaap:ServiceMember. iPad and wearables sit alongside under aapl:IPadMember and aapl:WearablesHomeandAccessoriesMember.

To isolate a single fiscal year, additionally restrict to the entries whose period.startDate and period.endDate span that year — for fiscal 2020 the period runs from 2019-09-29 to 2020-09-26. The reported amounts use a unitRef of usd and a decimals of -6, meaning the last six digits are rounded to whole units of dollars.

How do I break a company's revenue down by geography (US, China, Europe, Japan) for trend analysis?

Convert the filing with /xbrl-to-json and pick the revenue entries on the income statement (StatementsOfIncome.RevenueFromContractWithCustomerExcludingAssessedTax) whose segment.dimension is the geographic axis srt:StatementGeographicalAxis or the business-segments axis us-gaap:StatementBusinessSegmentsAxis. The segment.value identifies the region: country codes such as country:US and country:CN on the geographical axis, and registrant-defined members such as aapl:AmericasSegmentMember, aapl:EuropeSegmentMember, aapl:GreaterChinaSegmentMember, and aapl:JapanSegmentMember on the segments axis.

To build a trend, repeat the conversion for each year's 10-K and group entries by segment.value, using period.startDate and period.endDate to align them on the same fiscal calendar.

How do I tell which revenue figure is the consolidated total and which ones are sub-segments?

In the JSON returned by /xbrl-to-json, every fact on a financial-statement object is an array entry that may or may not carry a segment key. The consolidated total for a given period is the entry that has no segment at all — only period, unitRef, decimals, and value. Entries that include a segment object (or a segment array of dimension/value pairs) are slices of the total along axes such as product, geography, or business segment, and should not be added to the total. Filter on the presence of segment to keep totals and breakdowns separate.

How do I compute quarterly revenue when the filing reports both annual and quarterly periods together?

After converting the filing with /xbrl-to-json, walk the revenue array on the income statement (StatementsOfIncome.RevenueFromContractWithCustomerExcludingAssessedTax) and filter by the duration of each entry's period. The difference between period.endDate and period.startDate is roughly twelve months for annual entries, three months for quarterly entries, and three or six or nine months for year-to-date entries. Keep only the entries whose duration is around three months to isolate quarterly figures, and discard segment-bearing entries if a single consolidated quarter is desired.

How do I get a point-in-time balance sheet value such as cash on hand at quarter-end?

Convert the filing with /xbrl-to-json and read the balance-sheet object (BalanceSheets). Balance-sheet items such as cash (BalanceSheets.CashAndCashEquivalentsAtCarryingValue) are arrays whose entries use a point-in-time period rather than a date range: each entry has period.instant set to the balance-sheet date (for example 2020-09-26) instead of period.startDate and period.endDate. Pick the entry whose period.instant matches the quarter-end and that carries no segment key to get the consolidated cash balance on that date.

How do I find the latest 10-K filings that actually have XBRL data attached so I can feed them into the converter?

Use the Filing Query API at /query-api to list 10-K filings that carry an XBRL instance document, then hand each result off to /xbrl-to-json. The search restricts the form type to 10-K and requires the dataFiles array to contain an item whose description is XBRL INSTANCE DOCUMENT; sort the results by filing date descending to get the most recent filings first.

Each returned filing includes an accessionNo that can be fed straight into /xbrl-to-json as the accession-no parameter, or its dataFiles entry for the XBRL instance can be fed as xbrl-url.

Open in Data Browser

How do I locate the XBRL instance document URL for a filing returned by the Query API?

On each filing object returned by /query-api, look through the dataFiles array for the entry whose description is EXTRACTED XBRL INSTANCE DOCUMENT. That entry's URL points to the .xml instance document on EDGAR and is the value to use as the xbrl-url input to /xbrl-to-json. Filings without such a dataFiles entry are not XBRL-tagged and cannot be converted.

Open in Data Browser

How do I extract a company's ticker symbol, exchange listing, and SEC central index key from its annual report?

Convert the 10-K with /xbrl-to-json and read three fields on the cover-page object. The ticker is reported on CoverPage.TradingSymbol (for example AAPL), the exchange listing on CoverPage.SecurityExchangeName (for example NASDAQ), and the SEC central index key on CoverPage.EntityCentralIndexKey (for example 0000320193). When a company has multiple classes of securities, TradingSymbol and SecurityExchangeName become arrays whose entries carry a segment that identifies the class via the class-of-stock axis us-gaap:StatementClassOfStockAxis.

How do I determine the fiscal year and fiscal period that a filing covers?

After converting the filing with /xbrl-to-json, read the three fiscal-period fields on the cover-page object. The fiscal year is on CoverPage.DocumentFiscalYearFocus (for example 2020), the fiscal-period code is on CoverPage.DocumentFiscalPeriodFocus (FY for annual reports, and Q1, Q2, or Q3 for quarterly ones), and the last day of the period is on CoverPage.DocumentPeriodEndDate (for example 2020-09-26).

How do I tell if a filing is an amendment to a previously filed report?

After converting the filing with /xbrl-to-json, check the amendment flag on the cover-page object: the value of CoverPage.AmendmentFlag should be true for an amendment and false otherwise. The document-type field corroborates this — amended forms carry the /A suffix on CoverPage.DocumentType (for example 10-K/A, 10-Q/A, or 20-F/A), and the converter handles all of these amended variants the same way it handles the originals.

How do I read the reported value correctly when XBRL says decimals is -6 — does that mean the figure is already in millions?

In the JSON returned by /xbrl-to-json, the value on every fact is always the raw figure in full units (dollars or shares), not a scaled number. The decimals attribute only tells the reader how many digits at the end of the number are rounded: a decimals of -6 means the last six digits are rounded, so a value of 245122000000 should be read as approximately 245.122 billion dollars rather than as 245,122 of anything. To present the figure in millions, divide by one million in the consumer code; do not interpret a decimals of -6 as the value already being in millions.

How do I confirm the currency of a reported amount before comparing numbers across foreign issuers?

Every fact returned by /xbrl-to-json carries a unit reference on the unitRef field that identifies what the value is measured in. Monetary amounts use a currency code such as usd, while share counts use shares (as on CoverPage.EntityCommonStockSharesOutstanding). Before comparing two issuers' numbers, confirm that both facts share the same unitRef; foreign filers reporting in other currencies will carry a different code and need to be converted before they can be compared on a like-for-like basis.

How do I pull cash flow from operations, investing, and financing for a DCF model?

Convert the 10-K with /xbrl-to-json and read three fields on the cash-flow object (StatementsOfCashFlows). Operating cash flow is on StatementsOfCashFlows.NetCashProvidedByUsedInOperatingActivities, investing cash flow on StatementsOfCashFlows.NetCashProvidedByUsedInInvestingActivities, and financing cash flow on StatementsOfCashFlows.NetCashProvidedByUsedInFinancingActivities. Each is an array of period entries; keep the entry whose period.startDate to period.endDate covers the full fiscal year and that has no segment to get the consolidated annual total for the DCF base.

How do I get a company's diluted earnings per share and weighted average diluted share count for valuation work?

After converting the filing with /xbrl-to-json, read two fields on the income-statement object. Diluted earnings per share are on StatementsOfIncome.EarningsPerShareDiluted, and the matching weighted-average diluted share count is on StatementsOfIncome.WeightedAverageNumberOfDilutedSharesOutstanding. Both are arrays of period entries — match them by period.startDate and period.endDate so the EPS and share count come from the same period, and check unitRef (usd per share for EPS, shares for the share count) before using the values.

How do I extract dividends declared per share and total dividends paid?

After converting the filing with /xbrl-to-json, read dividends declared on the shareholders'-equity object (StatementsOfShareholdersEquity.CommonStockDividendsPerShareDeclared) and total dividends paid on the cash-flow object (StatementsOfCashFlows.PaymentsOfDividends). The per-share figure is reported in usd per share, while the paid amount is reported in usd with a positive or negative sign depending on the issuer's convention; both fields are period arrays that need to be matched on period.startDate and period.endDate before combining.

How do I calculate share buybacks for the period from a 10-K?

After converting the 10-K with /xbrl-to-json, read the cash outflow for repurchases on the cash-flow object (StatementsOfCashFlows.PaymentsForRepurchaseOfCommonStock) for the dollar amount used to buy back stock. The shareholders'-equity object also reports the matching reduction in equity from retiring repurchased shares (StatementsOfShareholdersEquity.StockRepurchasedAndRetiredDuringPeriodValue). Each is a period array; pick the entries whose period.startDate and period.endDate span the fiscal year of interest.

How do I retrieve total assets, total liabilities, and shareholders' equity in one call?

One call to /xbrl-to-json returns the entire balance sheet at once. Total assets are on BalanceSheets.Assets, total liabilities on BalanceSheets.Liabilities, and shareholders' equity on BalanceSheets.StockholdersEquity. Each field is an array of point-in-time entries; pick the entry whose period.instant matches the balance-sheet date of interest and that has no segment to get the consolidated total.

How do I get the company's public float and shares outstanding for market-cap calculations?

After converting the filing with /xbrl-to-json, read two cover-page fields. The public float is on CoverPage.EntityPublicFloat and is reported in usd at a specific period.instant (typically the last business day of the second fiscal quarter). Shares outstanding are on CoverPage.EntityCommonStockSharesOutstanding and are reported in shares at a different period.instant close to the filing date. Use the period.instant on each field to know exactly which date the number is anchored to before combining them for a market-cap estimate.

How do I check whether a company is a large accelerated filer, smaller reporting company, or emerging growth company?

After converting the filing with /xbrl-to-json, read three cover-page fields. The filer category is on CoverPage.EntityFilerCategory and takes one of the SEC categories such as Large Accelerated Filer. The smaller-reporting-company flag is on CoverPage.EntitySmallBusiness and the emerging-growth-company flag on CoverPage.EntityEmergingGrowthCompany; both are reported as true or false strings. The three together identify the issuer's reporting status.

How do I pull data from foreign issuers that file 20-F or 40-F instead of 10-K?

The /xbrl-to-json endpoint converts foreign-issuer XBRL the same way it converts domestic 10-Ks. Supported form types include 20-F, 20-F/A, 40-F, and 40-F/A, along with their 20FR12B, 20FR12G, 40FR12B, and 40FR12G registration variants. Provide the filing's URL (htm-url), the XBRL instance URL (xbrl-url), or the accession number (accession-no) and the response carries the same statement objects (StatementsOfIncome, BalanceSheets, StatementsOfCashFlows) plus the CoverPage regardless of which form was filed. Be mindful that foreign issuers may report in a non-USD currency, so check unitRef before comparing numbers across filers.

How do I extract financial highlights from mutual fund or ETF prospectus filings?

Investment-company prospectuses such as 485BPOS, 485APOS, N-1A, and N-2 are listed as supported XBRL filing types and are converted by the same /xbrl-to-json endpoint. Provide the filing's URL (htm-url), the XBRL instance URL (xbrl-url), or the accession number (accession-no); the response includes the cover-page object and any risk-return summary and financial-highlights items the fund tagged in XBRL.

How do I parse XBRL from S-1 IPO filings to capture pre-IPO financials?

The /xbrl-to-json endpoint accepts S-1, S-1/A, and S-1MEF filings in addition to annual and quarterly reports. Provide the registration statement's URL (htm-url), XBRL instance URL (xbrl-url), or accession number (accession-no); the response carries the same financial-statement objects (StatementsOfIncome, BalanceSheets, StatementsOfCashFlows) and CoverPage so the pre-IPO figures can be read with the same field paths as a 10-K.

How do I capture extra company-specific items that aren't part of standard US GAAP?

In the JSON returned by /xbrl-to-json, company-specific extensions appear alongside the US GAAP items inside the same statement object. The converter strips the us-gaap_ prefix from standard items (so us-gaap_SalesRevenueGoodsNet becomes SalesRevenueGoodsNet) but leaves custom items under their original company taxonomy name, which is typically prefixed with the issuer's ticker. To capture them, walk every key on each statement object — not just a hard-coded list of GAAP names — and keep keys whose name is unfamiliar; those are the issuer's custom items.

How do I handle the case where a statement name varies across filers, e.g. "Consolidated Statements of Operations" vs "Consolidated Statements of Loss Income"?

The converter normalizes statement names before returning the JSON, so the consumer does not have to special-case each filer. Variants such as ConsolidatedStatementsofOperations and ConsolidatedStatementsOfLossIncome are auto-renamed to the canonical root StatementsOfIncome. The full set of normalized roots returned by /xbrl-to-json includes StatementsOfIncome, StatementsOfComprehensiveIncome, BalanceSheets, StatementsOfCashFlows, and StatementsOfShareholdersEquity (each with a matching *Parenthetical companion), which means the same field paths work across filers.

How do I capture data tagged with multiple simultaneous dimensions, like a fair-value-level-2 commercial paper line on the balance sheet?

On any fact returned by /xbrl-to-json, the segment key can be either an object or an array of objects. A single-dimension breakdown carries one pair of segment.dimension and segment.value — for example a fair-value-hierarchy slice where segment.dimension is us-gaap:FairValueByFairValueHierarchyLevelAxis and segment.value is us-gaap:FairValueInputsLevel2Member. When a line is tagged on more than one axis at the same time — such as a Level 2 commercial paper position that combines the fair-value-level axis with the financial-instrument axis (us-gaap:FinancialInstrumentAxis set to us-gaap:CommercialPaperMember) — segment is the array form, and every {dimension, value} pair in it must match the criteria before the fact is treated as the intended slice. Read every fact as if segment could be either shape.

How quickly is XBRL JSON available after a filing is published on EDGAR, and how far back does the dataset go for historical backtests?

New filings are converted by /xbrl-to-json in under 300 milliseconds after they are published on EDGAR, so the JSON is available essentially in real time for live workflows. Historical coverage starts in 2005 and runs to the present across every XBRL-friendly filing type, and the dataset is survivorship-bias free — filings from filers that are no longer active are retained alongside those from active filers — which makes it suitable for backtests that need to avoid look-ahead and survivorship effects.

References

Regulations