Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

sec-edgar XBRL API

Structured XBRL financial data

sec-edgar XBRL API is one of 5 APIs that sec-edgar publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include XBRL. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

This API exposes 3 operations across 3 paths, and defines 4 schemas. It is described by OpenAPI 3.1.0, at version 1.0.0.

Requests are made against 2 base URLs: https://data.sec.gov, https://efts.sec.gov.

3 operations 3 paths 4 schemas 3 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.0.0
Base URL
https://efts.sec.gov
Resource Areas
1

Paths & Operations 3

Across 3 paths, the API surfaces 3 operations — 3 GET. Each is listed below with its method, path, parameters, and response codes.

XBRL 3

Structured XBRL financial data

GET
/api/xbrl/companyfacts/CIK{cik}.json
Get all XBRL facts for a company
getCompanyFacts 1 param → 200404
GET
/api/xbrl/companyconcept/CIK{cik}/{taxonomy}/{concept}.json
Get a single XBRL concept for a company
getCompanyConcept 3 params → 200404
GET
/api/xbrl/frames/{taxonomy}/{concept}/{unit}/{period}.json
Get all company values for a concept in a period
getXBRLFrames 4 params → 200

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are XBRLFact (9 properties), XBRLFrames (8 properties), CompanyConcept (7 properties), CompanyFacts (3 properties). Each schema is shown below with its type and property counts.

CompanyFacts
object
3 properties
CompanyConcept
object
7 properties
XBRLFact
object
9 properties
XBRLFrames
object
8 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

sec-edgar-xbrl-api-openapi.yml Raw ↑

Other APIs sec-edgar publishes across the network.

SEC EDGAR Company Filings API
sec-edgar Company Facts API
sec-edgar Full-Text Search API
sec-edgar Submissions API