---
title: "Fetch the per-disclosure HTML table of a filing, styled"
method: GET
path: "/api/v1/filings/{filing_id}/disclosure-html"
tags: ["Filings"]
---

# Fetch the per-disclosure HTML table of a filing, styled

`GET /api/v1/filings/{filing_id}/disclosure-html`

## Request

- Base URL: `https://api.hub-equity.com`
- URL: `https://api.hub-equity.com/api/v1/filings/{filing_id}/disclosure-html`
- Auth: HTTP bearer

Returns the SEC ``R{n}.htm`` for the requested ``link_role``, with our CSS injected so the table renders consistently with the rest of the platform (system font, design tokens, hidden dictionary noise rows, alternating member backgrounds), suitable for an ``<iframe srcdoc>``. ``html`` is null when the source fetch fails or the link_role is not exposed; use ``viewer_url`` in that case.

## Path parameters

- `filing_id` string, required

## Query parameters

- `link_role` string, required: XBRL link_role URI to resolve

## Response `200`

Successful Response

- ApiResponseDisclosureHtmlPayload
  - `success` boolean, required
  - `data` DisclosureHtmlPayload: Payload returned by ``GET /filings/{id}/disclosure-html``.
    - `filing_id` string, required
    - `link_role` string, required
    - `title` string, nullable: Human-readable disclosure title parsed from the SEC table corner (e.g. 'Revenue Classified by Significant Product and Service Offerings (Detail) - USD ($) $ in Millions').
    - `html` string, nullable: Self-contained HTML document with our CSS override applied, suitable for ``<iframe srcdoc>``. None when SEC is unreachable or the role is not exposed in FilingSummary.xml.
    - `source_url` string, nullable: Absolute URL of the original SEC R{n}.htm (for the 'Open original' link).
    - `viewer_url` string, nullable: Filing's iXBRL viewer URL (fallback when html is None).
    - `anchor_fact_id` string, nullable: iXBRL element ID of the topmost fact in this disclosure's presentation tree. When non-null, the frontend can build `{viewer_url}#{fact_id}` (SEC ix-viewer) or `{viewer_url}#f-{fact_id}` (Arelle) to scroll the original 10-K to the exact section. Null when no tagged fact exists in this link_role (legacy filings, abstract-only roles).
    - `document_lang` string, nullable: ISO 639-1 language code declared by the filing document (ESEF filings are deposited in the home-state language). Null for SEC filings (English) and when the filer declared no xml:lang.
  - `error` ApiError: API error details.
    - `code` string, required
    - `message` string, required
    - `details` object, nullable
  - `meta` ApiMeta: API response metadata. Pagination fields (``page`` / ``per_page`` / ``total``) are populated on collection endpoints only. They are omitted from the payload on single-resource endpoints.
    - `timestamp` string, date-time
    - `request_id` string, nullable
    - `page` integer, nullable
    - `per_page` integer, nullable
    - `total` integer, nullable
  - `links` ApiLinks: HATEOAS-style pagination cursors. Host-relative path + query links for a collection page. Present on collection endpoints, ``null`` fields where a page doesn't exist (``next`` on the last page, ``prev`` on the first). The whole ``links`` object is omitted from single-resource responses (see ``ApiResponse`` serializer).
    - `self` string, nullable
    - `first` string, nullable
    - `prev` string, nullable
    - `next` string, nullable
    - `last` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/hub-equity/apis/hub-equity-api.md) · [All operations](https://skmtc.dev/hub-equity/apis/hub-equity-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hub-equity/apis/hub-equity-api/revisions/e8eeda5dc13e?raw)
