Introducing the Wiley x Valyu HLS Startup Program
Valyu
A SpaceX Falcon 9 rocket lifting off at night from Launch Complex 39A at NASA's Kennedy Space Center, lit by its exhaust plume.
Tutorial

N-PORT API: How to Track What Funds and ETFs Buy and Sell From SEC Filings

Prosper
Share this article

On this page
TL;DR
  • Form N-PORT is the holdings report mutual funds and ETFs file with the SEC. Ask Valyu what a fund holds and you get its latest report as a table of positions, weights and values.
  • Each holding carries a fair value level, so you can spot private or hard-to-price positions that the fund values itself rather than at a market price.
  • Compare two reports to see what a fund bought and sold, or flip the question to find which funds hold a given stock. DeepResearch can then write it up for you.
  • The guide uses ARK Innovation ETF, including its private OpenAI stake, as the worked example and checks the figures against EDGAR.

If you're an agent: Set up Valyu and make your first search.

If you're a human: Create an account and get an API key.

MCP onboarding: Connect your agent to https://mcp.valyu.ai/mcp and follow the MCP setup guide for authentication.

What is Form N-PORT?

Form N-PORT is the report in which registered funds give the SEC their portfolio holdings for each month. Mutual funds, closed-end funds and most ETFs file it; money market funds and small business investment companies do not. Each report lists every holding with its value, its share of the fund's net assets, its asset type, its country and its fair value level, along with fund-level figures such as net assets and monthly returns.

Only part of it is public. Funds file the reports for all three months of a fiscal quarter within 60 days of the quarter end, and the report for the third month is made public as form type NPORT-P. Amendments adopted in 2024 would make every month public, but in April 2025 the SEC delayed them to November 17, 2027 for larger fund groups, and in February 2026 it proposed keeping quarterly publication.

N-PORT is not the same as a 13F. A 13F covers one investment manager's US-listed equities across all its accounts. An N-PORT covers one fund and everything in it, including bonds, derivatives, cash funds and private company shares. That last part is what this guide is about, using ARK Innovation ETF as the worked example.

What did ARK file?

FiledJune 23, 2026September 22, 2026
SEC accession0000940400-26-0250840000940400-26-037955
Holdings4647
Net assets$6.48 billion$5.56 billion
Holdings valued at Level 31 (OpenAI Series C)1 (OpenAI Series C)

July 31 is the end of ARK's fiscal year, so each public report falls at the end of January, April, July or October.

Figure 1. What changed in ARK Innovation ETF between its April 30 and July 31, 2026 N-PORT reports.

Step 1: ask what a fund holds

Install the SDK and set your key:

Shell
pip install valyu
export VALYU_API_KEY="your-api-key"
Shell
npm install valyu-js
export VALYU_API_KEY="your-api-key"

Then ask the question in plain English with Search, limited to SEC filings:

from valyu import Valyu
 
valyu = Valyu() # reads VALYU_API_KEY
 
response = valyu.search(
"What does the ARK Innovation ETF hold?",
included_sources=["valyu/valyu-sec-filings"],
max_num_results=1,
)
 
result = response.results[0]
meta = result.metadata
print(meta["name"], meta["report_period_date"], meta["filing_date"], meta["accession_number"])
print(meta["row_count"], "holdings")
print(result.content) # one row per holding: name, ticker, value, % of net assets, asset type

This returned ARK's July 31 report, filed September 22, as a 47-row table for $0.012. The ten largest holdings:

HoldingValue at July 31% of net assets
Tesla$541.6 million9.74%
Tempus AI$271.9 million4.89%
SpaceX$271.1 million4.87%
CRISPR Therapeutics$263.3 million4.73%
Shopify$242.3 million4.36%
Coinbase$231.8 million4.17%
Advanced Micro Devices$221.6 million3.98%
Circle Internet Group$217.1 million3.90%
Robinhood Markets$202.2 million3.64%
Twist Bioscience$184.1 million3.31%

The asset type column uses N-PORT's codes: EC is common equity, EP is preferred equity and STIV is a short-term investment vehicle, here a Treasury money market fund. The 13th row is the one most readers come for: OpenAI Group PBC Series C, $172.6 million, 3.10%.

Step 2: find the holdings with no market price

