- Quick start: one company in three requests
- Licences and credit, per data set
- How files are found: indexes and buckets
- Company files
- Big holders: 13F, 13D and 13G
- Insider trades (Forms 3, 4, 5)
- Home page and other files
- Corrections logs, and files being added
- CSV: on every table, and whole tables
- Examples: curl, Python, JavaScript
- Excel
- Google Sheets
- API description (OpenAPI 3.1)
- AI assistants: connector (MCP)
- What stays the same and what may change
- Built dates and update schedule
- Limits you should know about
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
- Find the company file. Fetch
data/company/index.json(about 0.4 MB). Itsrowslist 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, notBRK.B). The third value is the file name: a second share class points to the main ticker’s file (GOOG→GOOGL). - 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. - Follow the pointers. The company file’s
holdersnumber names a bucket filedata/holders/co/holders.json; inside it, the company’s record is under its CIK as a string ("320193"). Itsinsidersvalue namesdata/insiders/c/insiders.json.
The same company in a browser: company.html?t=AAPL or company.html#AAPL.
Licences and credit, per data set
| Data | Where it comes from | What you may do |
|---|---|---|
| Company files, holders (13F, 13D, 13G), insider trades, prices, financial history, home page summary | SEC 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 pages | Our own work on those filings | CC 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 series | Not 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 pages | TradingView widgets, loaded from tradingview.com | TradingView’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
- Index files list what exists and which file holds it:
data/company/index.json(tickers),data/holders/index.json(companies and investors with holder data),data/insiders/companies.json(companies with insider trades),data/search.json(each company file’scik, its kind –coperating company,ffund, ETF or trust,sacquisition shell, by SEC industry code – and other names:fformer name in EDGAR,hour own everyday name),data/search_investors.json(13F managers and 13D/13G filers:[cik, name, kind, 13F value in USD millions, 5% stakes, other names]) anddata/freshness.json(each dataset’s newest filing date and build date, shown on Data freshness). Fetch an index once and keep it; it changes only when the data is rebuilt. - Company file names are the main ticker in capitals with every character other than A–Z, 0–9 and “-” replaced by “_”. Always take the name from the index (column
file) rather than building it. - Buckets. To keep the number of files small, holders data is grouped: the company or investor with SEC number (CIK) n is in bucket
n % buckets, wherebucketsis given indata/holders/index.json(1024 today). Company records are indata/holders/co/bucket.json, investor records indata/holders/inv/bucket.json; each bucket is an object keyed by the CIK as a string. Example: Apple, CIK 320193, is inco/705.jsonunder"320193"(320193 ÷ 1024 leaves 705). Readbucketsfrom the index instead of writing 1024 into your code. - Insider files are named after the ticker (capitals; characters other than A–Z, 0–9, “.” and “-” become “_”). The company file’s
insiderskey gives the name;nullmeans none. - Compact rows. Large lists are arrays of arrays, with the column names given once (
cols,finCols) or listed below. New columns are only ever added at the end of a row.
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.
| Key | Meaning | Type, unit |
|---|---|---|
| ticker, name | Main ticker; company name as filed with the SEC | text |
| cik | SEC company number (Central Index Key) | number |
| exchange, tickers | Exchange of the main ticker; every ticker of the company | text; list of text |
| price, priceDate | Latest 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 stocks | US dollars per share; date |
| splits | Stock splits found, as [date, ratio]; ratio 2 = 2-for-1, 0.1 = 1-for-10 | list |
| px | Weekly 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 missing | list; US dollars per share |
| finCols, fin | Annual financials, one row per fiscal year, columns named in finCols (below) | list of rows |
| built | Date this file was made | date |
| holders | Bucket number of the holders file (data/holders/co/holders.json); null if none | number |
| holdersQuarter | Quarter end of the 13F holdings in that file | date |
| insiders | Name of the insider file (data/insiders/c/insiders.json); null if none | text |
| formerName, nameDate | Only for a renamed company: the previous name, and the filing date of the first filing under the new name | text; date |
| pred | Only 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 here | list |
Columns of fin (as named in finCols):
| Column | Meaning | Unit |
|---|---|---|
| year | Calendar 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_income | Totals for the fiscal year | currency of the filing (almost always US dollars), whole units, not thousands |
| eps_diluted, dividends_per_share | Per share, put on today’s share basis (divided by split_factor) | currency per share |
| total_assets, long_term_debt, equity | At the fiscal year end | currency, whole units |
| units_factor | Correction 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_factor | How 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 |
| sources | Where 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 originals | text |
| currency | Currency of the year’s amounts, as in the company’s financial statements (USD for almost all; foreign filers’ figures are not converted) | ISO code |
| notes | Marks 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 log | text |
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)
buckets: number of bucket files (see buckets);quarter,prevQuarter: the 13F quarter ends shown and compared with.partialappears only while the newest quarter is a partial one, read filing by filing from EDGAR before the SEC publishes its 13F data set:from,through(filing dates read),filings,holdings_reports,period,filers(managers so far),prev_period,prev_filers(the last complete SEC data set),built,source. The same object is indata/holders/partial.json({}when the quarter shown is complete).companies: rows[cik, ticker, name, 13D/13G stakes, 13F holders].investors: rows[cik, name, 13D/13G stakes, 13F value], value in US dollars (0 = no 13F report this quarter).
Company record: data/holders/co/bucket.json → ["cik"]
name,ticker.dg: 13D/13G holders, newest filing first:[filer cik, filer name, filings, stated purpose, note, status, latest 13F, name order]. filings is a list, oldest first, of[filed, form, percent, shares, event date, address, how read, note, class]: formD,D/A,G,G/A(Schedule 13D or 13G, /A = amendment); percent of the class, 0–100; shares owned; event date as given (may be empty); address of the filing relative tohttps://www.sec.gov/Archives/edgar/data/; how read is empty when the filing was read completely, otherwisexml_partial,text_partialortext_unread(older free-form filings read by pattern matching). note says why a number is not shown or marked (empty when there is nothing to say); class is the class of shares the percent and shares refer to, as named in the filing (for exampleClass A; empty when the filing names none). The stated purpose is the newest 13D “purpose of transaction” text (empty for 13G). note: a sentence about the holder (for example joined SEC numbers); status:exitwhen the latest filing is under 5%,unreadwhen no filing could be read; latest 13F: the same investor’s newer 13F as[shares, percent of the class or null], ornull; name order: 1 when the filer is a person whose name is filed last name first, as on SEC EDGAR (SMITH JOHN A: show it as John A Smith), otherwise 0.f13: 13F holders this quarter.holders(count),shares,value(US dollars);prevQuarter;chg= counts of managersnew,added,reduced,same(within 0.5%),sold(all),noprior(no report last quarter), andnetShares;buysandsells: up to 15 largest moves each,[manager cik, manager, change in shares, change in value, status];top: up to 100 largest holders,[manager cik, manager, shares, value, shares last quarter], where shares last quarter is −1 for a new position and −2 when the manager filed no report last quarter.- Being added with the November 2026 holders fix:
flagged(number of holder rows whose value does not fit the share count) andsplitNote(one sentence) inf13, and the 6th element of eachtoprow, reason: a plain-English sentence when the row was corrected or is marked, otherwise empty.
Investor record: data/holders/inv/bucket.json → ["cik"]
name;dg: 5% stakes,[company cik, company, ticker, filings], filings as above.f13:positions(count),value(US dollars),prevQuarter,chg(new,added,reduced,same,sold),top: up to 100 largest positions,exits: up to 50 largest positions sold out. Each position:[cusip, issuer, ticker, company cik (0 = no company page), shares, value, shares last quarter (−1 new, −2 no report last quarter, −3 sold out), "F" for an ETF or fund]. No file puts a CUSIP and a ticker in the same row: from 26 November 2026 the ticker element is empty; find the company’s ticker from its company cik in thecompaniesrows ofdata/holders/index.json.- Being added with the holders fix: a 9th element in each position, reason (a plain-English sentence when the row was corrected or is marked, otherwise empty), and
warn(sentences: the figures may be wrong) andnote(sentences: something was corrected or is marked). reportedBy: for a filer whose holdings are reported by other managers (it files only a notice), those managers as[cik, name].
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.
data/insiders/companies.json:asof(newest filing date in the data) andcompanies, rows[ticker, file, cik, buys, sells], where buys and sells count open-market purchases and sales reported in the last 12 months.data/insiders/c/file.json, one per company:ticker,cik(as text),name,asof,last12={buys, buy_value, sells, sell_value, last_buy}(values in US dollars, last_buy a date),capped(truewhen the purchase-and-sale list was cut at 1,500 rows),open_market(purchases and sales, last 8 quarters) andother(awards, option exercises, tax withholding, gifts and so on, last 8 quarters, at most 500 rows).- Each trade row:
[filed, traded, insider, roles, title, code, acquired_or_disposed, shares, price, owned_after, direct_or_indirect, plan, accession, lots, form, security].- roles: a sum of 1 director, 2 officer, 4 10% owner, 8 other (3 = director and officer).
- code: the SEC transaction code:
Popen-market purchase,Sopen-market sale,Aaward,Moption exercise,Fshares withheld for tax,Ggift, and others listed in the Form 4 instructions. - acquired_or_disposed:
AorD; direct_or_indirect:DorI. - shares: number of shares; price: US dollars per share, share-weighted average when several lines were combined,
nullwhen none was given; owned_after: shares held after the trade. - plan: the Rule 10b5-1 box: 1 ticked, 0 not ticked, −1 not on the form (before April 2023).
- accession: SEC filing number; the filing is at
https://www.sec.gov/Archives/edgar/data/cik/accession without hyphens/accession-index.htm. - lots: how many lines of the form were combined into this row (same day, same code); form:
4,4/A,5…; security: the title of the security for options and units, otherwise empty.
data/insiders/trades.json(purchases and sales, all companies, last 8 quarters, about 20 MB;data/insiders/trades_recent.jsonis the same with only the filings of the last 90 days of data, plusrecent_fromandall_rows) anddata/insiders/other.json(other transactions, last 2 quarters, about 12 MB; a row of a filing made by several owners together also carries all owners, at the same place as intrades.json, with the fields before it empty): the same rows, compacted:company,insider,titleandsecurityare numbers pointing into the listscos([ticker, company, cik, listed]),namesandtext(−1 = none). Alsobuilt,asof,kind,from_quarter,to_quarter.downloads/insider-trades-files.json: the list of the purchase/sale CSV files, one per half-year of the filing date (downloads/insider-trades-2026-h1.csvand so on; each entry hasfile, from, to, rows, bytes). Each CSV is UTF-8 with BOM, columnsfiled_date, trade_date, ticker, company, issuer_cik, insider, roles, title, code, transaction, shares, avg_price, value, shares_owned_after, direct_or_indirect, rule_10b5_1, lots, form, security, sec_filing_url, in_totals, check, note, rule_10b5_1_source, also_reported_by, all_owners, price_as_filed, trade_date_as_filed.transactionis the checked label (for example “Open-market purchase”, “Private placement or offering”);value= shares × average price in US dollars, empty when the row is markedcheck;in_totalssays whether the row is added to the company totals.downloads/insider-screen-cluster-buys.csv,-ceo-cfo-purchases.csv,-top-officer-purchases.csv,-large-purchases.csv: the four insider screens, full history.
Home page and other files
data/home.json:built;new13d: up to 8 newest first-time 13D filings of the last 30 days,[company cik, company, ticker, filer cik, filer, percent, filed];new13dCount;filings13dg(13D/13G filings held);quarter13f;managers13f(managers that reported that quarter).llms.txt(a short guide for AI assistants),sitemap.xml,robots.txt.
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.
data/h13/index.json:quarters[qn, quarter end, managers, positions, value];managers[cik, name, first qn, last qn, latest value, quarters filed];parts: for each folder (m,mp,c,s) the number of bucket filesn.data/h13/m/bucket.json(manager CIK % n): one row per quarter per manager;data/h13/mp/bucket.json: the manager’s positions,p=[[cusip, first qn, [shares...], [value $1,000...]]], andsec, the securities keyed by CUSIP:[name, ticker, company cik (0 none), fund 0/1, company-page ticker, splits or null, security id].data/h13/c/bucket.json(company CIK % n) anddata/h13/s/bucket.json(other securities, by a hash of the CUSIP): holders over time; a security record hascu(CUSIP),n,t,sid(security id),fund,r,h,mv,sp.- Search lists:
data/h13/sindex_c.json(companies:[cik, name, ticker, most holders, first qn, last qn, holders last quarter, company-page ticker, cik]) anddata/h13/sindex_s.json(other securities:[cusip, name, ticker, most holders, first qn, last qn, holders last quarter, fund 0/1, security id]). - Tickers of securities:
data/h13/sindex_t.json, rows[security id, ticker, company-page ticker]. No file puts a CUSIP and a ticker in the same row, so in files built from 26 November 2026 the ticker and company-page elements ofsec,tof a security record and the ticker ofsindex_s.jsonare empty: look the ticker up by the company cik, or by the security id in this file. Security ids are negative numbers and hold only between files of the same build.
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:
| Column | Meaning |
|---|---|
| dataset, period, filed, accession | Data set (13F …), the period the filing reports (quarter end), filing date, SEC filing number |
| filer_cik, filer_name | Who filed |
| subject_id, subject_name | What the row is about (a CUSIP, company or person); empty when the whole filing is meant |
| field, as_filed, shown | Which value, the value as filed, the value we show (the same when only marked) |
| kind, reason | A 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 |
| confidence | high, medium, or flag = shown as filed and marked |
| rule_id, rule_adopted, built | The 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
- Any table on any page has a “Download CSV” button under it (or its own download button). The file is made in your browser from the table as shown at that moment, with your filters and sorting: UTF-8 with a byte-order mark so Excel shows accents correctly, every awkward value quoted, amounts without “$”, “%” or thousands separators (the unit goes into the column name), dates as yyyy-mm-dd, and an extra column with the address for each column of links to filings. The first line names the page, its address, the date the data was built, the download date and the licence; the column names are on the second line. Amounts the page shows shortened (“$1.2B”) are written out in full but are only as exact as shown; the column name then says “rounded as shown”. For exact figures, use the JSON files.
- In Excel’s Power Query or a script, skip that first line (Power Query: Remove Top Rows 1, then Use First Row as Headers; Python:
pandas.read_csv(f, skiprows=1)). - Excel opens a CSV with its own guesses: long numbers that start with 0 (some CUSIPs) lose the zero, and long numbers are shown rounded. Use Data → From Text/CSV and set those columns to Text if that matters.
- Whole tables as single CSV files (all companies’ annual financials, weekly prices, every 13D/13G filing, the latest 13F holders) are being added; see below.
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
- Claude (claude.ai or the desktop app): Customize → Connectors → Add custom connector, paste the address, no sign-in, Add. Then switch it on for a chat under + → Connectors. (On the Free plan one custom connector is allowed.)
- ChatGPT (on the web, developer mode): Plugins → + → Add custom MCP server, paste the address as the server URL, authentication: none.
- Other MCP clients: Streamable HTTP at the same address; protocol versions 2025-03-26 to 2026-07-28.
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
- Stays: the addresses on this page; the names and meaning of existing keys; the order of values in existing rows (new values are only added at the end); dates as yyyy-mm-dd; amounts in US dollars and whole shares unless a column says otherwise.
- May change, and is announced here first: the number of buckets (read it from
data/holders/index.json); which quarter is the “current” 13F quarter; row limits (top 100 holders, 1,500 trades); sections of the site that are switched off (their keys and files disappear). - Changes every build: the data itself, including past values when a filing is amended or a correction rule is improved.
Built dates and update schedule
- Each file carries the date it was built (
built,asof,generatedordate). - The site is rebuilt from SEC data each time it is updated (an update every night is being set up). SEC sources themselves change at their own pace: 13D/13G and insider filings daily, insider data sets and 13F data sets quarterly, fails-to-deliver prices twice a month, two to six weeks behind.
- Updates are not yet automatic: the date in each file is the truth.
Limits you should know about
- 13F holdings are matched to companies by CUSIP; about 14% of reported value (mostly ETFs, funds and foreign listings) has no company page but still shows in each manager’s portfolio. Lists hold the largest 100 positions or holders.
- 13D/13G filings before December 2024 are free-form documents read by pattern matching; incomplete readings are marked (how read).
- Financials come from the XBRL tags companies file; foreign companies filing Form 20-F are only partly covered.
- Sizes: JSON files are at most about 1.5 MB; each
downloads/insider-trades-*.csvfile is about 10 MB.
Questions, mistakes, missing columns: contact@freesecdata.com. See also Data sources.