with Chatrace and News API?
Search through millions of articles from over 150,000 large and small news sources and blogs. See the documentation
Retrieve live top and breaking headlines for a category, single source, multiple sources, or keywords. See the documentation
The Chatrace API is a toolkit for building advanced chatbot solutions. With this API, you can streamline customer interactions, automate responses, and integrate your chat systems with various platforms and data sources. Whether you're enhancing customer support, leading marketing campaigns, or gathering insights from user conversations, the Chatrace API, when married with Pipedream's capabilities, allows for extensive automation and integration possibilities.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
chatrace: {
type: "app",
app: "chatrace",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.chatrace.com/page/tags`,
headers: {
"X-ACCESS-TOKEN": `${this.chatrace.$auth.api_token}`,
"Accept": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
news_api: {
type: "app",
app: "news_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://newsapi.org/v2/everything`,
headers: {
"X-Api-Key": `${this.news_api.$auth.api_key}`,
},
params: {
"q": `Computer Science`,
},
})
},
})