# GET /v3/filings/{accession}/documents/{document}/text

The extracted text of one document as the full-text index holds it (text/plain; charset=utf-8): the text that snippet start/end offsets count characters of. Headers: X-Extractor and X-Extractor-Version (offsets apply to that extractor), X-Text-Chars (the length in characters). ETag / If-None-Match (304) and single-range Range requests on the UTF-8 bytes (206, 416). 404 with code no_text for a document indexed without text. A filing SEC deleted is indexed like any other (status deleted) and its text is served; a deleted filing without documents has none (404).

**API key:** required. See [Authentication](https://www.secblast.com/docs/authentication).

**Group:** [Full-text search](https://www.secblast.com/docs/reference#full-text-search)

## Parameters

| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
| `accession` | path | string | yes |   | Accession number, with dashes (0001829126-26-010431) or without (18 digits). |
| `document` | path | string | yes |   | Sequence number (1, 2, ...) or the document's filename. |

## Responses

| Status | Body | Description |
|---|---|---|
| `200` | string (`text/plain`) | The extracted text. Headers: `Accept-Ranges`, `ETag`, `X-Extractor`, `X-Extractor-Version`, `X-Text-Chars`. |
| `206` | string (`text/plain`) | The requested byte range of the UTF-8 text. Headers: `Accept-Ranges`, `ETag`, `X-Extractor`, `X-Extractor-Version`, `X-Text-Chars`. |
| `304` | none | Not modified (If-None-Match matched the ETag). |
| `400` | [Problem](https://www.secblast.com/docs/reference/schemas#schema-problem) (`application/problem+json`) | Invalid or unknown parameter, or a query error (invalid_query, query_too_complex, prefix_too_broad, negative_only_query, unsupported_operator, invalid_cursor); query errors carry position and length (characters of q). |
| `401` | [Problem](https://www.secblast.com/docs/reference/schemas#schema-problem) (`application/problem+json`) | Missing, invalid or inactive API key (code unauthorized), or a refused access token (code invalid_token: malformed, unknown key, bad signature, expired, wrong issuer or audience, revoked grant). WWW-Authenticate names the protected-resource metadata (RFC 9728). |
| `404` | [Problem](https://www.secblast.com/docs/reference/schemas#schema-problem) (`application/problem+json`) | Not found. |
| `416` | [Problem](https://www.secblast.com/docs/reference/schemas#schema-problem) (`application/problem+json`) | Range not satisfiable. |
| `503` | [Problem](https://www.secblast.com/docs/reference/schemas#schema-problem) (`application/problem+json`) | Full-text search cannot answer now: search_unavailable (sb_search unreachable or not configured), search_busy (its queue is full), search_timeout (the query hit its time budget), ticker_resolution_unavailable; or the database is unavailable. Retry after the Retry-After delay when one is given. |
| `default` | [Problem](https://www.secblast.com/docs/reference/schemas#schema-problem) (`application/problem+json`) | Any other error (405, 500, 504). |

## Response body

A `200` carries string (`text/plain`).

## Example request

```bash
curl -sS -H "Authorization: Bearer $SECBLAST_API_KEY" \
  'https://api.secblast.com/v3/filings/0001829126-26-010431/documents/1/text'
```

[Open this route in the console](https://www.secblast.com/console#get-v3-filings-accession-documents-document-text)

## More in Full-text search

Next: [`GET /v3/search`](https://www.secblast.com/docs/reference/get-search)