N-PORT records each holding's fair value level. Level 1 means a quoted price in an active market, Level 2 means other observable inputs, and Level 3 means unobservable inputs: the fund estimates the value itself. Use Search to find the report, then Contents to read the filing itself, which comes back as JSON with every field, and keep the Level 3 holdings:

import json
from valyu import Valyu
 
valyu = Valyu()
 
# 1. Find the fund's latest public N-PORT report.
meta = valyu.search(
"What does the ARK Innovation ETF hold?",
included_sources=["valyu/valyu-sec-filings"],
max_num_results=1,
).results[0].metadata
 
# 2. Read the filing itself and keep the holdings valued at Level 3.
folder = f"https://www.sec.gov/Archives/edgar/data/{int(meta['cik'])}/{meta['accession_number'].replace('-', '')}"
filing = json.loads(valyu.contents(urls=[folder + "/primary_doc.xml"], response_length="max").results[0].content)
 
for h in filing["formData"]["invstOrSecs"]["invstOrSec"]:
if h["fairValLevel"] == "3": # valued with unobservable inputs, not a market price
print(h["name"], h["assetCat"], h["balance"], h["valUSD"], h["pctVal"])

One of the 47 holdings came back: 254,476 preferred shares of OpenAI Group PBC Series C, worth $172,563,178.42, or 3.10% of the fund. Every other holding was Level 1, including SpaceX and Cerebras, which by July were trading on Nasdaq. The two calls cost $0.01325.

The stake is new this year. It is not in ARK's January 30 report and first appears on April 30, at the same 254,476 shares, valued at $174,999,811.56. That is $687.69 a share in April and $678.11 in July. Both figures are ARK's own estimates for a company with no public share price, so read the 3.10% as the fund's valuation, not a market price.

Step 3: compare two quarters

Ask for the fund's holdings history and you get rows from several reports, newest first. This groups them by report date and compares the latest two:

import html
from collections import defaultdict
from valyu import Valyu
 
valyu = Valyu()
 
result = valyu.search(
"ARK Innovation ETF N-PORT holdings history",
included_sources=["valyu/valyu-sec-filings"],
max_num_results=1,
).results[0]
 
# Read the markdown table by its header, then group share balances by report period.
lines = [l for l in result.content.splitlines() if l.startswith("|") and "---" not in l]
header = [c.strip() for c in lines[0].strip("|").split("|")]
shares = defaultdict(dict)
for line in lines[1:]:
row = dict(zip(header, (html.unescape(c.strip()) for c in line.strip("|").split("|"))))
holding = f"{row['name']} ({row['ticker'] or 'no ticker'})"
shares[row["report_period_date"]][holding] = float(row["balance"].replace(",", ""))
 
latest, previous = sorted(shares, reverse=True)[:2]
now, before = shares[latest], shares[previous]
print(f"{previous} ({len(before)} holdings) -> {latest} ({len(now)} holdings)")
print("New:", sorted(set(now) - set(before)))
print("Exited:", sorted(set(before) - set(now)))
print("Same share count:", sorted(h for h in now if before.get(h) == now[h]))

It printed:

yaml
2026-04-30 (46 holdings) -> 2026-07-31 (47 holdings)
New: ['ALPHABET INC (GOOGL)', 'CEREBRAS SYSTEMS INC (CBRS)', 'ELI LILLY & COMPANY (LLY)', 'SNOWFLAKE INC (SNOW)', 'SPACE EXPLORATION TECHNOLOGIES CORP (SPCX)']
Exited: ['ALIBABA GROUP HOLDING LTD (BABA)', 'BAIDU INC (BIDU)', 'FIGMA INC (FIG)', 'ROKU INC (ROKU)']
Same share count: ['OPENAI GROUP PBC SERIES C (no ticker)']

SpaceX listed on Nasdaq in June 2026 at $135.00 a share, and Cerebras listed in May at $185, so both arrived in the fund between the two reports. Roku had been 4.33% of the fund in April. Of the 42 holdings in both reports, OpenAI was the only one whose share count did not change.

The history query returned 100 of ARK's 1,035 historical rows, enough to cover both reports in full. For a fund with thousands of holdings, such as Vanguard Total Stock Market Index Fund with 3,546, the 100-row limit cuts in long before that, so pull each filing with Contents as in Step 2.

