Research
Get research document
Read the full text of a judgment or piece of legislation, one page of text at a time.
GET
Returns the text of a judgment, statute or rulemaking document found with Search research sources. Take
source and document_id from a search result.
Long documents come back in pages of text. Each call returns up to max_chars characters, starting at offset. When text_truncated is true, more text follows: call again with offset set to next_offset.
The call is synchronous and fetches from the source on demand, so it can take a few seconds. Each call fetches the whole document again.
What text holds depends on the source:
uk_case_law: the judgment’s paragraphs.uk_legislation: the provisions’ text.courtlistener: the opinion’s text.moonlit: the document as Markdown.eur_lex: the act’s English text.nz_legislation: the version’s text.federal_register: the document’s plain text.regulations_gov: the document’s details and summary only; the body is a posted file.sec_edgarcannot be read here. Open the search result’surl.
Authentication
Send an API key, or an OAuth access token with theresearch:read scope, as a bearer token in the Authorization header. A token without the scope gets 403 with "error": "insufficient_scope".
Path parameters
The source id from the search result, such as
uk_case_law. See Sources.Query parameters
The document id from the search result. URL-encode it: some ids contain
/, which becomes %2F.Response
The case name or the instrument’s title. For EUR-Lex, the title comes from a separate lookup; when that lookup fails or takes more than 5 seconds, the title is
EUR-Lex <CELEX> and date is null, and the text is still returned.