Government of British Columbia providing you with current news & info.
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
The BC Gov News API is a powerful tool that allows developers to access a wealth of information about the news and events happening in British Columbia. With this API, developers can create a variety of applications and websites that provide users with up-to-date information on what's happening in the province. Here are a few examples of what you can build using the BC Gov News API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bc_gov_news: {
type: "app",
app: "bc_gov_news",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://news.api.gov.bc.ca//api/Newsletters`,
params: {
"api-version": `1.0`,
},
})
},
})
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})