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.

Source types
Advanced filters

Generated request

GET https://api.omnilex.ai/sources/search?query=employment+termination&jurisdiction=ch&region=federal&sourceTypes=law%2Carticle%2Ccourt_decision%2Ccommentary&limit=5&includeTotal=true

Filters

Legal metadata for reproducible API queries.

queryjurisdictionregionsourceTypeslanguagepreferredLanguagedocumentTypestatusnumberarticleNumbercitationcourtchamberdocketNumberlegalAreadecisionTypelegalForceprocedureTypeoutcomedecisionDateFromdecisionDateTopublicationDateFrompublicationDateTolimitoffsetincludeTotal

Use cases