Skip to content
OSINTtools.io

CanLII API

Canadian Legal Information Institute: free database of Canadian court and tribunal decisions and legislation.

Base URL
https://api.canlii.org/v1
Sign-in
API key
Format
REST
Endpoints
7

Compiled by OSINTtools.io editors from github.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

The CanLII API is a read-only REST interface to the metadata of Canadian court and tribunal decisions and of statutes and regulations: databases, lists of decisions or legislation, citation, docket number, decision date, keywords, and which cases a decision cites or is cited by. It returns metadata, not the full text of decisions.

All calls are HTTPS GET requests with parameters in the URL, and responses are JSON. Every call needs an api_key query parameter; the docs say to request a key through CanLII's feedback form. language is en or fr.

A list call returns at most 10,000 results (resultCount), and responses over 10 MB are not supported. The citator is English only.

Quick start

  1. Get a key

    Create an account with CanLII and copy your api key. Where to get it

  2. Make your first request

    List the caselaw databases (courts and tribunals).. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.canlii.org/v1/caseBrowse/en?api_key=YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "caseDatabases": [
        {
          "databaseId": "exampledb",
          "jurisdiction": "on",
          "name": "Example Tribunal"
        }
      ]
    }

Authentication

Send your API key in the api_key query parameter of every request.

Keys are requested through CanLII's feedback form, as the docs describe.

Get a key from CanLII

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Not stated in the docs

Case law

  • Passive: the target is not contacted

Returns every caselaw database with its id, jurisdiction and name. Use a databaseId in the other case law calls.

Path parameters

languagestringrequired

Output language

Example: enOne of: en, fr
Response fields · 3Show

databaseIdstring

Database id, used in other calls

jurisdictionstring

Jurisdiction code

namestring

Name of the court or tribunal

curl 'https://api.canlii.org/v1/caseBrowse/en?api_key=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "caseDatabases": [
    {
      "databaseId": "exampledb",
      "jurisdiction": "on",
      "name": "Example Tribunal"
    }
  ]
}
  • Passive: the target is not contacted

offset 0 returns the most recently added records. Dates are YYYY-MM-DD and inclusive. The docs advise allowing about two days of lag for published dates.

Path parameters

languagestringrequired

Output language

Example: enOne of: en, fr
databaseIdstringrequired

Database id from the databases list

Example: exampledb

Query parameters

offsetintegerrequired

Starting record; 0 is the most recently added

Example: 0
resultCountintegerrequired

Number of results, at most 10000

Example: 10
publishedAfterstring

Published on CanLII on or after this date

Example: 2024-01-01
publishedBeforestring

Published on CanLII on or before this date

Example: 2024-12-31
decisionDateAfterstring

Decided on or after this date

Example: 2024-01-01
decisionDateBeforestring

Decided on or before this date

Example: 2024-12-31
modifiedAfterstring

Content last modified on or after this date

Example: 2024-01-01
changedAfterstring

Metadata or content last modified on or after this date

Example: 2024-01-01
Response fields · 4Show

databaseIdstring

Database id

caseIdobject

Case id keyed by language, e.g. {"en": "2014onca925"}

titlestring

Style of cause

citationstring

Neutral citation

curl 'https://api.canlii.org/v1/caseBrowse/en/exampledb?offset=0&resultCount=10&api_key=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "cases": [
    {
      "databaseId": "exampledb",
      "caseId": {
        "en": "2024exmp1"
      },
      "title": "Doe v. Example Corp.",
      "citation": "2024 EXMP 1 (CanLII)"
    }
  ]
}

Get the metadata of one decision.

GET/caseBrowse/{language}/{databaseId}/{caseId}

  • Passive: the target is not contacted

caseId is generally the CanLII citation, for example 2008scc9.

Path parameters

languagestringrequired

Output language

Example: enOne of: en, fr
databaseIdstringrequired

Database id

Example: exampledb
caseIdstringrequired

Case id, usually the citation

Example: 2024exmp1
Response fields · 10Show

databaseIdstring

Database id

caseIdstring

Case id

urlstring

Link to the decision on CanLII

titlestring

Style of cause

citationstring

Citation

languagestring

Language of the decision

docketNumberstring

Docket number

decisionDatestring

Date of the decision (YYYY-MM-DD)

keywordsstring

Free-text keywords

concatenatedIdstring

Concatenated id

