Developer API
Legal Sources API for legislation, court decisions, official documents, and doctrine
Omnilex exposes a programmable search surface for legal sources with stable identifiers, grouped JSON responses, and citation-friendly metadata.
Overview
One endpoint for legal source discovery.
- Search primary law, court decisions, official documents, and literature 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.
- Use the endpoint without authentication for public sources; restricted literature requires an authorized bearer token.
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": 148956,
"jurisdictions": [
"at",
"ch",
"de",
"eu",
"li",
"us"
],
"regions": 106
},
"courtDecisions": {
"count": 2439809,
"jurisdictions": [
"at",
"ch",
"de",
"li",
"us"
],
"regions": 101
},
"officialDocuments": {
"count": 213829,
"jurisdictions": [
"ch",
"de"
],
"regions": 29
},
"literature": {
"count": 2645,
"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
querysearchModejurisdictionregionsourceTypeslanguagepreferredLanguagedocumentTypestatusnumberarticleNumbersourceIdcitationauthorNamecourtchamberauthoritypublicationdocketNumberlegalAreadecisionTypelegalForceprocedureTypeoutcomeinstanceadoptionDateFromadoptionDateToeffectiveDateFromeffectiveDateTolastAmendmentDateFromlastAmendmentDateToexpirationDateFromexpirationDateTodateFromdateTodecisionDateFromdecisionDateTopublicationDateFrompublicationDateTorecentlyAddedlimitoffsetincludeTotalUse 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.
Semantic Source Search
Use vector similarity for legislation, legislation articles, court decisions when the wording differs from the indexed text.
Circulars and Directives Search
Surface circulars, directives, and administrative legal materials when they are available in the indexed source catalog.
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, and legal documents.