FreeSECDataIndependent site · not the SEC or any government agency

Developer guide

Everything FreeSECData shows is in plain JSON and CSV files at fixed addresses. Those files are the API: no key, no account, no sign-up and no request limit beyond a reasonable pace. This page lists every file, what each key and column means and in which unit, how to find the file you need, what will and will not change, and how to read the files from curl, Python, JavaScript, Excel and Google Sheets. A machine-readable description of every file is in openapi.json (OpenAPI 3.1), and AI assistants can use the connector.

The data comes from public SEC filings. This site is not affiliated with the U.S. Securities and Exchange Commission.

Guide written 24 November 2026. The date the data files were built is in each file (key built).

In the examples, https://[SITE ADDRESS] stands for this site’s address. Addresses in this guide are relative to it: data/company/AAPL.json means https://[SITE ADDRESS]/data/company/AAPL.json.

Quick start: one company in three requests

  1. Find the company file. Fetch data/company/index.json (about 0.4 MB). Its rows list every NYSE and Nasdaq ticker as [ticker, name, file, exchange, primary]. Find the row for your ticker. Tickers are upper case and use a hyphen for share classes (BRK-B, not BRK.B). The third value is the file name: a second share class points to the main ticker’s file (GOOG → GOOGL).
  2. Fetch the company file data/company/file.json, e.g. data/company/AAPL.json: name, SEC company number (CIK), latest SEC closing price, weekly prices, annual financials since the 1990s, and pointers to the holders and insider files.
  3. Follow the pointers. The company file’s holders number names a bucket file data/holders/co/holders.json; inside it, the company’s record is under its CIK as a string ("320193"). Its insiders value names data/insiders/c/insiders.json.

The same company in a browser: company.html?t=AAPL or company.html#AAPL.

Licences and credit, per data set

DataWhere it comes fromWhat you may do
Company files, holders (13F, 13D, 13G), insider trades, prices, financial history, home page summarySEC EDGAR filings and SEC data sets (fails-to-deliver files, Form 13F data sets, insider data sets, XBRL company facts)The filings and the facts in them are U.S. government data, public domain: anyone may use them for anything, including commercially, without asking us. Our files that hold them are our compilation (next row).
What we add: the compiled files and downloads, matching, clean-up, corrections, totals, changes, flags and their reasons, and the text of our pagesOur own work on those filingsCC BY 4.0 (Creative Commons Attribution 4.0 International). Use it for anything, commercially too, without asking, as long as you credit “FreeSECData” with a link to freesecdata.com and to the licence, and say if you changed it (see how to credit us). Corrections are always marked and the as-filed value is kept (see corrections log).
Interest rates and inflation (FRED)Federal Reserve Bank of St. Louis, FRED; only public-domain seriesNot on the site yet. When they are, every file will carry the source line, and you should credit “Source: Federal Reserve Bank of St. Louis, FRED” with the series name.
Live chart, price and fundamentals on company pagesTradingView widgets, loaded from tradingview.comTradingView’s content, not ours: not covered by our licence. See TradingView’s own terms.
Members of Congress’ trades—Not on this site.

How to credit us

Copy this line under anything you make with our files:

Data: FreeSECData (freesecdata.com), from SEC EDGAR filings, CC BY 4.0

On a web page, link the name and the licence: Data: <a href="https://freesecdata.com">FreeSECData</a>, from SEC EDGAR filings, <a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>. If you changed our figures (filtered, merged or recalculated them), add a few words saying so, for example “adapted by [your name]”: the licence asks you to say when you changed the material. Creative Commons recommends a credit that gives the title, author, source and licence; the line above gives the author, source and licence, and you can add the file name as the title. The licence does not let anyone suggest that FreeSECData, or the SEC, endorses what they made.

Nothing on FreeSECData is investment advice. Software reading of filings makes mistakes; for anything important, check the original filing (most records link to it).

How files are found: indexes and buckets

Company files

data/company/index.json

