{ "query": "qualified immunity excessive force police", "jurisdiction": "us-federal", "found": 10, "candidates": [ { "url": "https://www.courtlistener.com/opinion/...", "title": "Harlow v. Fitzgerald, 457 U.S. 800 (1982)", "snippet": "Government officials performing discretionary functions are shielded from liability...", "source": "courtlistener.com", "publishedDate": "1982-06-24" } ], "hint": "IMPORTANT: Use legal.verify() on each candidate before citing."}
Always verify before citing. Search results are candidates, not verified sources. Use legal.verify() to confirm each citation exists in the database before your user cites it.
{ "query": "employment discrimination disparate impact", "additionalQueries": ["Title VII disparate impact theory", "..."], "jurisdiction": "us-federal", "searchType": "deep", "found": 15, "candidates": [ { "url": "https://www.courtlistener.com/opinion/...", "title": "Griggs v. Duke Power Co., 401 U.S. 424 (1971)", "snippet": "The Act proscribes not only overt discrimination but also practices...", "highlights": [ "Congress directed the thrust of the Act to the consequences of employment practices", "The touchstone is business necessity" ], "source": "courtlistener.com", "publishedDate": "1971-03-08" } ]}
async function buildTimeline(seedCase: string) { // Find the seed case const search = await client.legal.find({ query: seedCase, numResults: 1 }); const seedUrl = search.candidates[0].url; // Find similar cases across time const similar = await client.legal.similar({ url: seedUrl, numResults: 25 }); // Sort by date return similar.similarSources .filter(s => s.publishedDate) .sort((a, b) => new Date(a.publishedDate) - new Date(b.publishedDate));}