{"openapi":"3.1.0","info":{"title":"ChamberOne case-law search","version":"1.0","description":"Search court judgments and legislation from licence-clear public sources in the United Kingdom, United States, France and India. Returns results only: title, court, date, case number, a short excerpt and the source attribution. Full judgments need a signed-in ChamberOne firm. 5 free searches a day for AI agents and tools (30 for people on the website); after that the API answers 402 Payment Required; signing in to a ChamberOne firm gives unlimited search and full judgments. AI agents can also pay with x402 v2 (https://docs.x402.org) in USDC on Base: $0.01 per search after the free ones, and $0.05 per full judgment at /api/case-law/judgment/{id}. The 402 answer carries the terms in the PAYMENT-REQUIRED header; retry with a PAYMENT-SIGNATURE header. A payment is settled only after the answer is ready."},"servers":[{"url":"https://chamberonellp.com"}],"paths":{"/api/case-law/search":{"get":{"operationId":"searchCaseLaw","summary":"Search judgments and legislation","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":200},"description":"Words or a question, e.g. 'adverse possession limitation period'."},{"name":"country","in":"query","schema":{"type":"string","enum":["lk","uk","us","fr","in","de"]}},{"name":"year_from","in":"query","schema":{"type":"integer","minimum":1800,"maximum":2100}},{"name":"year_to","in":"query","schema":{"type":"integer","minimum":1800,"maximum":2100}}],"responses":{"200":{"description":"Up to 10 results, best first, one per document.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}}},"400":{"description":"Invalid query or country."},"402":{"description":"Free daily allowance used up; the body says how to get more access."},"503":{"description":"Search temporarily unavailable."}}}},"/api/case-law/judgment/{id}":{"get":{"operationId":"buyJudgment","summary":"Full text of one judgment ($0.05 with x402)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"},"description":"The id from a search result."}],"responses":{"200":{"description":"The judgment's details and full text, with the payment receipt in PAYMENT-RESPONSE."},"402":{"description":"Payment required: the x402 terms are in the PAYMENT-REQUIRED header and the body."},"404":{"description":"No public judgment with that id (never charged)."},"503":{"description":"Temporarily unavailable (never charged)."}}}}},"components":{"schemas":{"SearchResponse":{"type":"object","properties":{"query":{"type":"string"},"free_searches_left_today":{"type":"integer"},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":["string","null"]},"court":{"type":["string","null"]},"country":{"type":"string","enum":["lk","uk","us","fr","in","de"]},"doc_type":{"type":"string"},"case_number":{"type":["string","null"]},"decided_on":{"type":["string","null"],"format":"date"},"excerpt":{"type":"string","description":"About two lines around the match."},"attribution":{"type":["string","null"],"description":"Licence and source credit to show with the result."}}}}}}}}}