POST /api/courtlistener/opinions/search
Price: 1 credit
Search US court opinions by full-text query, court, judge, citation, date and citation count
Search US court opinions (case law) on CourtListener. Combine a full-text query with filters for court, judge, case name, docket number, reporter or neutral citation, filing date range, citation count range and precedential status; order by relevance, filing date, citation count or argument date. Each result is an opinion cluster with case name, court, docket, citations, citation count, judges, status and the individual opinions (lead, concurring, dissenting) with snippets and download links.
access-token string requiredtimeout integer — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)q string nullable — Full-text query over opinion text, case name and metadatacourt string nullable — Court id(s) to filter by, space-separated (examples: "scotus", "ca9 cadc")judge string nullable — Filter by authoring or panel judge namecase_name string nullable — Filter by case namedocket_number string nullable — Filter by docket numbercitation string nullable — Filter by reporter citation (examples: "576 U.S. 644")neutral_cite string nullable — Filter by neutral citationfiled_after string nullable — Only opinions filed on or after this date (YYYY-MM-DD)filed_before string nullable — Only opinions filed on or before this date (YYYY-MM-DD)cited_gt integer nullable — Only opinions cited more than this many times (min: 0)cited_lt integer nullable — Only opinions cited fewer than this many times (min: 0)status string nullable — Filter by precedential status (one of: "Published", "Unpublished", "Errata", "Separate", "In-chambers", "Relating-to", "Unknown")order_by string — Result ordering (default: "score desc"; one of: "score desc", "dateFiled desc", "dateFiled asc", "citeCount desc", "citeCount asc", "dateArgued desc", "dateArgued asc")count integer required — Number of opinions to return (min: 1)@type string (default: "CourtlistenerOpinion")cluster_id integer requireddocket_id integer nullablecase_name string nullablecase_name_full string nullablecourt string nullablecourt_id string nullablecourt_citation_string string nullablecourt_jurisdiction string nullabledocket_number string nullablejudge string nullableattorney string nullablecitations array (default: [])lexis_cite string nullableneutral_cite string nullablecite_count integer (default: 0)status string nullablesource string nullablescdb_id string nullableposture string nullableprocedural_history string nullablesuit_nature string nullablesyllabus string nullablepanel_ids array (default: [])panel_names array (default: [])non_participating_judge_ids array (default: [])sibling_ids array (default: [])opinions array (default: [])@type string (default: "CourtlistenerOpinionDoc")id integer requiredopinion_type string nullableauthor_id integer nullableper_curiam boolean (default: false)download_url string nullablelocal_path string nullablesha1 string nullablesnippet string nullableordering_key integer nullablecites array (default: [])joined_by_ids array (default: [])filed_at integer nullableargued_at integer nullablereargued_at integer nullablereargument_denied_at integer nullablecreated_at integer nullableweb_url string nullablescore number nullable422 — The request body did not validate Check the fields against this schema. A URN with the wrong prefix is the most common cause.408 — The request ran past its time limit Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.412 — The entity was not found, or a precondition failed Retrying will not help: either the entity does not exist, or the input points at a different one.429 — Too many requests: a rate limit or a usage window is exhausted When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.500 — Something broke on our side Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.529 — Rate limit reached, or the endpoint is overloaded Wait at least 30 seconds, then retry.X-Error — Error message text (present only on error)X-Request-ID — Unique request identifierX-Execution-Time — Execution time in secondsX-Result-Count — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.X-Total-Available-Results — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.X-Warning — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.X-Retry-After — Seconds to wait before retrying. Present only on 429.