BC Laws is an electronic library providing free public access to the laws of British Columbia. BC Laws is hosted by the Queen’s Printer of British Columbia and published in partnership with the Ministry of Justice and the Law Clerk of the Legislative Assembly.

BC Laws contains a comprehensive collection of BC legislation and related materials. It is available on the internet in two forms:

First: The library is available as a web site in which users can browse and search the laws of British Columbia.

Second: The library is available as a portal to legislation in raw XML1 data format, accessible via the BC Laws API2. This direct access to raw data is intended to enable third parties to build or add their own custom applications based on the structure of the data and all the associated search functionality inherent in that structure. The BC Laws website itself is an example of one such application.


The BC Laws API specifies how to search and retrieve from the library’s collection in either form: website or XML.  Data can be returned formatted for display on another web site, or it can be returned as raw XML data for further processing.

Using the API, users can request a list of documents, a specific document, a specific part of a document, a document that contains a search term, a document that contains a search term in a specific part, and more.

The API is updated continually with new features and other changes. If you are interested in working with the BC Laws API, please sign up for our mailing list to get notifications of new features and other changes.

The BC Laws API is made available for use under the permissive Queen’s Printer License found here:

1  XML — eXtensible Markup Language.

2  API — Application Program Interface.

BCLaws API — In Detail