Query the Lex Machina API to analyze a law firm's federal appeals court win rate and average time-to-resolution by circuit

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. Authenticate using the OAuth2 client credentials flow to obtain a bearer token from the Lex Machina authorization endpoint
  2. Use the /search-law-firms/ endpoint to resolve the target firm's Lex Machina firmId by querying with the firm's name string
  3. POST to the /query-appeals-cases/ endpoint with a JSON body specifying the firmId and firm role (appellant_counsel or appellee_counsel) and the target circuit courts
  4. Retrieve the returned caseIds and query the analytics endpoints for resolution type breakdowns, disposition details, and case duration statistics
  5. Aggregate the results client-side to calculate win rate percentages and median resolution times per circuit, accounting for the distinction between affirmed, reversed, remanded, and dismissed outcomes

Known gotchas

Related routes

Query the Lex Machina API to retrieve litigation analytics for a specific company as a defendant in federal district courts
developer.lexmachina.com · 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