Developer API
Omnilex exposes a programmable search surface for legal sources with stable identifiers, grouped JSON responses, and citation-friendly metadata.
Overview
Coverage
Python
pythonimport json
from urllib.request import urlopen
API_BASE_URL = "https://api.omnilex.ai"
with urlopen(
f"{API_BASE_URL}/sources/catalog",
timeout=30,
) as response:
catalog = json.load(response)
coverage = {
source_family: {
"count": sum(
row["count"] for row in rows
),
"jurisdictions": sorted(
{
row["jurisdiction"]
for row in rows
if row["jurisdiction"]
}
),
"regions": len(
{
(row["jurisdiction"], row["region"])
for row in rows
}
),
}
for source_family, rows in catalog.items()
}
print(json.dumps(coverage, indent=2))API output
json{
"legislation": {
"count": 64713,
"jurisdictions": [
"ch",
"de",
"eu",
"li"
],
"regions": 31
},
"courtDecisions": {
"count": 1338657,
"jurisdictions": [
"at",
"ch",
"de",
"li",
"us"
],
"regions": 54
},
"officialDocuments": {
"count": 50877,
"jurisdictions": [
"ch"
],
"regions": 1
},
"literature": {
"count": 2547,
"jurisdictions": [
"ch"
],
"regions": 1
}
}Playground
Request
Response
Authentication is optional. Restricted literature is returned only when the request includes a valid bearer token with access to its publication.
Filters
querysearchModejurisdictionregionsourceTypeslanguagepreferredLanguagedocumentTypestatusnumberarticleNumbersourceIdcitationmarginalNumberauthorNameauthorCompanycourtchamberauthoritypublicationdocketNumberlegalAreadecisionTypelegalForceprocedureTypeoutcomeinstanceadoptionDateFromadoptionDateToeffectiveDateFromeffectiveDateTolastAmendmentDateFromlastAmendmentDateToexpirationDateFromexpirationDateTodateFromdateTodecisionDateFromdecisionDateTopublicationDateFrompublicationDateTorecentlyAddedlimitoffsetincludeTotalUse cases
Search judgments and case law by citation, court, chamber, legal area, date, language, and region.
Find acts, codes, regulations, and article-level provisions by jurisdiction, region, number, article, status, and language.
Use vector similarity for legislation, legislation articles, court decisions, and commentary when the wording differs from the indexed text.
Surface circulars, directives, and administrative legal materials when they are available in the indexed source catalog.
Search commentary and doctrine alongside primary legal sources to connect analysis with cited legislation and decisions.
Combine structured filters such as jurisdiction, region, court, chamber, legal area, outcome, language, and date ranges.
Use publication and decision date filters to retrieve recently updated legislation, decisions, commentary, and legal documents.