Getting SEC EDGAR Filings via API Without Scraping
When developing financial applications that require access to SEC filings like 10-K, 10-Q, and 13-F, one common challenge is obtaining the latest data. Traditionally, this involves scraping the SEC's EDGAR database, which can be time-consuming and may not always provide real-time updates.
However, there are APIs available that offer access to these filings without having to scrape manually. One such API endpoint is provided by VeriLexData at api.verilexdata.com/api/v1/sec/sample.
Problem
To utilize this API for your application, you need a way to search and retrieve specific types of SEC filings based on either the company name or form type. For example, if you want to find all 10-K filings submitted by Apple Inc., you would need to query the API with the appropriate parameters.
Python Code Example
Here is an example of how you might structure a Python request using requests library to fetch SEC filings:
python
import requests
# Replace 'YOUR_API_KEY' with your actual API key if required
api_key = 'YOUR_API_KEY'
form_type = '10-K' # Change this to the form type you're interested in, e.g., '13-F'
url = f'https://api.verilexdata.com/api
Top comments (0)