opinion_search
Find U.S. court opinions via full-text search. Filter by court, date, or sort by relevance, newest, oldest, or most cited to retrieve case names, citations, and links.
Instructions
Full-text search of U.S. case law / court opinions (CourtListener type=o). Returns the top matching page (up to limit) with case name, court, date filed, citations, docket number, a snippet, citation count, and a link. Works without a token; set COURTLISTENER_API_TOKEN for a higher rate limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Search query. Supports plain terms and phrases (e.g. "warrantless search", "qualified immunity"). | |
| court | No | Optional court id to filter to (e.g. "scotus", "ca9", "nysd"). Get ids from court_list. | |
| limit | No | Max results from this page (1-20, default 20). The /search/ endpoint returns one fixed page of ~20; to get more, pass the response's next_cursor back as cursor. | |
| cursor | No | Opaque pagination cursor from a previous response's next_cursor; fetches the next page (keep the other args the same). | |
| order_by | No | Sort order (default relevance). | |
| filed_after | No | Optional ISO date (YYYY-MM-DD); only opinions filed on/after. | |
| filed_before | No | Optional ISO date (YYYY-MM-DD); only opinions filed on/before. |