Step 4: ask which funds hold a stock

Turn the question around to see every fund that reports a position. Use the ticker:

from valyu import Valyu
 
valyu = Valyu()
 
result = valyu.search(
"which funds hold SPCX",
included_sources=["valyu/valyu-sec-filings"],
max_num_results=1,
).results[0]
 
meta = result.metadata
print(meta["returned_count"], "of", meta["total_count"], "fund positions")
print(result.content) # fund, security, value, % of the fund's net assets

This returned the largest 50 or 100 fund holdings of SpaceX, depending on the run, out of more than 750 in the index, for $0.012. The top six:

FundSpaceX value% of the fund
Baron Partners Fund$6.31 billion34.96%
Vanguard Total Stock Market Index Fund$3.20 billion0.14%
Growth Fund of America$1.60 billion0.45%
Baron Focused Growth Fund$1.58 billion28.13%
Baron Asset Fund$1.37 billion34.06%
Invesco NASDAQ 100 ETF$1.26 billion1.21%

We checked the top row against Baron Partners Fund's June 30 report: 36,938,300 shares, $6,311,277,938, exactly as listed. Two things to know before you rely on the list.

First, each row comes from that fund's latest public report, so dates differ: Baron's is June 30, ARK's is July 31. Second, the list can miss positions filed without a standard identifier. Fidelity Contrafund's June 30 report shows 73,188,869 SpaceX shares worth $12.5 billion, 6.95% of the fund, filed as Class A shares under a 180-day lock-up with no CUSIP. That would be the largest row, and it is not in the list. A search for funds holding OpenAI returned nothing at all. For private or newly listed companies, check the largest holders' own reports as well.

Step 5: check a number against EDGAR

Before a figure goes into a client note, check the totals against the filing. Contents returns an N-PORT filing's XML converted to JSON, so the fields are easy to read:

import json
from valyu import Valyu
 
valyu = Valyu()
 
url = "https://www.sec.gov/Archives/edgar/data/1579982/000094040026037955/primary_doc.xml"
filing = json.loads(valyu.contents(urls=[url], response_length="max").results[0].content)
 
form = filing["formData"]
holdings = form["invstOrSecs"]["invstOrSec"]
print(form["genInfo"]["seriesName"], form["genInfo"]["repPdDate"], "| net assets", form["fundInfo"]["netAssets"])
print(len(holdings), "holdings | total value", round(sum(float(h["valUSD"]) for h in holdings), 2))
 
for h in holdings:
if h["fairValLevel"] == "3":
print(h["name"], h["balance"], h["valUSD"], h["pctVal"])

This cost $0.00125 and printed 47 holdings, net assets of $5,562,264,980.05 and the OpenAI row with fair value Level 3. We also compared every holding in both ARK reports with the raw XML on EDGAR, share for share and dollar for dollar, and they matched.

Step 6: ask DeepResearch for a write-up

DeepResearch in instant mode reads the filings you pass it and answers in plain English with citations. Pass EDGAR's rendered version of each report: when we passed the raw XML, it could not read the July report.

from valyu import Valyu
 
valyu = Valyu() # reads VALYU_API_KEY
 
july = "https://www.sec.gov/Archives/edgar/data/1579982/000094040026037955/xslFormNPORT-P_X01/primary_doc.xml"
april = "https://www.sec.gov/Archives/edgar/data/1579982/000094040026025084/xslFormNPORT-P_X01/primary_doc.xml"
 
task = valyu.deepresearch.create(
query=(
"Compare ARK Innovation ETF's N-PORT reports for April 30 and July 31, 2026. "
"Which holdings were added and which were sold out of, and which holdings are valued "
"at fair value Level 3, with their share counts, values and percentage of net assets? "
"Cite the filings."
),
mode="instant",
urls=[july, april],
search={"included_sources": ["valyu/valyu-sec-filings", "sec.gov"]},
)
 
result = valyu.deepresearch.wait(task.deepresearch_id)
print(result.output)
for source in result.sources or []:
print("-", source.title, source.url)