One file, about 0.4 MB, 7,600 tickers of about 6,000 companies. Keys: built (date, yyyy-mm-dd), cols = ["ticker","name","file","exchange","primary"], rows. exchange is NYSE or Nasdaq; primary is 1 for the company’s main ticker and 0 for other share classes and listed preferred shares. The name is as the SEC has it (often in capitals).

data/company/file.json

One file per company, usually 2–60 KB.

KeyMeaningType, unit
ticker, nameMain ticker; company name as filed with the SECtext
cikSEC company number (Central Index Key)number
exchange, tickersExchange of the main ticker; every ticker of the companytext; list of text
price, priceDateLatest SEC closing price and its date. The price is the previous day’s close reported in the SEC fails-to-deliver files: weeks old, and missing (null) for some stocksUS dollars per share; date
splitsStock splits found, as [date, ratio]; ratio 2 = 2-for-1, 0.1 = 1-for-10list
pxWeekly closes since October 2020 as [date, close]: the last SEC close of each week, adjusted for later splits (today’s share basis). Weeks with no SEC price are missinglist; US dollars per share
finCols, finAnnual financials, one row per fiscal year, columns named in finCols (below)list of rows
builtDate this file was madedate
holdersBucket number of the holders file (data/holders/co/holders.json); null if nonenumber
holdersQuarterQuarter end of the 13F holdings in that filedate
insidersName of the insider file (data/insiders/c/insiders.json); null if nonetext
formerName, nameDateOnly for a renamed company: the previous name, and the filing date of the first filing under the new nametext; date
predOnly when older SEC numbers are joined to this company (a predecessor before a reorganization): [predecessor cik, predecessor name, first filing of this company]; their history is shown herelist

Columns of fin (as named in finCols):

ColumnMeaningUnit
yearCalendar year in which the fiscal year ends (a 52/53-week year ending in the first days of January counts to the year before)year
revenue, operating_income, net_incomeTotals for the fiscal yearcurrency of the filing (almost always US dollars), whole units, not thousands
eps_diluted, dividends_per_sharePer share, put on today’s share basis (divided by split_factor)currency per share
total_assets, long_term_debt, equityAt the fiscal year endcurrency, whole units
units_factorCorrection for a year filed with the wrong units: the numbers were multiplied by this (1 = no correction; 1000 = the filing’s figures were in thousands without saying so)number
split_factorHow much later stock splits changed the share count; per-share figures were divided by it (1 = none; 0.1 = a later 1-for-10 reverse split)number
sourcesWhere the year came from: xbrl (XBRL company facts, about 2009 on), sfd (10-K “Selected Financial Data” table, about 1997–2010), ex27 (EX-27 financial data schedules, 1993–2001), or several joined with “+”. The newest filing wins, so restatements replace originalstext
currencyCurrency of the year’s amounts, as in the company’s financial statements (USD for almost all; foreign filers’ figures are not converted)ISO code
notesMarks on single figures, as item=code joined with ; (for example revenue=unit;eps_diluted=hidden): unit units corrected, fs replaced by the figure in the company’s own financial statements, check far out of line with the other years and shown as filed, hidden left out (the value is null), class per share of one share class only, basic basic earnings per share (no diluted figure filed). Empty when there is nothing to say. Each change is in the corrections logtext

Missing values are null. Older years carry fewer items. Files built before 26 November 2026 end at sources: read columns by name from finCols.

Big holders: 13F, 13D and 13G

Data sources: SEC Form 13F data sets (holdings of managers with $100 million or more in U.S. stocks, quarterly, filed up to 45 days after the quarter) and Schedule 13D/13G filings (anyone owning more than 5% of a class of shares). Values are US dollars; shares are as filed (13F share counts are not adjusted for splits).

data/holders/index.json (about 1.3 MB)

Company record: data/holders/co/bucket.json → ["cik"]

Investor record: data/holders/inv/bucket.json → ["cik"]

Insider trades (Forms 3, 4, 5)

Data source: the SEC’s insider transactions data sets (Forms 3, 4 and 5 filed by officers, directors and 10% owners), quarterly. Being revised (November 2026): the insiders data is being checked and corrected; columns may be added at the end of rows.

Home page and other files

Corrections logs, and files being added

