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.
Documentation:
Downloads:
Linking:
Please use the canonical form
https://CRAN.R-project.org/package=secfile
to link to this page.