API Documentation

Query API

Insider Transactions API

Form D API

Download and PDF Generator API

XBRL to JSON Converter API

Mapping API

Form 3, 4, 5 Parse API

SRO Filings Database

XBRL to JSON Converter API

Effortlessly parse and standardize XBRL data, converting it into a standardized JSON format within seconds without the need for coding. Quickly extract financial statements from annual and quarterly reports, such as 10-K, 10-Q, and 8-K documents

Dataset Size: All SEC EDGAR filings, exhibits, and attachments filed since 1993.

Data Update Frequency: Less than 300 milliseconds.

API Endpoint

https://api.secfilingdata.com/v1/filings/XbrlToJson/

Supported HTTP methods: GET

Authentication

To authenticate and access the XBRL to Json API, use the API key provided in your user profile after signing up.

1. Set as Authorization Header: Before making a POST request to `https://api.secfilingdata.com/xbrl-to-json-convertor`, set the Authorization header in your request to `YOUR_API_KEY`.

Request Parameters

There are 2 ways to convert XBRL to JSON:.

1. htm file: Provide the URL of the filing ending with either .htm or .html. Both direct links to the filing and the index page are acceptable.

Example

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 file: Provide the URL of the filing XBRL file ending with .xml.

Example

https://www.sec.gov/Archives/edgar/data/1318605/000156459021004599/tsla-10k_20201231_htm.xml

Response Format

The response represents a JSON object containing all financial statements, the cover page, and any custom items that the company deems important for publication.

Standardized financial statements are:

  • StatementsOfIncome
  • BalanceSheets
  • StatementsOfCashFlows
  • StatementsOfShareholdersEquity
Response Example

The example shows the JSON version of Tesla's 10-K XBRL filing filed on 31/12/2020: https://www.sec.gov/Archives/edgar/data/1318605/000156459021004599/tsla-10k_20201231_htm.xml