Skip to main content
POST
Search opinions

Request contract

  • Method and path: POST /apis/v1/courtlistener-com/opinions/search-opinions
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/courtlistener-com/opinions/search-opinions
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
case_name
string
required

case_name

citation
string

Reporter citation, e.g. 410 U.S. 113.

cited_gt
number

Only clusters cited more than this many times.

Provider reference: minimum 0.

court
string[]

CourtListener court ids (not jurisdiction or state names) to restrict the search to, e.g. scotus, ca9, nysd, cal, calctapp, ny, nyappdiv, tex, texapp, fla. An unknown id such as texas, tx or ca matches nothing and returns zero results. List every court you need: ny does not include nyappdiv. Use the courts function to find ids (jurisdiction S / SA are state supreme and appellate courts).

cursor
string

Not served keyless: the feeds have no further pages, so any cursor fails with a non-retryable upstream_blocked error.

docket_number
string

docket_number

filed_after
string

Earliest filing date, inclusive (YYYY-MM-DD). Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.

filed_before
string

Latest filing date, inclusive (YYYY-MM-DD). Use the same date as filed_after for a single day. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.

include_unpublished
boolean

Also return unpublished opinions (CourtListener returns published only by default).

judge
string

judge

order_by
string
default:score desc

Keyless feeds always return the newest matches first. score desc (default) and dateFiled desc are accepted; other orders need a CourtListener API token and fail with a non-retryable upstream_blocked error.

Provider reference: allowed values ["score desc", "dateFiled desc", "dateFiled asc", "citeCount desc", "citeCount asc"]; default "score desc".

query
string

Full-text query. Supports CourtListener operators: quoted phrases, AND/OR/NOT, fielded clauses such as citation:("410 U.S. 113") or cites:(cluster_id). Quote a statute to find opinions citing it, e.g. "42 U.S.C. § 1983".

Response

Search published case law (opinions) from federal and state courts on CourtListener by full text, citation, case name, judge, docket number, court and filing date. Keyless: returns the newest 20 matching opinion clusters by filing date with cluster id, case name, court, date filed, a text snippet and the opinion page link; citations, cite counts and further pages need a CourtListener API token.

The response contains the tool result directly.

The provider identifies results as the primary payload key.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.