Developer API
Legal Corpus API for legislation, court decisions, circulars, and doctrine
Omnilex exposes a programmable search surface for the legal corpus with stable identifiers, grouped JSON responses, and citation-friendly metadata.
Overview
One endpoint for legal corpus discovery.
- Search primary law, court decisions, and legal commentary with one request.
- Filter by jurisdiction, region, court, legal area, article, citation, language, and date.
- Return JSON that is suitable for citations, links, internal tools, and LLM workflows.
Coverage
law
Legislation
Acts, codes, regulations, and other primary legal texts.
article
Legislation articles
Article-level records for targeted legal provision search.
court_decision
Court decisions
Judgments and case law with citations, dates, courts, and source links.
commentary
Legal doctrine and commentary
Commentary and doctrine linked to legal sources where available.
Capabilities
Structured retrieval
- Source type filters for laws, articles, decisions, and commentary.
- Jurisdiction and region filters for federal and regional material.
- Court, chamber, legal area, outcome, citation, and date filters where available.
Machine-readable output
- Grouped JSON responses by source family.
- Stable IDs, titles, summaries, citations, source URLs, and language metadata.
- OpenAPI, Swagger UI, llms.txt, and sitemap support for easier discovery.
Playground
Choose one of three examples or build your own query.
Advanced filters
Generated request
GET https://api.omnilex.ai/sources/search?query=employment+termination&jurisdiction=ch®ion=federal&sourceTypes=law%2Carticle%2Ccourt_decision%2Ccommentary&limit=5&includeTotal=trueFilters
Legal metadata for reproducible API queries.
queryjurisdictionregionsourceTypeslanguagepreferredLanguagedocumentTypestatusnumberarticleNumbercitationcourtchamberdocketNumberlegalAreadecisionTypelegalForceprocedureTypeoutcomedecisionDateFromdecisionDateTopublicationDateFrompublicationDateTolimitoffsetincludeTotalUse cases
Court Decision Search
Search judgments and case law by citation, court, chamber, legal area, date, language, and region.
Legislation Search
Find acts, codes, regulations, and article-level provisions by jurisdiction, region, number, article, status, and language.
Circulars and Directives Search
Surface circulars, directives, and administrative legal materials when they are available in the indexed source catalog.
Legal Doctrine and Commentary
Search commentary and doctrine alongside primary legal sources to connect analysis with cited legislation and decisions.
Search by Court, Region, and Legal Area
Combine structured filters such as jurisdiction, region, court, chamber, legal area, outcome, language, and date ranges.
Latest Legal Sources
Use publication and decision date filters to retrieve recently updated legislation, decisions, commentary, and legal documents.