We search the web, synthesize the results, and cite our sources.
Endpoint
Copy
Ask AI
POST /search/v1/answer
Copy
Ask AI
import Casedev from 'casedev';const client = new Casedev({ apiKey: 'sk_case_YOUR_API_KEY' });const result = await client.search.v1.answer({ query: 'What is the statute of limitations for medical malpractice in California?'});console.log(result.answer);// "In California, the statute of limitations for medical malpractice// is generally 3 years from the date of injury or 1 year from when// the patient discovered the injury [1]. Exceptions exist for// foreign objects [2] and minors [3]."for (const citation of result.citations) { console.log(`[${citation.id}] ${citation.title}: ${citation.url}`);}
Response
Copy
Ask AI
{ "answer": "In California, the statute of limitations for medical malpractice is generally 3 years from the date of injury or 1 year from when the patient discovered or should have discovered the injury, whichever comes first [1]. However, there are exceptions for cases involving foreign objects left in the body [2] and for minors [3].", "citations": [ { "id": "1", "url": "https://law.cornell.edu/california/medical-malpractice", "title": "California Medical Malpractice Laws", "text": "California Code of Civil Procedure Section 340.5..." }, { "id": "2", "url": "https://findlaw.com/healthcare/foreign-object-exception", "title": "Foreign Object Exception", "text": "When a foreign object is left in the body..." } ]}
const result = await client.search.v1.answer({ query: 'What is the current federal minimum wage?', includeDomains: ['dol.gov', 'law.cornell.edu', 'congress.gov'], numResults: 5});
const result = await client.search.v1.answer({ query: 'Explain the differences between Chapter 7 and Chapter 11 bankruptcy', useCustomLLM: true, model: 'anthropic/claude-sonnet-4.5'});
Web data only. For comprehensive legal research, use Lexis, Westlaw, or OpenLaws.