secfile: SEC 'EDGAR' APIs

Simple and efficient access to the SEC's 'EDGAR' APIs <https://www.sec.gov/search-filings> for querying and retrieving filings. The 'secfile' package abstracts the complexities of interacting with SEC EDGAR APIs, such as session management, user agent declaration, rate limiting, index parsing, pagination of filing metadata, URL construction, document caching, and inline XBRL parsing. This abstraction allows users to focus on retrieving data rather than managing API details. Use cases include retrieving filings across a range of workflows such as indexes, tenures, submissions, and facts. The package supports flexible query capabilities, including customizable form types, date ranges, and dimensions, and automatic data validation. It handles the SEC's fair access requirements automatically, such as user agent declaration and rate limiting between requests, and caches downloaded documents for efficient retrieval of large datasets. The implementation uses standard HTTP libraries to handle API interactions efficiently and is available in both R and 'Python' for accessibility to a broad audience.

Version: 0.1.1
Depends: R (≥ 3.5.0)
Imports: curl, jsonlite, xml2
Suggests: covr, testthat
Published: 2026-08-08
DOI: 10.32614/CRAN.package.secfile (may not be active yet)
Author: Jason Foster [aut, cre]
Maintainer: Jason Foster <jason.j.foster at gmail.com>
BugReports: https://github.com/jasonjfoster/file/issues
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
URL: https://github.com/jasonjfoster/file
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: secfile results

Documentation:

Reference manual: secfile.html , secfile.pdf

Downloads:

Package source: secfile_0.1.1.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): secfile_0.1.1.tgz, r-oldrel (arm64): secfile_0.1.1.tgz, r-release (x86_64): secfile_0.1.1.tgz, r-oldrel (x86_64): secfile_0.1.1.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=secfile to link to this page.