Search the web and generate AI answers with citations
A programmatic deep research engine. Add web search and AI-powered research to your app—let your users get answers with citations, or run comprehensive multi-step research.
Web data only. This searches publicly available web content. For comprehensive legal research (case law, statutes, regulations), use specialized platforms like Lexis, Westlaw, or OpenLaws.
import Casedev from 'casedev';const client = new Casedev({ apiKey: process.env.CASEDEV_API_KEY });// Answer your user's question with citationsconst answer = await client.search.v1.answer({ query: userQuestion, includeDomains: ['law.cornell.edu', 'findlaw.com']});// Return answer with sources to your userconsole.log(answer.answer);// "In California, the statute of limitations for medical malpractice// is 3 years from the date of injury or 1 year from discovery [1]..."console.log(answer.citations);