Query the Lex Machina API to retrieve litigation analytics for a specific company as a defendant in federal district courts

domain: developer.lexmachina.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Obtain API credentials (client ID and secret) from the Lex Machina Developer Portal and exchange them for a bearer token via the documented OAuth2 client credentials flow
  2. Include the token in all requests as 'Authorization: Bearer YOUR_TOKEN'
  3. POST to the /query-district-cases/ endpoint with a JSON body specifying the party name, party type as 'defendant', and any additional filters such as case status or nature of suit code
  4. The response returns a case list with caseIds; fetch detailed analytics for each case or use the aggregate analytics endpoints to get outcome statistics, damages, and timing data
  5. Use the /search-parties/ endpoint first to resolve the exact Lex Machina party ID for the target company before building the case query

Known gotchas

Related routes

Query the Lex Machina API to analyze a law firm's federal appeals court win rate and average time-to-resolution by circuit
developer.lexmachina.com · 5 steps · unrated
Search federal court cases by party name using the PACER Case Locator API
pacer.uscourts.gov · 5 steps · unrated
Search the PACER Case Locator (PCL) for federal civil cases by defendant company name and retrieve docket metadata
pacer.uscourts.gov · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans