# Newly Filed > Newly Filed (https://newlyfiled.com) is a fast reader for SEC EDGAR filings. Every URL on the site is built from public SEC identifiers (CIK, accession number, filename), so you can construct a link to any company, filing, document, or exact sentence without calling an API first. This file explains the URL schema. If you'd rather not build URLs by hand, use the local MCP server described below; it implements this schema and computes highlight links for you. ## URL schema All paths are relative to `https://newlyfiled.com`. | Page | Path | Example | | --- | --- | --- | | Home | `/` | https://newlyfiled.com/ | | Company browser | `/browse` | https://newlyfiled.com/browse | | Company | `/companies/{cik}` or `/companies/{ticker}` | https://newlyfiled.com/companies/0000320193, https://newlyfiled.com/companies/AAPL | | Company's newest filing (redirect) | `/companies/{cik or ticker}/latest` | https://newlyfiled.com/companies/UBER/latest | | Company's newest filing of a form (redirect) | `/companies/{cik or ticker}/latest/{form}` | https://newlyfiled.com/companies/UBER/latest/10-Q | | Fund list | `/funds` | https://newlyfiled.com/funds | | Fund (mutual fund or ETF series) | `/funds/{seriesId}` | https://newlyfiled.com/funds/S000052767 | | Filing overview (document list) | `/filings/{accession}` | https://newlyfiled.com/filings/0000320193-26-000026 | | Primary document in the viewer | `/filings/{accession}/view` | https://newlyfiled.com/filings/0000320193-26-000026/view | | A specific document | `/filings/{accession}/view/{filename}` | https://newlyfiled.com/filings/0000320193-26-000018/view/a8-kex991q3202606272026.htm | | Pricing | `/pricing` | https://newlyfiled.com/pricing | | API docs | `/docs` | https://newlyfiled.com/docs | ### Identifiers - `{cik}`: SEC Central Index Key. Padded (`0000320193`) or unpadded (`320193`) both work; padded is canonical. - `{ticker}`: works anywhere a CIK does, case-insensitive. Share classes can be written dashed or dotted (`BRK-B`, `BRK.B`). An all-digit value is always read as a CIK. Prefer the CIK for links that must last: a CIK never changes, but tickers get reassigned. - `{accession}`: the filing's accession number, **dashed**: `0000320193-26-000026`. EDGAR folder URLs use the same digits without dashes (`000032019326000026`); add the dashes back (10-2-6 digits). Any EDGAR accession works, including filings the site hasn't indexed yet: the first visit fetches it from EDGAR. - `{filename}`: the document's filename inside the filing, exactly as on EDGAR (`aapl-20260926.htm`, `ex21.htm`). Percent-encode each path segment. Omit it to open the primary document. - `{seriesId}`: EDGAR fund series id, `S` followed by 9 digits. ### Converting EDGAR links | EDGAR URL | Newly Filed URL | | --- | --- | | `https://www.sec.gov/Archives/edgar/data/{cik}/{accessionNoDashes}/{filename}` | `/filings/{accession}/view/{filename}` | | `https://www.sec.gov/ix?doc=/Archives/edgar/data/{cik}/{accessionNoDashes}/{filename}` | `/filings/{accession}/view/{filename}` | | `https://www.sec.gov/Archives/edgar/data/{cik}/{accessionNoDashes}/{accession}-index.htm` | `/filings/{accession}` | | `https://www.sec.gov/Archives/edgar/data/{cik}/{accessionNoDashes}/{accession}.txt` | `/filings/{accession}` | | `https://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK={cik}` | `/companies/{cik}` | ### Linking to a section or a sentence Document viewer URLs accept two extras: - `#{id}`: scroll to the element with that id in the document, the way the document's own table-of-contents links do. Ids are whatever the filer wrote, so take them from the document's HTML; don't guess. - `?h={token}`: scroll to a passage and highlight it. Browsers' `#:~:text=` fragments don't work here (documents render inside an iframe, where browsers ignore them), so the viewer uses its own token. `h` is base64url (no padding) of a compact JSON object: - Text: `{"k":"t","o":OFFSET,"l":LENGTH}`. `OFFSET` and `LENGTH` count UTF-16 code units in the concatenation of every text node under `` of the HTML the viewer loads, in document order, with no whitespace normalization. Script and style text counts too. Those offsets come from the viewer's copy of the document, not the raw EDGAR file, so computing them by hand is error-prone. Use the MCP's `document_url` tool with a `quote` instead. - Image: `{"k":"i","s":SRC,"n":INDEX}`: the `INDEX`-th (0-based) `` whose `src` equals or ends with `SRC`. Example (highlights "The Company designs, manufactures and markets smartphones" in Apple's FY2026 10-K): https://newlyfiled.com/filings/0000320193-26-000026/view/aapl-20260926.htm?h=eyJrIjoidCIsIm8iOjIxNTg5LCJsIjo1N30 A highlight belongs to one document, so always name the filename in the path when you use `h`. ### Latest filing shortcuts `/companies/{cik or ticker}/latest` and `/companies/{cik or ticker}/latest/{form}` are redirects, worked out when someone opens them, so the link keeps pointing at the newest filing as new ones arrive. Link the accession URL instead when the link must never change. - **Bare `/latest`** is the literal newest filing, of any form. It opens the filing overview, `/filings/{accession}`. For a large company this is usually an insider Form 4, so ask for a form when you mean a report. - **`/latest/{form}`** opens that form's newest primary document, `/filings/{accession}/view`. The form is case-insensitive, and a dash can stand for a space: `10-q`, `def-14a`, `schedule-13g`. Amendments are separate forms, so write `/latest/10-K/A`, or add `?amendments=1` to `/latest/10-K` to match both. - **`/latest/periodic`** is the newest 10-K, 10-Q, 20-F or 40-F. - **Newest** means latest filing date, then latest EDGAR acceptance time, then accession. Same-day filings always come out in the same order. - **Nothing matches:** for an unknown company, the redirect goes to the company page, which returns 404. A company with no filing of that form gets a 404 page that names the form. The same rule is in the API as `GET https://api.newlyfiled.com/v1/companies/{cik or ticker}/filings/latest?form={form}`. ### Search `/browse` and `/funds` have a search box. `?q=` only prefills it; the results don't load until the user runs the search. To find a company programmatically, use the API. ## MCP server `newly-filed-mcp` is a local (stdio) MCP server that implements this schema. Docs: https://newlyfiled.com/docs/mcp. It's on npm as [`newly-filed-mcp`](https://www.npmjs.com/package/newly-filed-mcp) and in the [official MCP Registry](https://registry.modelcontextprotocol.io) as `com.newlyfiled/newly-filed`. URL building happens on your machine; only ticker lookups, filing lists and quote highlighting call the public site and API. Claude Code: ```sh claude mcp add newly-filed -- npx -y newly-filed-mcp@latest ``` Any MCP client (JSON config): ```json { "mcpServers": { "newly-filed": { "command": "npx", "args": ["-y", "newly-filed-mcp@latest"] } } } ``` Needs Node 18+. `@latest` picks up new releases when the client next starts the server. Tools: - `latest_filing`: a company's newest filing, or its newest of one `form` (or `periodic`). Returns the permanent filing and viewer URLs plus the `/latest` shortcut. With no form it is literally the newest filing, often a Form 4. - `list_filings`: a company's filings, newest first, optionally of one form, with their URLs. Use it to choose a filing when the request is loose. - `company_url`: company page from a CIK or a ticker (checks the ticker exists, returns both URL forms). - `fund_url`: fund page from a series id. - `filing_url`: filing overview and primary-document viewer URLs from an accession (dashed, undashed, or inside an EDGAR URL). - `document_url`: viewer URL for a document, with an optional `#anchor`, image highlight, or text highlight. Pass `quote` and it fetches the document, finds the passage (ignoring case, whitespace, and curly vs. straight quotes), and returns the URL plus the matched text so you can check it. - `edgar_to_newlyfiled_url`: sec.gov link to Newly Filed link. - `explain_url`: decode a Newly Filed URL, including what its `?h=` highlight points at and which filing a `/latest` shortcut opens now. ## API - [API docs](https://newlyfiled.com/docs): REST API for companies, filings, funds, and prices. - [MCP server docs](https://newlyfiled.com/docs/mcp) - [OpenAPI spec](https://api.newlyfiled.com/v1/openapi.json) - One company: `GET https://api.newlyfiled.com/v1/companies/{cik or ticker}` - Company search: `GET https://api.newlyfiled.com/v1/companies?q={query}` - A company's filings, newest first (filing date, then acceptance time): `GET https://api.newlyfiled.com/v1/companies/{cik or ticker}/filings?form={formType}&limit={n}&offset={n}`. Omit `limit` for the whole history. `form` matches the way `/latest/{form}` does, and `amendments=1` adds `/A`. The response also includes `company` (`cik`, `name`, `ticker`). - A company's newest filing: `GET https://api.newlyfiled.com/v1/companies/{cik or ticker}/filings/latest?form={formType}` - Filings across companies: `GET https://api.newlyfiled.com/v1/filings?cik={cik or ticker}&form={formType}` - One filing with its documents: `GET https://api.newlyfiled.com/v1/filings/{accession}`