APIHub
Back to Explore

BCLaws

Access to the laws of British Columbia

Government
No auth required
HTTPS
CORS: Unknown
Visit official documentation

Latency

Not monitored yet

Uptime

Not monitored yet

Playground

Verified

live

Endpoints

REST · JSON
GET

/content/{aspectId}

Describes the documents and directories available within a specific 'aspect' (content group) of the BCLaws library

  • aspectId (path, required) — The identifier of the 'aspect' (content group) to search
GET

/content/{aspectId}/{civixDocumentId}

Lists the metadata available for the specified index or directory from the BCLaws legislative respository

  • aspectId (path, required) — The identifier of the 'aspect' (content group) to search
  • civixDocumentId (path, required) — The document identification code for an index or directory
GET

/document/id/{aspectId}/{civixIndexId}/{civixDocumentId}

Retrieves a specific document from the BCLaws legislative repository (HTML format)

  • aspectId (path, required) — The identifier of the 'aspect' (content group) to search
  • civixIndexId (path, required) — Index identification code
  • civixDocumentId (path, required) — The document identification code for an index or directory
GET

/document/id/{aspectId}/{civixIndexId}/{civixDocumentId}/search/{searchString}

Retrieves a specific document from the BCLaws legislative repository with search text highlighted (HTML format)

  • aspectId (path, required) — The identifier of the 'aspect' (content group) to search
  • civixIndexId (path, required) — Index identification code
  • civixDocumentId (path, required) — The document identification code for an index or directory
  • searchString (path, required) — The text to search for within the document
GET

/document/id/{aspectId}/{civixIndexId}/{civixDocumentId}/xml

Retrieves a specific document from the BCLaws legislative repository (XML format)

  • aspectId (path, required) — The identifier of the 'aspect' (content group) to search
  • civixIndexId (path, required) — Index identification code
  • civixDocumentId (path, required) — The document identification code for an index or directory
GET

/document/id/{aspectId}/{civixIndexId}/{civixDocumentId}/xml/search/{searchString}

Retrieves a specific document from the BCLaws legislative repository with search text highlighted (XML format)

  • aspectId (path, required) — The identifier of the 'aspect' (content group) to search
  • civixIndexId (path, required) — Index identification code
  • civixDocumentId (path, required) — The document identification code for an index or directory
  • searchString (path, required) — The text to search for within the document
GET

/search/{aspectId}/fullsearch

A listing of metadata available for the specified aspect and search term from the BCLaws legislative repository

  • aspectId (path, required) — The identifier of the 'aspect' (content group) to search
  • q (query, required) — query term
  • s (query, required) — first hit (start index)
  • e (query, required) — last hit (end index)
  • nFrag (query, required) — number of fragment snippets to return (< 10)
  • lFrag (query, required) — length of fragment snippets (< 200)

7 endpoints auto-detected

curl -X GET \
  "https://www.bclaws.gov.bc.ca/civix/template/complete/api/index.html/content/{aspectId}"

www.bclaws.gov.bc.ca · HTTPS only