SecioEx.DownloadApi (secio_ex v0.1.4)

Generate Pdf's and download filings and files from the SEC database.

Summary

Functions

Downloads a filing or exhibit from SEC EDGAR.

Downloads a filing by CIK and accession number.

Generates a PDF from a filing or exhibit.

Functions

download(path, opts \\ [])

Downloads a filing or exhibit from SEC EDGAR.

Parameters

  • path: The path to the file on SEC EDGAR (after /data/)
  • opts: Keyword list of options including :api_key

Examples

iex> SecioEx.DownloadApi.download(
  "815094/000156459021006205/abmd-8k_20210211.htm",
  api_key: "your_api_key"
)
{:ok, "filing content..."}

download_by_identifiers(cik, accession_no, filename, opts \\ [])

Downloads a filing by CIK and accession number.

Parameters

  • cik: The CIK number (without leading zeros)
  • accession_no: The accession number (with hyphens removed)
  • filename: The filename of the document
  • opts: Keyword list of options including :api_key

Examples

iex> SecioEx.DownloadApi.download_by_identifiers(
  "815094",
  "000156459021006205",
  "abmd-8k_20210211.htm",
  api_key: "your_api_key"
)
{:ok, "filing content..."}

generate_pdf(url, opts \\ [])

Generates a PDF from a filing or exhibit.

Parameters

  • url: The full SEC.gov URL of the filing or exhibit
  • opts: Keyword list of options including :api_key

Examples

iex> SecioEx.DownloadApi.generate_pdf(
  "https://www.sec.gov/Archives/edgar/data/320193/000032019323000106/aapl-20230930.htm",
  api_key: "your_api_key"
)
{:ok, <<PDF content...>>}