Skip to main content
POST
Get the text of several opinions

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"

Body

application/json

Body of POST /us/opinions/batch.

opinionIds
string[]
required

Up to 20 distinct opinion ids.

Required array length: 1 - 100 elements
Pattern: ^USOP_[0-9A-F]{20}$
Example:
format
enum<string>
default:html

html (our markup) or plain text, the same two formats as GET /us/opinions/{opinionId}.

Available options:
html,
text

Response

Successful Response

results
OpinionBatchItem · object[]
required

The opinions served, in the order first requested.

notFound
string[]
required

Requested opinion ids no opinion carries, and ids of a case we withdrew. Not charged.

bodyUnavailable
string[]
required

Opinions that exist but have no text to serve in this format (or a block quality flag). Not in results, not charged.

count
integer
required

Number of opinions in results.

duplicatesCollapsed
integer
required

How many repeated ids in the request were answered once.

creditsConsumed
integer
required

Credits this call cost: one opinion price per opinion in results.

processingTimeMs
number
required

Server time spent on this call, in milliseconds.

deferred
string[]

Opinions left out because the call already holds 2,000,000 characters of text. Not charged: ask for them again, in a call of their own.