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.
curl -X POST https://api.case.dev/search/v1/answer \ -H "Authorization: Bearer $CASEDEV_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "query": "What is the statute of limitations for medical malpractice in California?", "includeDomains": ["law.cornell.edu", "findlaw.com"] }'
casedev search:v1 answer \ --query "What is the statute of limitations?"
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);
import casedevclient = casedev.Casedev(api_key=os.environ['CASEDEV_API_KEY'])# Answer your user's question with citationsanswer = client.search.v1.answer( query=user_question, include_domains=['law.cornell.edu', 'findlaw.com'])# Return answer with sources to your userprint(answer.answer)print(answer.citations)
result, _ := client.Search.V1.Answer(ctx, casedev.SearchV1AnswerParams{ Query: casedev.F("What is the statute of limitations?"),})fmt.Println(result.Answer)for _, c := range result.Citations { fmt.Printf("[%s] %s: %s\n", c.ID, c.Title, c.URL)}