# SEC XBRL company facts (QuantSet API)

> Read as-filed XBRL facts using exactly one of ticker or issuer_cik. Use filed_before for an inclusive end-of-day UTC cutoff.

> ## For AI agents
> The QuantSet API is at https://api.quantset.dev. Send the key in the `X-API-Key` header. The sandbox key `mw_demo` needs no signup and reads the sample listings.
> No key yet? An agent can open an account on its own: https://api.quantset.dev/skill.md
> Connect an MCP client to https://api.quantset.dev/mcp. Client setup is at https://api.quantset.dev/agents.md.
> Start with https://api.quantset.dev/llms.txt or read the full reference at https://api.quantset.dev/llms-full.txt. The OpenAPI file is https://api.quantset.dev/openapi.json. Add `.md` to any docs URL to get that page as Markdown.

`GET https://api.quantset.dev/api/v1/sec/company-facts` · `get_sec_facts`

Send a key in the `X-API-Key` header. Try `mw_demo` with the sample selectors.
Add `format=csv` to get a UTF-8 table.
Price: 5 credits for every 50 rows returned.

## Research questions

### Which as-filed facts are available for Nvidia?

```http
GET https://api.quantset.dev/api/v1/sec/company-facts?ticker=us:NVDA&limit=20
```

Use taxonomy, concept, unit, period_end and accession to identify a fact. Retain the filed date when multiple observations describe the same period.

### Which reported asset balances were available by midyear?

```http
GET https://api.quantset.dev/api/v1/sec/company-facts?issuer_cik=0001045810&taxonomy=us-gaap&concept=Assets&filed_before=2024-06-30&limit=10
```

Keep unit, period_end, filed and accession together. Choose the filing vintage appropriate to the question.

## Reading the results

Instant facts such as assets and duration facts such as revenue cover different intervals. A repeated period can represent an amendment or a comparative supplied later.


## Coverage and limits

Use filed_before for an inclusive filing cutoff. A missing concept can reflect an issuer-specific tag or a different unit rather than a zero economic value.


## Related guides

- [Choose a listing across exchanges](https://quantset.dev/docs/guides/instrument-ids)
- [Continue a snapshot-pinned read](https://quantset.dev/docs/guides/pagination)
- [Choose a point-in-time cutoff](https://quantset.dev/docs/guides/point-in-time)
- [Choose a search strategy](https://quantset.dev/docs/guides/search)

## Parameters

- `ticker` (string, optional): Catalog selector, such as NVDA, 7203.T, or a canonical ID such as us:NVDA.
- `issuer_cik` (string, optional): SEC Central Index Key for the issuer, as one to ten decimal digits.
- `taxonomy` (string, optional): Limit results to one taxonomy, such as us-gaap.
- `concept` (string, optional): Limit results to one concept, such as Revenues.
- `start` (string, optional): First date to include, as an ISO date (YYYY-MM-DD).
- `end` (string, optional): Last date to include, as an ISO date (YYYY-MM-DD).
- `filed_before` (string, optional): Only return facts filed on or before this date, YYYY-MM-DD.
- `limit` (integer, 1 to 1,000, optional): Maximum number of rows to return.
- `cursor` (string, optional): Opaque continuation. Pass it unchanged with the original filters and snapshot_id.
- `snapshot_id` (string, optional): Pin the request to one immutable snapshot so a read across several pages stays consistent.
- `format` (json | csv, optional): Return a JSON page or UTF-8 CSV rows.
- `X-Max-Credits` (integer, 0 to 999,999,999,999, optional, in header): Refuse the request if its maximum charge exceeds this ceiling.
- `X-Workflow-Id` (string, optional, in header): Optional printable identifier for grouping charges in a research workflow.

## Response fields

- `fact_id` (string)
- `cik` (string): The company's 10-digit SEC Central Index Key.
- `entity_name` (string)
- `taxonomy` (string)
- `concept` (string)
- `unit` (string)
- `period_start` (string): The first day of the fiscal period the row covers.
- `period_end` (string): The last day of the fiscal period the row covers.
- `value` (number): The observation's value.
- `value_text` (string)
- `accession` (string): The SEC accession number of the filing the row was matched to.
- `filed` (string)
- `form` (string): The SEC form type, such as 10-K or 10-Q.
- `filing_fiscal_year` (integer)
- `filing_fiscal_period` (string)
- `frame` (string)

## Example

```
curl 'https://api.quantset.dev/api/v1/sec/company-facts?ticker=us:NVDA&limit=20' -H 'X-API-Key: mw_demo'
```

## Responses

- 200 Successful Response
- 400 Supply one credential.
- 401 Supply a valid API key.
- 402 Reduce the request ceiling or refill your credits.
- 403 Your key does not have the required access.
- 404 The requested listing is absent from the catalog.
- 409 Start the read again with the current snapshot.
- 413 Reduce the page size before requesting CSV again.
- 422 Correct the named parameter and retry.
- 429 Wait for Retry-After seconds.
- 500 The request could not be completed.
- 503 Retry safe reads after a short delay.

## Questions

**Can I try SEC XBRL company facts without signing up?** Yes. Use the sandbox key mw_demo and the sample selectors on this page.

**What does SEC XBRL company facts cost?** 5 credits for every 50 rows returned. A request that fails costs nothing.

**Which plan includes it?** Every account. Free credits, credit packs and subscriptions all read this data.

**How do I read more than one page?** When next_cursor is not null, send it back as cursor together with the same snapshot_id, and repeat until it is null.

**Can I get it as CSV or in a spreadsheet?** Yes. Add format=csv to the request. In Google Sheets, put that URL inside IMPORTDATA with a data-only key in apikey.

**Can an AI agent use this?** Yes. An agent calls it over HTTP like any client. Add .md to this page's address for a version written for agents.

**What does null mean in the response?** The value could not be confirmed. It is never a zero, so treat it as missing in your own calculations.

Group: Actions, ownership and SEC disclosures
Docs page: https://quantset.dev/docs/api/sec-company-facts
Integrations & Ecosystem: https://quantset.dev/integrations (Claude/Cursor MCP, LangGraph, PydanticAI, CrewAI, Agno, Vercel AI SDK, Mastra, Sheets =QUANTSET(), Excel, Notion & x402)
Full API guide: https://api.quantset.dev/llms-full.txt
