Skip to main content
GET
Returns the text of one document, by the document_id a search result carries. Pages are numbered from 1. A response holds up to 100 pages or 2 MB of text, whichever comes first. next_page_from says where to continue.

Path parameters

string
required
The document_id of a search result. It is opaque: take it from a search, don’t build it.

Query parameters

integer
default:1
First page to return. The first page is 1.
integer
Last page to return, inclusive. Omit to read to the end of the document, up to the 100-page or 2 MB cap.

Response

string
The document id.
string
The dataset id.
string
The document’s title.
string
Link to the source document.
integer
Pages in the document, so also the last page’s page_num.
array
The pages in the range, in order. Empty when the range starts past the last page.
integer | null
The page after the ones returned: send it as page_from to continue. null when the document ends there.

Reading a whole document

Python

Errors

Errors return {"error": {"code", "message", "field", "request_id"}}; field names the value at fault when there is one. See Errors.