Skip to content

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.

Group: Full-text search

Parameters

NameInTypeRequiredDefaultDescription
accessionpathstringyesAccession number, with dashes (0001829126-26-010431) or without (18 digits).
documentpathstringyesSequence number (1, 2, ...) or the document's filename.

Responses

StatusBodyDescription
200string (text/plain)The extracted text. Headers: Accept-Ranges, ETag, X-Extractor, X-Extractor-Version, X-Text-Chars.
206string (text/plain)The requested byte range of the UTF-8 text. Headers: Accept-Ranges, ETag, X-Extractor, X-Extractor-Version, X-Text-Chars.
304noneNot modified (If-None-Match matched the ETag).
400Problem (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).
401Problem (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).
404Problem (application/problem+json)Not found.
416Problem (application/problem+json)Range not satisfiable.
503Problem (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.
defaultProblem (application/problem+json)Any other error (405, 500, 504).

Response body

A 200 carries string (text/plain).

Example request

Shell
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

Next: GET /v3/search

Markdown version: /docs/reference/get-filings-accession-documents-document-text.md