Skip to main content
GET
Get the text of an opinion

Authorizations

Authorization
string
header
required

API key issued from the developer dashboard. Pass as Authorization: Bearer vq_key_... (preferred).

Headers

Idempotency-Key
string | null

Optional. 16 to 255 visible ASCII characters (a UUIDv4 works). Repeating the same request with the same key replays the original 2xx response for 24 hours without charging again. The same key on a different request is rejected. With the account's cacheQueryDerivedData retention setting off, no body is stored and a retry answers 409 idempotency_replay_unavailable, still without a second charge.

Required string length: 16 - 255
Pattern: ^[\x21-\x7e]+$
Example:

"3f9c2a1e-7b44-4d0a-9c1e-5a6b7c8d9e0f"

Path Parameters

opinion_id
string
required

The opinionId: USOP_ and 20 uppercase hex characters. Malformed is a 422.

Pattern: ^USOP_[0-9A-F]{20}$
Example:

"USOP_3F9A2B1C4D5E6F708192"

Query Parameters

format
enum<string>
default:html

html is our markup: paragraphs, footnotes, and a cite element carrying data-case-id where the citation points to a case we hold. text is the same opinion as plain text.

Available options:
html,
text
Example:

"text"

Response

Successful Response

opinionId
string
required

Our id of the opinion (USOP_ plus 20 hex characters).

caseId
string
required

Our id of the case the opinion belongs to.

courtId
string
required

Our id of the deciding court.

ordinal
integer
required

Reading order of the opinion within the case, from 1.

kind
enum<string>
required

Kind of opinion: combined, lead, plurality, concurrence, concurrence_in_part, dissent, addendum, remittitur, rehearing, on_the_merits, on_motion_to_strike, trial_court or unknown.

Available options:
combined,
lead,
plurality,
concurrence,
concurrence_in_part,
dissent,
addendum,
remittitur,
rehearing,
on_the_merits,
on_motion_to_strike,
trial_court,
unknown
isPerCuriam
boolean
required

True when the court issued the opinion without naming an author.

textFromOcr
boolean
required

True when the text was read from a scan by optical character recognition, so it may carry misreadings.

format
enum<string>
required

html when body is the opinion's marked-up text, text when it is plain text.

Available options:
html,
text
body
string
required

The full text of the opinion, in the format named. Personal identifiers such as phone numbers and emails are masked.

creditsConsumed
integer
required

Credits this call cost. 0 on a free route.

processingTimeMs
number
required

Server time spent on this call, in milliseconds.

caseName
string | null

Caption of the case the opinion belongs to. Null when the record has none.

decisionDate
string<date> | null

Date of the decision. Null when the decision carries no date.

authorName
string | null

Name of the author as printed. Null for a per curiam opinion or when unknown.

joinedByJudgeIds
string[] | null

Our ids of the judges who joined, for the names that matched a judge we hold. Null until we serve the link, and an empty list when no joining judge matched.

qualityFlags
QualityFlag · object[]

Data-quality checks this opinion failed. Empty when none were raised.

bodyUnavailable
boolean
default:false

True when body is empty: a block quality flag keeps the text from being served, or we hold no text of this opinion in the requested format. The rest of the record is unaffected.