SEC EDGAR Company Facts API

XBRL financial disclosures for a company

Operations 1

GET /api/xbrl/companyfacts/CIK{cik}.json Get all XBRL facts for a company #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/sec-company-facts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

sec-company-facts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SEC EDGAR Data Company Facts API
  description: 'The EDGAR Data API at data.sec.gov provides RESTful access to public company financial filings, XBRL structured financial data, and company metadata without requiring authentication or API keys. The API delivers JSON-formatted responses covering company submissions (filing history), XBRL financial facts across all reporting periods, single XBRL concept values over time, and cross-company comparative frames for US-GAAP and IFRS taxonomies.

    '
  version: 1.0.0
  contact:
    name: SEC EDGAR Help
    url: https://www.sec.gov/cgi-bin/browse-edgar?action=getcompany
  license:
    name: Public Domain
    url: https://www.sec.gov/privacy.htm
  termsOfService: https://www.sec.gov/privacy.htm
servers:
- url: https://data.sec.gov
  description: SEC EDGAR Data API
tags:
- name: Company Facts
  description: XBRL financial disclosures for a company
paths:
  /api/xbrl/companyfacts/CIK{cik}.json:
    get:
      operationId: getCompanyFacts
      summary: Get all XBRL facts for a company
      description: 'Returns all XBRL disclosures for a company across all reporting periods, organized by taxonomy (us-gaap, ifrs-full, dei, srt) and concept name. Each concept contains an array of facts with values, units, filing accession numbers, and period dates. This is the primary endpoint for retrieving historical financial statement data for a given company.

        '
      tags:
      - Company Facts
      parameters:
      - name: cik
        in: path
        required: true
        description: 'Central Index Key (CIK) with leading zeros to reach 10 digits.

          '
        schema:
          type: string
          pattern: ^\d{10}$
          example: 0000320193
      responses:
        '200':
          description: All XBRL facts for the company
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyFacts'
        '404':
          description: Company not found
        '429':
          description: Rate limit exceeded
components:
  schemas:
    CompanyFacts:
      type: object
      description: All XBRL disclosures for a company across all reporting periods
      properties:
        cik:
          type: integer
          description: Central Index Key as integer
          example: 320193
        entityName:
          type: string
          description: Company name
          example: Apple Inc.
        facts:
          type: object
          description: Facts organized by taxonomy then concept name
          additionalProperties:
            type: object
            description: Taxonomy namespace (e.g., us-gaap, dei, ifrs-full)
            additionalProperties:
              $ref: '#/components/schemas/ConceptFacts'
    ConceptFacts:
      type: object
      description: Facts for a single XBRL concept
      properties:
        label:
          type: string
          description: Human-readable concept label
          example: Accounts Payable, Current
        description:
          type: string
          description: Concept definition from the taxonomy
        entityName:
          type: string
          description: Entity name
        units:
          type: object
          description: Units of measure with arrays of reported values
          additionalProperties:
            type: array
            items:
              $ref: '#/components/schemas/FactValue'
    FactValue:
      type: object
      description: A single reported XBRL fact value
      properties:
        start:
          type: string
          format: date
          description: Period start date (for duration concepts)
          example: '2022-09-25'
        end:
          type: string
          format: date
          description: Period end date or instant date
          example: '2023-09-30'
        val:
          description: Reported value (number or string depending on concept)
          oneOf:
          - type: number
          - type: string
          example: 62611000000
        accn:
          type: string
          description: Accession number of the filing reporting this value
          example: 0000320193-23-000106
        fy:
          type: integer
          description: Fiscal year
          example: 2023
        fp:
          type: string
          description: Fiscal period (FY, Q1, Q2, Q3, Q4)
          example: FY
        form:
          type: string
          description: Form type
          example: 10-K
        filed:
          type: string
          format: date
          description: Date the filing was accepted by EDGAR
          example: '2023-11-03'
        frame:
          type: string
          description: Frame identifier for use with the frames endpoint
          example: CY2023Q3I