---
title: "Read filing text by doc_id"
method: GET
path: "/v1/documents/{doc_id}/read"
tags: ["stocks"]
---

# Read filing text by doc_id

`GET /v1/documents/{doc_id}/read`

## Request

- Base URL: `https://api.tapetide.com`
- URL: `https://api.tapetide.com/v1/documents/{doc_id}/read`
- Auth: HTTP bearer

Markdown text of a parsed filing addressed by its doc_id alone (the doc_id names its company), by page range, with <!-- page N --> markers. At most 12 pages / 24,000 chars per call (max_chars up to 60,000); the response states pages_returned and next_pages and carries links to the full Markdown and PDF for local search. Same response as `/v1/stocks/{symbol}/documents/read?doc_id=`. An unknown doc_id is a 404.

## Path parameters

- `doc_id` integer, required

## Query parameters

- `pages` string
- `max_chars` integer

## Response `200`

OK. Costs one request unit.

- Envelope
  - `data` unknown, required
  - `meta` object, required: Paging and window information where the route pages (e.g. `window.next_cursor` on price history).
    - `as_of` string, date-time: When this response was assembled (UTC).
    - `route` string: The operationId that served it.

## Other responses

- `400`: Malformed or out-of-range parameter. Not charged.
- `401`: Missing or invalid bearer token.
- `404`: The symbol, index or document does not exist. Not charged.
- `429`: Per-minute burst cap (`rate_limited`) or plan quota (`quota_exhausted`) reached.
- `502`: A data dependency was unavailable. Not charged.
- `503`: Authentication or quota service temporarily unavailable (`service_unavailable`). Not charged; retry after `Retry-After` seconds.

---

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