That example uses instant mode (1 step) for a quick cited answer, but DeepResearch offers five modes that scale the research budget and depth: instant (1 step), fast (up to 12 steps), standard (up to 25 steps), heavy (up to 45 steps) and max (up to 75 steps).

For deeper, more thorough fund analysis across multiple filings, switch mode to "standard" or "heavy" (pass mode explicitly, because the Python SDK defaults to "standard" while the TypeScript SDK defaults to "fast"), add research_strategy (researchStrategy in TypeScript) and report_format (reportFormat) to steer which sections DeepResearch cross-checks and how it structures the write-up, and request downloadable deliverables such as CSV or Excel files (available in every mode except instant).

Here is how to run a deeper multi-step comparison in Python and TypeScript:

from valyu import Valyu
 
valyu = Valyu() # reads VALYU_API_KEY
 
july = "https://www.sec.gov/Archives/edgar/data/1579982/000094040026037955/xslFormNPORT-P_X01/primary_doc.xml"
april = "https://www.sec.gov/Archives/edgar/data/1579982/000094040026025084/xslFormNPORT-P_X01/primary_doc.xml"
 
task = valyu.deepresearch.create(
query=(
"Analyze ARK Innovation ETF's April 30 and July 31, 2026 N-PORT filings. "
"Detail every new position, full exit, largest weight shifts, and fair value "
"Level 3 holdings, and cross-check material portfolio changes against recent "
"issuer SEC filings."
),
mode="standard", # use "heavy" or "max" for multi-fund or multi-quarter deep dives
urls=[july, april],
search={"included_sources": ["valyu/valyu-sec-filings", "sec.gov"]},
research_strategy=(
"Verify every ticker, share count, market value, percentage of net assets, and "
"fair value level directly from both N-PORT filings before pulling issuer context."
),
report_format=(
"Executive summary, additions and exits table, Level 3 fair value table, "
"and cited commentary on the biggest allocation shifts."
),
deliverables=[
{
"type": "csv",
"description": "One row per added, exited, or Level 3 holding with April and July values.",
"columns": ["issuer", "status", "fair_value_level", "april_val_usd", "july_val_usd", "source_url"],
}
],
)
 
result = valyu.deepresearch.wait(task.deepresearch_id)
print(result.output)
for dl in result.deliverables or []:
print(dl.type, dl.title, dl.url)

We ran it twice; each answer took one to two minutes, and the two answers differed. Both found all five additions with the right share counts and values. One listed all four exits correctly; the other missed Roku and Alibaba and named PagerDuty, which was in neither report. Neither confirmed OpenAI's Level 3 status in July, and one said the filings do not disclose fair value levels at all. They do: the July XML records OpenAI as Level 3, as Step 2 shows. Use the write-up as a first draft and take the numbers from Steps 1 to 3.

We also tried the curated SEC Filing Changes workflow, hf-filing-diff, one of the DeepResearch Workflows in beta, on the same two reports. It took about 15 minutes and found only SpaceX and Cerebras among the additions and none of the exits, so for N-PORT comparisons use Step 3. Workflows suit the research around a fund better: Company Profile (ib-company-profile) on a holding, or Sector Deep Dive (hf-sector-deep-dive) on the themes a fund buys. We did not run those two for this guide. List every workflow with valyu.workflows.list().

Example: how much OpenAI does a client really own?

The problem. A client has $50,000 in ARK Innovation ETF and has read that the fund owns OpenAI. They ask their adviser how much OpenAI they own and how reliable that number is.

The decision. Step 2 answers both parts. At July 31, OpenAI was 3.10% of the fund, about $1,550 of a $50,000 position, but that is ARK's own Level 3 estimate. SpaceX, at 4.87% or about $2,435, is priced on Nasdaq. The figures are as of July 31 and were published September 22, so the fund may have traded since.

The next action. ARK's next fiscal quarter ends in late October, and its public report is due within 60 days, by the end of December 2026. Rerun Steps 2 and 3 when it appears to see whether the OpenAI stake or its value has changed.

The outcome. A short answer the client can follow, with the share of the fund, the caveat about valuation and the accession number of the source. This is an example of reading a disclosure, not investment advice.

