EdgarAPI#

class edgar_sec.EdgarAPI(cache_mode=False, cache_size=256)[source]#

Bases: object

Interact with the US Securities and Exchange Commission EDGAR API.

This class provides methods to access the SEC’s EDGAR database through their RESTful API endpoints. The data.sec.gov service delivers JSON-formatted data without requiring authentication or API keys. The API provides access to: Filing entity submission history and XBRL financial statement data (forms 10-Q, 10-K, 8-K, 20-F, 40-F, 6-K).

Parameters:
  • cache_mode (bool)

  • cache_size (int)

Methods#

EdgarAPI.__init__

Initialize the EdgarAPI class the provide functions for accessing SEC EDGAR data.

EdgarAPI.get_company_concept

Get a company concept.

EdgarAPI.get_company_facts

Get all company facts.

EdgarAPI.get_frames

Retrieve aggregated XBRL facts across multiple companies for a specific period.

EdgarAPI.get_submissions

Get a submission history.