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
- OpenAPI
- Specification ↗
- Spec updated
- 2021-06-21
Make a first request
Replace the placeholders; the documentation says exactly where credentials go.
curl -X GET "https://news.api.gov.bc.ca/api/FacebookPosts/ByUri" \
-H "Accept: application/json"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);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
| Method | Path | What it does |
|---|---|---|
| GET | /api/FacebookPosts/ByUri | Get a Facebook post based on a Uri |
| GET | /api/Home | Returns the top level content for the home page |
| GET | /api/Ministries | Get all ministries |
| GET | /api/Ministries/{key} | Get the Ministry associated with the ministry key |
| GET | /api/Ministries/{key}/Minister | Get the Minister associated with the ministry key |
| GET | /api/Newsletters | Get 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/Posts | Get 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/ResourceLinks | Get all resource links |
| GET | /api/Sectors | Get all Sectors |
| GET | /api/Sectors/{key} | Get the sector associated with the key |
| GET | /api/Services | Get all Services |
| GET | /api/Services/{key} | Get the service associated with the passed key |
| GET | /api/Slides | Get all Slides |
| GET | /api/Slides/{id} | Get the slide associated to the id |
| GET | /api/Tags | Get all Tags |
| GET | /api/Tags/{key} | Get the Tag associated with the key |
| GET | /api/Themes | Get 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.
Similar open data APIs
Compare alternatives →Search Services
Open DataAPI for Internet Archive's Search-related services
Wayback API
Open DataAPI for Internet Archive's Wayback Machine
Wikipedia
Open DataMediawiki Encyclopedia
Nasdaq Data Link
Open DataThe source for financial, economic, and alternative datasets, serving investment professionals.
University of Oslo
Open DataCourses, lecture videos, detailed information for courses etc. for the University of Oslo (Norway)
Data API
Open DataServes the Clever Data API
Listed from APIs.guru (CC0).