Using govstat with gov.bc.ca

Go integration

Install
go get github.com/blockpane/govstat
Quick start
import "govstat"

// Initialize client
client := govstat.NewClient("YOUR_ACCESS_TOKEN")
Get a list of tags
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://catalogue.data.gov.bc.ca/api/3/action/tag_list
Get the site status
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://catalogue.data.gov.bc.ca/api/3/action/status_show
Get a list of all packages (datasets)
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://catalogue.data.gov.bc.ca/api/3/action/package_list
SDK on GitHub 📄 API Docs
SDK
govstat
Go
API
gov.bc.ca
gov.bc.ca:bcdc
At a glance
Language Go
Endpoints22
Base URLhttps://catalogue.data.gov.bc.ca/api/3