What if the search goes wrong?

  • A timeout or an empty result: retry. A few queries timed out on the first attempt and returned within seconds on the next. Questions that named a past date, such as "ARK Innovation ETF N-PORT holdings April 30, 2026", timed out every time in our tests, so use the history query in Step 3 instead.
  • A different table than you expected: wording changes the shape of the answer. "ARK Innovation ETF N-PORT changes from previous filing" returned net assets and holding counts by period, not holdings. Read columns by their header, as Step 3 does.
  • Per-holding fields are missing: the search result's metadata does not always include them. Read them from the filing with Contents, as Step 2 does.
  • The list looks short: compare returned_count with total_count in the metadata; large tables are capped at 50 or 100 rows.
  • A holder you know about is missing: it may be filed without a ticker or CUSIP, as Contrafund's SpaceX shares were. Search for that fund's holdings directly.

FAQ

What is Form N-PORT?

It is the SEC report in which registered funds disclose their portfolio holdings each month, with each holding's value, share of net assets, asset type and fair value level.

Who files Form N-PORT?

Registered management investment companies, such as mutual funds and closed-end funds, other than money market funds and small business investment companies, plus ETFs organized as unit investment trusts.

When are N-PORT filings due, and when are they public?

Funds file the reports for each month of a fiscal quarter within 60 days of the quarter end. Only the report for the third month is made public. ARK filed its July 31 report on September 22 and its April 30 report on June 23.

What are NPORT-P and NPORT-EX?

NPORT-P is the public N-PORT report, the version you can read on EDGAR. NPORT-EX is the portfolio holdings exhibit, Part F of the form: for the first and third quarters of its fiscal year, a fund attaches its complete holdings, presented under Regulation S-X, within 60 days of the period end. ARK's April 30 report, the end of the third quarter of its fiscal year, came with one.

What is the difference between N-PORT and 13F?

A 13F is filed quarterly by investment managers with $100 million or more in Section 13(f) securities and lists those securities across the manager's accounts. An N-PORT is filed for each fund and lists everything that fund holds, including bonds, derivatives and private shares, with each holding's share of the fund.

What does fair value Level 3 mean?

The holding is valued with unobservable inputs, because no market price exists. Private company shares, like ARK's OpenAI stake, are typical examples. Level 1 uses quoted prices in active markets and Level 2 uses other observable inputs.

Will N-PORT holdings become public every month?

Amendments adopted in 2024 would require it, but the SEC moved their compliance dates to November 17, 2027 for larger fund groups and May 18, 2028 for smaller ones. In February 2026 it proposed keeping quarterly publication instead.

How do I find which funds own a stock?

Ask "which funds hold" followed by the ticker, as in Step 4. Check the dates on each row, and look up the largest expected holders directly, because positions filed without a standard identifier can be missed.

Does the SEC publish N-PORT data in bulk?

Yes. The SEC posts Form N-PORT data sets every quarter, built from the structured data in the filings; the latest covers the third quarter of 2026. The SEC says it cannot guarantee their accuracy, so check important figures against the filings.

Is there a free N-PORT API?

EDGAR publishes every public N-PORT for free as XML, which you parse yourself. Valyu returns holdings as tables, reads any filing as JSON, and answers reverse questions such as which funds hold a stock. New accounts get free credits every month, up to 2,000 with a work email; each search in this guide cost $0.012 and each Contents call $0.00125.

How do I search N-PORT filings in ChatGPT or Claude?

Add Valyu as a custom connector with https://mcp.valyu.ai/mcp, sign in, and ask, for example, "Use Valyu to show what the ARK Innovation ETF holds." The chat apps guide has the setup steps. We tested the API calls in this article, not the chat interfaces.

Build your own fund holdings workflow

Ask what a fund holds, find the positions it values itself, compare quarters and see who else holds a stock, then confirm the figures that matter on EDGAR. Get an API key, see the finance use cases, or read how to compare institutional holdings across multiple filings and the best SEC filings APIs for AI agents.

Cover photograph: Falcon 9 launch of SpaceX's CRS-31 mission. SpaceX / Wikimedia Commons. CC0. Cropped and resized for this cover.

Valyu Add

Join 12,000+ professionals and knowledge workers.

Valyu Add is a free weekly research briefing for builders, investors and operators. Every issue is sourced, cited and verified with Valyu DeepResearch.