Files added to the site after the sections above were written.

13F history, 2013 to today

Every manager’s 50 largest positions quarter by quarter from June 2013, and every company’s holders over time, under data/h13/. Quarters are numbered qn = year × 4 + quarter − 1 (8053 = 2013-06-30). Shares are as filed (split events listed separately); values in the per-manager position files are in $1,000. The full key-by-key description is in the API description.

New this week, and a feed

The list behind the “New this week” page is data/new/week.json (the filings of the last business days with an SEC daily index; its fields are in the API description). The same filings are in two feeds for feed readers: feed.xml (Atom) and feed.json (JSON Feed).

Corrections logs

Every value we change or mark is listed, with the value as filed, on the Corrections page and in CSV logs (UTF-8, column names on the first line), one per data set: data/corrections/13f_latest.csv (latest 13F quarter, with totals in data/corrections/13f_latest_summary.json); still to come: 13f_history.csv, insider_latest.csv, 13dg_latest.csv. Columns:

ColumnMeaning
dataset, period, filed, accessionData set (13F …), the period the filing reports (quarter end), filing date, SEC filing number
filer_cik, filer_nameWho filed
subject_id, subject_nameWhat the row is about (a CUSIP, company or person); empty when the whole filing is meant
field, as_filed, shownWhich value, the value as filed, the value we show (the same when only marked)
kind, reasonA short code (13F-UNIT, 13F-REPEAT, 13F-SPLIT, 13F-ROWUNIT, 13F-UNFIT, 13F-FLAG-ROWUNIT, 13F-FLAG-PRICE, 13F-FLAG-SPLIT …, explained on the Corrections page) and the reason in plain English
confidencehigh, medium, or flag = shown as filed and marked
rule_id, rule_adopted, builtThe rule applied, the date it was adopted, the date the log was built

The Corrections page links every log; each is one CSV file of at most about 10 MB.

Full financial statements

Full financial statements (income statement, balance sheet, cash flow statement, annual and quarterly, from the SEC’s XBRL data) are inside each company file under fs; the API description lists the fields.

CSV: on every table, and whole tables

Whole-table CSV files

Whole tables as single CSV files are in downloads/: companies, annual financials, weekly prices, 13D/13G filings and the latest 13F holders (split into a few files where large). downloads/index.json lists every file with its size, row count, columns and built date. Each starts with the column names on the first line (no source line, so that tools read it directly); source and licence are in downloads/index.json and on this page. No file is larger than about 20 MB.

Examples: curl, Python, JavaScript

Every file can be read from another site’s page too (cross-origin reading is allowed). Please keep a copy rather than fetching the same file again and again, and wait a moment between requests when you fetch thousands of files.

curl (command line)

curl -s https://[SITE ADDRESS]/data/company/AAPL.json -o AAPL.json
curl -s https://[SITE ADDRESS]/data/company/index.json | python -m json.tool | more
curl -s -O https://[SITE ADDRESS]/downloads/insider-trades-2026-h1.csv

Python (standard library only)

import json, urllib.request

SITE = "https://[SITE ADDRESS]/"
def get(path):
    with urllib.request.urlopen(SITE + path) as r:
        return json.load(r)

index = get("data/company/index.json")
files = {row[0]: row[2] for row in index["rows"]}          # ticker -> file
co = get("data/company/" + files["AAPL"] + ".json")
print(co["name"], co["price"], co["priceDate"])

# annual financials as a list of dicts
fin = [dict(zip(co["finCols"], row)) for row in co["fin"]]
print(fin[-1]["year"], fin[-1]["revenue"])

# 13F holders: bucket file, then the company's record under its CIK
holders = get("data/holders/co/%d.json" % co["holders"])[str(co["cik"])]
for cik, name, shares, value, *rest in holders["f13"]["top"][:5]:
    print(name, shares, value)

# insider purchases and sales
ins = get("data/insiders/c/" + co["insiders"] + ".json")
for r in ins["open_market"][:5]:
    print(r[1], r[2], r[5], r[7], r[8])     # traded, insider, code, shares, price