curl 'https://api.canlii.org/v1/caseBrowse/en/exampledb/2024exmp1?api_key=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "databaseId": "exampledb",
  "caseId": "2024exmp1",
  "url": "https://www.example.com/t/abc",
  "title": "Doe v. Example Corp.",
  "citation": "2024 EXMP 1 (CanLII)",
  "language": "en",
  "docketNumber": "12345",
  "decisionDate": "2024-03-07",
  "keywords": "contract - damages",
  "concatenatedId": "2024exmp1"
}

Citator

  • Passive: the target is not contacted

English only. The docs show a response example only for citedCases; the shapes for citingCases and citedLegislations are not documented.

Path parameters

databaseIdstringrequired

Database id

Example: exampledb
caseIdstringrequired

Case id

Example: 2024exmp1
metadataTypestringrequired

Kind of relationship

Example: citedCasesOne of: citedCases, citingCases, citedLegislations
Response fields · 4Show

databaseIdstring

Database of the cited case

caseIdstring

Cited case id

titlestring

Cited case title

citationstring

Cited case citation

curl 'https://api.canlii.org/v1/caseCitator/en/exampledb/2024exmp1/citedCases?api_key=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "citedCases": [
    {
      "databaseId": "exampledb",
      "caseId": "2020exmp5",
      "title": "Roe v. Sample Ltd.",
      "citation": "2020 EXMP 5 (CanLII)"
    }
  ]
}

Legislation

List the legislation databases.

GET/legislationBrowse/{language}

  • Passive: the target is not contacted

Database ids combine a jurisdiction code with s (statutes), r (regulations) or a (annual statutes).

Path parameters

languagestringrequired

Output language

Example: enOne of: en, fr
Response fields · 4Show

databaseIdstring

Database id

typestring

ANNUAL_STATUTE, REGULATION or similar

jurisdictionstring

Jurisdiction code

namestring

Database name

curl 'https://api.canlii.org/v1/legislationBrowse/en?api_key=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "legislationDatabases": [
    {
      "databaseId": "exs",
      "type": "STATUTE",
      "jurisdiction": "ex",
      "name": "Example Statutes"
    }
  ]
}

List the statutes or regulations in one legislation database.

GET/legislationBrowse/{language}/{databaseId}

  • Passive: the target is not contacted

Returns the legislation entries of the database.

Path parameters

languagestringrequired

Output language

Example: enOne of: en, fr
databaseIdstringrequired

Legislation database id

Example: exs
Response fields · 5Show

databaseIdstring

Database id

legislationIdstring

Legislation id

titlestring

Title

citationstring

Citation

typestring

STATUTE, REGULATION or similar

curl 'https://api.canlii.org/v1/legislationBrowse/en/exs?api_key=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "legislations": [
    {
      "databaseId": "exs",
      "legislationId": "exs-2000-c-1",
      "title": "Example Act",
      "citation": "ES 2000, c 1",
      "type": "STATUTE"
    }
  ]
}

Get the metadata of one statute or regulation.

GET/legislationBrowse/{language}/{databaseId}/{legislationId}

  • Passive: the target is not contacted

Returns dates, repeal status and the list of parts.

Path parameters

languagestringrequired

Output language

Example: enOne of: en, fr
databaseIdstringrequired

Legislation database id

Example: exs
legislationIdstringrequired

Legislation id

Example: exs-2000-c-1
Response fields · 12Show

legislationIdstring

Legislation id

urlstring

Link on CanLII

titlestring

Title

citationstring

Citation

typestring

STATUTE or REGULATION

languagestring

Language

dateSchemestring

Which date the start date refers to, e.g. ENTRY_INTO_FORCE

startDatestring

Start date

endDatestring

End date

repealedstring

YES if repealed

partIdstring

Part id

partNamestring

Part name

curl 'https://api.canlii.org/v1/legislationBrowse/en/exs/exs-2000-c-1?api_key=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "legislationId": "exs-2000-c-1",
  "url": "https://www.example.com/t/xyz",
  "title": "Example Act",
  "citation": "ES 2000, c 1",
  "type": "STATUTE",
  "language": "en",
  "dateScheme": "ENTRY_INTO_FORCE",
  "startDate": "2000-01-01",
  "endDate": "2010-01-01",
  "repealed": "YES",
  "content": [
    {
      "partId": "p1",
      "partName": "Definitions"
    }
  ]
}