with TomTom 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
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
tomtom: {
type: "app",
app: "tomtom",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.tomtom.com/search/2/autocomplete/pizza.json`,
params: {
key: `${this.tomtom.$auth.api_key}`,
language: `en-us`,
},
})
},
})
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`,
},
})
},
})