With pandas: pandas.DataFrame(co["fin"], columns=co["finCols"]), and for the CSV download pandas.read_csv(SITE + "downloads/insider-trades-2026-h1.csv").

JavaScript (browser or Node 18+)

const SITE = "https://[SITE ADDRESS]/";
const get = (p) => fetch(SITE + p).then((r) => { if (!r.ok) throw new Error(p + ": " + r.status); return r.json(); });

const index = await get("data/company/index.json");
const row = index.rows.find((r) => r[0] === "AAPL");
const co = await get("data/company/" + row[2] + ".json");
const fin = co.fin.map((r) => Object.fromEntries(co.finCols.map((c, i) => [c, r[i]])));
const h = (await get("data/holders/co/" + co.holders + ".json"))[String(co.cik)];
console.log(co.name, fin.at(-1).revenue, h.f13 && h.f13.holders);

Excel

A whole CSV file, refreshable

Excel for Windows 2016 or later, or Microsoft 365: Data → From Web, paste a CSV address such as https://[SITE ADDRESS]/downloads/insider-trades-2026-h1.csv, OK, then Load. Data → Refresh All fetches it again later. (Excel 2010 and 2013 need Microsoft’s free Power Query add-in.)

Type a ticker, press Refresh

The starter workbook has a ticker cell named Ticker and the text of four ready queries (annual financials, weekly prices, 13F holders, insider trades) with step-by-step instructions. Each query is pasted once into Excel’s query editor: Data → Get Data → From Other Sources → Blank Query, then Advanced Editor, paste, Done, Close & Load. After that, type another ticker and press Data → Refresh All. The financials query:

let
    Site = "https://[SITE ADDRESS]/",
    Ticker = Text.Replace(Text.Upper(Text.Trim(Text.From(Excel.CurrentWorkbook(){[Name="Ticker"]}[Content]{0}[Column1]))), ".", "-"),
    Index = Json.Document(Web.Contents(Site & "data/company/index.json")),
    Hit = List.Select(Index[rows], each _{0} = Ticker),
    File = if List.IsEmpty(Hit) then error ("No NYSE or Nasdaq ticker " & Ticker) else Hit{0}{2},
    Company = Json.Document(Web.Contents(Site & "data/company/" & File & ".json")),
    Financials = Table.FromRows(Company[fin], Company[finCols]),
    Newest = Table.Sort(Financials, {{"year", Order.Descending}})
in
    Newest

If Excel says “Formula.Firewall … rebuild this data combination” (the query mixes a cell of the workbook with a web address), choose Data → Get Data → Query Options → Current Workbook → Privacy and tick Ignore the Privacy Levels, or set both sources to Public when Excel asks. Works in Excel for Windows 2016 or later and Microsoft 365; on a Mac, Power Query’s web sources have not been checked. These queries were written to Microsoft’s published Power Query language and have not yet been run in Excel by us; please tell us if one fails.

Google Sheets

One company, no script: type into a cell =IMPORTDATA("https://mcp.freesecdata.com/csv/financials/AAPL"). The same works with /csv/prices/AAPL (weekly SEC closes), /csv/holders/AAPL (latest 13F quarter, the 100 largest holders) and /csv/insiders/AAPL (purchases and sales, last 8 quarters, with the SEC filing address of each). These small CSV files are made on request from the same JSON files by the connector and are reused for an hour. Put the ticker in a cell and write =IMPORTDATA("https://mcp.freesecdata.com/csv/financials/"&A1) to change it there.

Whole tables: =IMPORTDATA("https://[SITE ADDRESS]/downloads/companies.csv"); the other whole-table files are listed with their sizes in downloads/index.json. Sheets checks for changes about once an hour while the sheet is open. Large files can fail with “Resource at url contents exceeded maximum size” (Google does not publish the limit), so prefer the small files or the per-company addresses above, and pick rows with QUERY:

=QUERY(IMPORTDATA("https://[SITE ADDRESS]/downloads/financials-annual.csv"), "select * where Col1 = 'AAPL' order by Col4 desc", 1)

