Civix BC

Government API · Works in British Columbia, Canada · Law search · No API key

TL;DR

Civix BC is the official online publishing system for British Columbia's provincial legislation. Its search API provides access to BC's consolidated statutes, regulations, and municipal bylaws. Search by keyword across all legislation or target specific documents. Results include document titles, citations, and links to full text. No authentication required. Essential for legal researchers, compliance officers, and anyone working with BC provincial law.

Quick start: https://www.bclaws.gov.bc.ca/civix/search/complete/fullsearch?q=water

No API key needed — just make a request!

How to Use This API

1. Search BC Legislation

Search for all documents containing "water":

https://www.bclaws.gov.bc.ca/civix/search/complete/fullsearch?q=water

2. JavaScript — Search and Display Results

fetch('https://www.bclaws.gov.bc.ca/civix/search/complete/fullsearch?q=water+protection&format=json')
  .then(r => r.json())
  .then(data => {
    data.results.forEach(r => {
      console.log(`${r.title} — ${r.act}`);
      console.log(`  Citation: ${r.citation}`);
    });
  });

3. Python — Keyword Analysis

import requests

keywords = ['forestry', 'mining', 'fisheries', 'transportation']
for kw in keywords:
    data = requests.get(
        f'https://www.bclaws.gov.bc.ca/civix/search/complete/fullsearch',
        params={'q': kw}
    ).json()
    count = len(data.get('results', []))
    print(f"{kw}: {count} documents found")
Search for water legislation: https://www.bclaws.gov.bc.ca/civix/search/complete/fullsearch?q=water

Frequently Asked Questions

What types of documents can I search?
The API covers BC Consolidated Statutes (acts), Consolidated Regulations, municipal bylaws, and some repealed/spent legislation. Each result indicates its document type.
Does it cover municipal bylaws?
Yes, Civix BC includes municipal bylaws from BC municipalities. The search can be scoped to specific municipalities or government levels.
What format are the results?
The search endpoint returns results that include title, act name, citation, document URL, and relevance score. Documents are available in HTML format for viewing.
How current is the legislation?
BC laws are updated on the Civix platform when new acts or amendments receive royal assent. The system tracks version history for each document.
Can I get the full text of an act?
Each search result links to the full document on bclaws.gov.bc.ca. The document URL follows the pattern /civix/document/id/{documentId}/complete.
Is there a rate limit?
The BC government API has no documented rate limits. As a public service, reasonable usage is expected for research and legal reference.

API Details

API URL
https://www.bclaws.gov.bc.ca/civix/search/complete/fullsearch
Documentation
www.bclaws.gov.bc.ca
Category
Government
Authentication
Not Required
Geographic Coverage
British Columbia, Canada (CA)

What You Can Build