# CanLII API reference

> 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…

Source: https://osinttools.io/apis/canlii/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/canlii/

- Base URL: https://api.canlii.org/v1
- Authentication: API key in the `api_key` query parameter. Get a key: https://github.com/canlii/API_documentation Keys are requested through CanLII's feedback form, as the docs describe.
- Rate limits: Not stated in the docs
- Vendor docs: https://github.com/canlii/API_documentation/blob/master/EN.md

## Overview

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.

## Case law

### List the caselaw databases (courts and tribunals).

`GET /caseBrowse/{language}`

- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `language` | path | string | yes | Output language Example: en One of: en, fr |

Response fields:

- `caseDatabases[].databaseId` (string): Database id, used in other calls
- `caseDatabases[].jurisdiction` (string): Jurisdiction code
- `caseDatabases[].name` (string): Name of the court or tribunal

```bash
curl 'https://api.canlii.org/v1/caseBrowse/en?api_key=YOUR_API_KEY'
```

Example response (200):

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

### List decisions in one database, newest first, with date filters.

`GET /caseBrowse/{language}/{databaseId}`

- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `language` | path | string | yes | Output language Example: en One of: en, fr |
| `databaseId` | path | string | yes | Database id from the databases list Example: exampledb |
| `offset` | query | integer | yes | Starting record; 0 is the most recently added Example: 0 |
| `resultCount` | query | integer | yes | Number of results, at most 10000 Example: 10 |
| `publishedAfter` | query | string | no | Published on CanLII on or after this date Example: 2024-01-01 |
| `publishedBefore` | query | string | no | Published on CanLII on or before this date Example: 2024-12-31 |
| `decisionDateAfter` | query | string | no | Decided on or after this date Example: 2024-01-01 |
| `decisionDateBefore` | query | string | no | Decided on or before this date Example: 2024-12-31 |
| `modifiedAfter` | query | string | no | Content last modified on or after this date Example: 2024-01-01 |
| `changedAfter` | query | string | no | Metadata or content last modified on or after this date Example: 2024-01-01 |

Response fields:

- `cases[].databaseId` (string): Database id
- `cases[].caseId` (object): Case id keyed by language, e.g. {"en": "2014onca925"}
- `cases[].title` (string): Style of cause
- `cases[].citation` (string): Neutral citation

```bash
curl 'https://api.canlii.org/v1/caseBrowse/en/exampledb?offset=0&resultCount=10&api_key=YOUR_API_KEY'
```

Example response (200):

```json
{
  "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}`

- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `language` | path | string | yes | Output language Example: en One of: en, fr |
| `databaseId` | path | string | yes | Database id Example: exampledb |
| `caseId` | path | string | yes | Case id, usually the citation Example: 2024exmp1 |

Response fields:

- `databaseId` (string): Database id
- `caseId` (string): Case id
- `url` (string): Link to the decision on CanLII
- `title` (string): Style of cause
- `citation` (string): Citation
- `language` (string): Language of the decision
- `docketNumber` (string): Docket number
- `decisionDate` (string): Date of the decision (YYYY-MM-DD)
- `keywords` (string): Free-text keywords
- `concatenatedId` (string): Concatenated id

```bash
curl 'https://api.canlii.org/v1/caseBrowse/en/exampledb/2024exmp1?api_key=YOUR_API_KEY'
```

Example response (200):

```json
{
  "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

### List the cases a decision cites, the cases citing it, or the legislation it cites.

`GET /caseCitator/en/{databaseId}/{caseId}/{metadataType}`

- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `databaseId` | path | string | yes | Database id Example: exampledb |
| `caseId` | path | string | yes | Case id Example: 2024exmp1 |
| `metadataType` | path | string | yes | Kind of relationship Example: citedCases One of: citedCases, citingCases, citedLegislations |

Response fields:

- `citedCases[].databaseId` (string): Database of the cited case
- `citedCases[].caseId` (string): Cited case id
- `citedCases[].title` (string): Cited case title
- `citedCases[].citation` (string): Cited case citation

```bash
curl 'https://api.canlii.org/v1/caseCitator/en/exampledb/2024exmp1/citedCases?api_key=YOUR_API_KEY'
```

Example response (200):

```json
{
  "citedCases": [
    {
      "databaseId": "exampledb",
      "caseId": "2020exmp5",
      "title": "Roe v. Sample Ltd.",
      "citation": "2020 EXMP 5 (CanLII)"
    }
  ]
}
```

## Legislation

### List the legislation databases.

`GET /legislationBrowse/{language}`

- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `language` | path | string | yes | Output language Example: en One of: en, fr |

Response fields:

- `legislationDatabases[].databaseId` (string): Database id
- `legislationDatabases[].type` (string): ANNUAL_STATUTE, REGULATION or similar
- `legislationDatabases[].jurisdiction` (string): Jurisdiction code
- `legislationDatabases[].name` (string): Database name

```bash
curl 'https://api.canlii.org/v1/legislationBrowse/en?api_key=YOUR_API_KEY'
```

Example response (200):

```json
{
  "legislationDatabases": [
    {
      "databaseId": "exs",
      "type": "STATUTE",
      "jurisdiction": "ex",
      "name": "Example Statutes"
    }
  ]
}
```

### List the statutes or regulations in one legislation database.

`GET /legislationBrowse/{language}/{databaseId}`

- Footprint: passive (the target is not contacted)

Returns the legislation entries of the database.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `language` | path | string | yes | Output language Example: en One of: en, fr |
| `databaseId` | path | string | yes | Legislation database id Example: exs |

Response fields:

- `legislations[].databaseId` (string): Database id
- `legislations[].legislationId` (string): Legislation id
- `legislations[].title` (string): Title
- `legislations[].citation` (string): Citation
- `legislations[].type` (string): STATUTE, REGULATION or similar

```bash
curl 'https://api.canlii.org/v1/legislationBrowse/en/exs?api_key=YOUR_API_KEY'
```

Example response (200):

```json
{
  "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}`

- Footprint: passive (the target is not contacted)

Returns dates, repeal status and the list of parts.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `language` | path | string | yes | Output language Example: en One of: en, fr |
| `databaseId` | path | string | yes | Legislation database id Example: exs |
| `legislationId` | path | string | yes | Legislation id Example: exs-2000-c-1 |

Response fields:

- `legislationId` (string): Legislation id
- `url` (string): Link on CanLII
- `title` (string): Title
- `citation` (string): Citation
- `type` (string): STATUTE or REGULATION
- `language` (string): Language
- `dateScheme` (string): Which date the start date refers to, e.g. ENTRY_INTO_FORCE
- `startDate` (string): Start date
- `endDate` (string): End date
- `repealed` (string): YES if repealed
- `content[].partId` (string): Part id
- `content[].partName` (string): Part name

```bash
curl 'https://api.canlii.org/v1/legislationBrowse/en/exs/exs-2000-c-1?api_key=YOUR_API_KEY'
```

Example response (200):

```json
{
  "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"
    }
  ]
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