Sheets has no built-in function for JSON. To read one company’s JSON file, paste this short script once (Extensions → Apps Script, replace the text, save; Google asks you to allow it to connect to an outside address), then type =FREESECDATA("AAPL", "financials"), =FREESECDATA("AAPL", "prices"), =FREESECDATA("AAPL", "holders") or =FREESECDATA("AAPL", "insiders") into a cell:

/** =FREESECDATA(ticker, "financials" | "prices" | "holders" | "insiders") : a table from FreeSECData's public data files. */
function FREESECDATA(ticker, what) {
  var SITE = "https://[SITE ADDRESS]/";
  function get(p) {
    var r = UrlFetchApp.fetch(SITE + p, { muteHttpExceptions: true });
    if (r.getResponseCode() !== 200) throw new Error(p + " returned " + r.getResponseCode());
    return JSON.parse(r.getContentText());
  }
  var t = String(ticker).trim().toUpperCase().replace(/\./g, "-");
  var rows = get("data/company/index.json").rows.filter(function (r) { return r[0] === t; });
  if (!rows.length) throw new Error("No NYSE or Nasdaq ticker " + t);
  var co = get("data/company/" + rows[0][2] + ".json");
  what = String(what || "financials").toLowerCase();
  function blank(r) { return r.map(function (v) { return v == null ? "" : v; }); }
  if (what === "financials") return [co.finCols].concat(co.fin.map(blank));
  if (what === "prices") return [["date", "close"]].concat(co.px);
  if (what === "holders") {
    if (co.holders == null) return [["no 13F or 13D/13G holders"]];
    var h = get("data/holders/co/" + co.holders + ".json")[String(co.cik)];
    if (!h || !h.f13) return [["no 13F holders this quarter"]];
    return [["manager_cik", "manager", "shares", "value_usd", "shares_last_quarter"]].concat(h.f13.top.map(function (r) { return r.slice(0, 5); }));
  }
  if (what === "insiders") {
    if (!co.insiders) return [["no insider trades"]];
    var d = get("data/insiders/c/" + co.insiders + ".json");
    return [["filed", "traded", "insider", "roles", "title", "code", "acquired_or_disposed", "shares", "price", "owned_after",
             "direct_or_indirect", "plan", "accession", "lots", "form", "security"]].concat(d.open_market.map(function (r) {
      return blank(r.slice(0, 16)); }));
  }
  throw new Error('what must be "financials", "prices", "holders" or "insiders"');
}

The script is ours and short enough to read; it only fetches this site’s files. Google limits how often scripts may fetch addresses each day; a few hundred calls a day is fine.

API description (OpenAPI 3.1)

openapi.json describes every address in this guide in the OpenAPI 3.1 format: each file, its keys, what each value in a row means, and every download file with its size. The site build writes it from the files themselves and checks that the keys it describes are the keys the files have. Load it into any OpenAPI tool (for example to generate a client library), or give it to an AI assistant. Data sets still being added (Form D, Form 144, investment advisers, fund holdings from Form N-PORT, fund proxy votes from Form N-PX, one page per 13F filing) are listed in it under x-planned and get their own addresses when they are ready. Not affiliated with the U.S. Securities and Exchange Commission.

AI assistants: connector (MCP)

Assistants that support the Model Context Protocol (MCP) can look things up here directly: find a company or an investor, a company’s figures and financial statements, its 13F holders now and since 2013, its 5% owners (13D and 13G), insider trades, a fund’s portfolio, and the week’s new filings. The connector is read-only, needs no key and no sign-in, and reads only this site’s own files; every answer names the files it read and links the original SEC filings.

Connector address: https://mcp.freesecdata.com/mcp

Tools: search_company, search_investor, get_company, get_prices, get_financial_statements, get_holders, get_13dg, get_insider_trades, get_fund_holdings, get_holder_history, get_manager_history, get_new_filings, list_downloads, get_corrections_summary. Without the connector, llms.txt tells an assistant where each file is. Assistants make mistakes: for anything important, open the filing it links.

What stays the same and what may change

Built dates and update schedule

Limits you should know about

Questions, mistakes, missing columns: contact@freesecdata.com. See also Data sources.