SEC API in JavaScript and Node.js
Uses Filings search, 13F holdings
There's no SDK to install. Every endpoint is a POST with a JSON body, so fetch is enough in Node 18 and later, Deno, Bun and Cloudflare Workers.
A typed search function
type Total = { value: number; relation: "eq" | "gte" };
type Page<T> = { total: Total; data: T[] };
type ApiError = { error: { code: string; message: string } };
const BASE = "https://www.quantisnow.com/api/v1";
export async function search<T = Record<string, unknown>>(
endpoint: string,
query: string,
opts: { size?: number; from?: number; sort?: string } = {},
): Promise<Page<T>> {
const res = await fetch(BASE + "/" + endpoint, {
method: "POST",
headers: {
Authorization: "Bearer " + process.env.QUANTISNOW_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({ query, size: opts.size ?? 50, from: opts.from ?? 0, sort: opts.sort }),
});
if (!res.ok) {
const { error } = (await res.json()) as ApiError;
throw new Error(res.status + " " + error.code + ": " + error.message);
}
return (await res.json()) as Page<T>;
}
export async function* searchAll<T>(endpoint: string, query: string, sort?: string) {
for (let from = 0; from < 10_000; from += 50) {
const page = await search<T>(endpoint, query, { from, sort });
yield* page.data;
if (from + 50 >= page.total.value) return;
}
}Use it
type Holding = { manager: { name: string }; shares: number; valueUsd: number; change: string };
const page = await search<Holding>("13f/holdings", "issuer.ticker:NVDA AND change:new AND period:2026-06-30", {
sort: "valueUsd:desc",
size: 10,
});
console.log(page.total.value, "new positions");
for (const h of page.data) console.log(h.manager.name, h.valueUsd);Which funds opened a new position in Nvidia last quarter?
New positions are the clearest read of fresh conviction in a 13F, larger ones first.
curl -X POST https://www.quantisnow.com/api/v1/13f/holdings \
-H "Authorization: Bearer $QUANTISNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "issuer.ticker:NVDA AND change:new AND period:2026-06-30",
"from": 0,
"size": 5,
"sort": [
{
"valueUsd": {
"order": "desc"
}
}
]
}'Response
{
"total": {
"value": 216,
"relation": "eq"
},
"data": [
{
"id": "0001313360-26-000003:1045810",
"period": "2026-06-30",
"filedOn": "2026-08-07",
"accessionNo": "0001313360-26-000003",
"manager": {
"cik": "0001313360",
"name": "SG Americas Securities, LLC",
"city": "NEW YORK",
"state": "NY"
},
"issuer": {
"cik": "0001045810",
"ticker": "NVDA",
"name": "NVIDIA Corporation"
},
"shares": 62298007,
"valueUsd": 12465208000,
"previousShares": 0,
"change": "new",
"changeValueUsd": 12465208000
},
{
"id": "0001213900-26-088240:1045810",
"period": "2026-06-30",
"filedOn": "2026-08-12",
"accessionNo": "0001213900-26-088240",
"manager": {
"cik": "0001633516",
"name": "NewEdge Advisors, LLC",
"city": "NEW ORLEANS",
"state": "LA"
},
"issuer": {
"cik": "0001045810",
"ticker": "NVDA",
"name": "NVIDIA Corporation"
},
"shares": 3483179,
"valueUsd": 696949263,
"previousShares": 0,
"change": "new",
"changeValueUsd": 696949263
},
{
"id": "0000894189-26-022265:1045810",
"period": "2026-06-30",
"filedOn": "2026-08-13",
"accessionNo": "0000894189-26-022265",
"manager": {
"cik": "0001616667",
"name": "Pacer Advisors, Inc.",
"city": "Malvern",
"state": "PA"
},
"issuer": {
"cik": "0001045810",
"ticker": "NVDA",
"name": "NVIDIA Corporation"
},
"shares": 2869099,
"valueUsd": 574078000,
"previousShares": 0,
"change": "new",
"changeValueUsd": 574078000
},
{
"id": "0001214659-26-010174:1045810",
"period": "2026-06-30",
"filedOn": "2026-08-14",
"accessionNo": "0001214659-26-010174",
"manager": {
"cik": "0001905218",
"name": "RK Capital Management, LLC/FL",
"city": "Weston",
"state": "FL"
},
"issuer": {
"cik": "0001045810",
"ticker": "NVDA",
"name": "NVIDIA Corporation"
},
"shares": 2668200,
"valueUsd": 533880138,
"previousShares": 0,
"change": "new",
"changeValueUsd": 533880138
},
{
"id": "0001974312-26-000006:1045810",
"period": "2026-06-30",
"filedOn": "2026-08-14",
"accessionNo": "0001974312-26-000006",
"manager": {
"cik": "0001974312",
"name": "TORNO CAPITAL, LLC",
"city": "COHASSET",
"state": "MA"
},
"issuer": {
"cik": "0001045810",
"ticker": "NVDA",
"name": "NVIDIA Corporation"
},
"shares": 2425000,
"valueUsd": 485218250,
"previousShares": 0,
"change": "new",
"changeValueUsd": 485218250
}
]
}In the browser
The API sends CORS headers, so a page can call it directly. Anyone who opens the page can read the key, though, so put browser calls behind your own server unless the key is meant to be public and you're fine with its calls being spent.
From an AI agent
If you're building an agent with the MCP TypeScript SDK, connect to the MCP server instead and let the model write the queries. The raw JSON-RPC page has the client code.