edgar source lets you look up a company’s SEC filings by name or ticker. A lookup can return the company’s most recent filing, or a list of its filings over a date range you choose. Which one you get depends on whether the request has from, to, or limit.
Each filing in data.metadata.filings is charged as one request. See Plans and credits.
Getting one filing or a list
A request with none offrom, to, and limit returns one filing in data, and data.metadata has no filings list. Adding form_type doesn’t change this. It picks which form that one filing is.
A request with any of the three returns the newest matching filing in data and lists the matches in data.metadata.filings, newest first. The number listed depends on the request:
A
limit of 1 still returns the list, with one filing in it. The list is shorter than the limit when fewer filings match.
Without an API key, a limit above 5 returns 401 with the code API_KEY_REQUIRED, before Dataville sends any request to the SEC, and you aren’t charged. See Troubleshooting.
The parameters and their formats are on Search a data source.
Reading a filings list
Here is the result ofGET /edgar/HD?form_type=10-Q&limit=4, with body shortened, the company fields in metadata removed, and each filing’s figures cut to revenue and net income:
data is Home Depot’s newest 10-Q, and filings lists four. Each listed 10-K, 10-Q, or 20-F has fiscal_year, fiscal_period, and figures for its own period only. On a 10-Q those figures are year to date, so the Q2 revenue covers six months.