Skip to content

BC Gov News API Service 1.0 API

by gov.bc.ca

No authHTTPSOpen Data
Open documentation ↗

Overview

The official website for the Government of British Columbia.

BC Gov News API Service 1.0 is an open data API from gov.bc.ca. It needs no API key. It is served over HTTPS. Its OpenAPI description documents 27 endpoints.

At a glance

Authentication
No auth
HTTPS
Yes
CORS
Unknown
Category
Open Data
Base URL
https://news.api.gov.bc.ca/
Version
1.0
Endpoints
27
Spec updated
2021-06-21

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://news.api.gov.bc.ca/api/FacebookPosts/ByUri" \
  -H "Accept: application/json"
JavaScript
const response = await fetch("https://news.api.gov.bc.ca/api/FacebookPosts/ByUri", {
  method: "GET",
  headers: {
    "Accept": "application/json",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://news.api.gov.bc.ca/api/FacebookPosts/ByUri",
    headers={
    "Accept": "application/json",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/api/FacebookPosts/ByUriGet a Facebook post based on a Uri
GET/api/HomeReturns the top level content for the home page
GET/api/MinistriesGet all ministries
GET/api/Ministries/{key}Get the Ministry associated with the ministry key
GET/api/Ministries/{key}/MinisterGet the Minister associated with the ministry key
GET/api/NewslettersGet all newsletters
GET/api/Newsletters/Images/{guid}Get the image object reference by of a Newsletter Edition associated with the image guid
GET/api/Newsletters/{newsletterKey}Get a specific newsletter
GET/api/Newsletters/{newsletterKey}/Editions/{editionKey}Returns a specific edition of a newsletter
GET/api/Newsletters/{newsletterKey}/Editions/{editionKey}/Articles/{articleKey}Get an article belonging to a Newsletter edition
GET/api/PostsGet the posts associated with the keys in the list passed in.
GET/api/Posts/Keys/{indexKind}/{indexKey}Get all keys for the specified index (newsroom or category)
GET/api/Posts/Keys/{reference}Get the post key associated with the reference.
GET/api/Posts/Latest/{indexKind}/{indexKey}Get the latest posts of postKind for the specified index (default or category)
GET/api/Posts/LatestMediaUri/{mediaType}Gets the latest Social Media post for the social media type passed in.
GET/api/Posts/{key}Get the post associated with the key
GET/api/ResourceLinksGet all resource links
GET/api/SectorsGet all Sectors
GET/api/Sectors/{key}Get the sector associated with the key
GET/api/ServicesGet all Services
GET/api/Services/{key}Get the service associated with the passed key
GET/api/SlidesGet all Slides
GET/api/Slides/{id}Get the slide associated to the id
GET/api/TagsGet all Tags
GET/api/Tags/{key}Get the Tag associated with the key
GET/api/ThemesGet all Themes
GET/api/Themes/{key}Get the Theme associated with the key

Questions

Does the BC Gov News API Service 1.0 API need an API key?

No. The BC Gov News API Service 1.0 API can be called without an API key or sign-up, which makes it handy for prototypes and front-end demos.

Does the BC Gov News API Service 1.0 API support HTTPS?

Yes, the BC Gov News API Service 1.0 API is served over HTTPS.

How many endpoints does the BC Gov News API Service 1.0 API have?

Its OpenAPI description lists 27 endpoints in version 1.0. All of them are shown on this page.

What are alternatives to the BC Gov News API Service 1.0 API?

Other Open Data APIs include Search Services, Wayback API, Wikipedia, Nasdaq Data Link, University of Oslo.

Compare alternatives →

Listed from APIs.guru (CC0).