Bclaws

BC Laws

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…

Data & analytics#openapi#open-data

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

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 XML 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.

Please note that you may experience issues when submitting requests to the delivery or test environment if using this OpenAPI specification in other API console viewers.

Endpoints 7

content

  • GETDescribes the documents and directories available within a specific 'aspect' (content group) of the BCLaws library/content/:aspectId
  • GETLists the metadata available for the specified index or directory from the BCLaws legislative respository/content/:aspectId/:civixDocumentId

document

  • GETRetrieves a specific document from the BCLaws legislative repository (HTML format)/document/id/:aspectId/:civixIndexId/:civixDocumentIdThe /document API allows you to retrieve actual documents from the BCLaws legislative repository. To retrieve a document from the repository you need the…
  • GETRetrieves a specific document from the BCLaws legislative repository with search text highlighted (HTML format)/document/id/:aspectId/:civixIndexId/:civixDocumentId/search/:searchStringThe /document API allows you to retrieve actual documents from the BCLaws legislative repository. To retrieve a document from the repository you need the…
  • GETRetrieves a specific document from the BCLaws legislative repository (XML format)/document/id/:aspectId/:civixIndexId/:civixDocumentId/xmlThe /document API allows you to retrieve actual documents from the BCLaws legislative repository. To retrieve a document from the repository you need the…
  • GETRetrieves a specific document from the BCLaws legislative repository with search text highlighted (XML format)/document/id/:aspectId/:civixIndexId/:civixDocumentId/xml/search/:searchStringThe /document API allows you to retrieve actual documents from the BCLaws legislative repository. To retrieve a document from the repository you need the…

search

  • GETA listing of metadata available for the specified aspect and search term from the BCLaws legislative repository/search/:aspectId/fullsearch?q=water&s=0&e=20&nFrag=5&lFrag=100

API details

Base URL
http://www.bclaws.ca/civix
https://www.bclaws.ca/civix
Authentication
None declared in the description
Operations
7 operations on 7 pathsGET 7
Main resources
document 4content 2search 1
Description format
OpenAPI 3.0.0, API version 1.0.0
Listed from
APIs.guru OpenAPI Directory (CC0-1.0)
Source updated

How to test the BC Laws in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the BC Laws collection, without the publisher's secrets.
  3. Add your credentialsOpen the collection's variables or an environment and enter your API key or token, if the API needs one.
  4. Send a requestPick an endpoint, for example “Describes the documents and directories available within a specific 'aspect' (content group) of the BCLaws library” (GET /content/:aspectId), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the BC Laws?

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… It is listed under Data & analytics and has 7 endpoints.

Who publishes the BC Laws?

It is listed from Bclaws's public API description (an OpenAPI document), not published by Bclaws on Swastik Codes. Anyone who controls bclaws.ca can claim the profile by adding a DNS TXT record.

What is the base URL of the BC Laws?

Its description lists 2 base URLs: http://www.bclaws.ca/civix, https://www.bclaws.ca/civix. The first is the usual one; the others are typically sandbox or regional servers.

How do I authenticate with the BC Laws?

Its OpenAPI description does not declare an authentication scheme. Some endpoints may be open; check the provider's documentation before relying on that.

How many endpoints does the BC Laws have?

7 operations on 7 paths (7 GET). The largest groups are document, content, search.

Is forking the BC Laws free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.