with News API and SecurityTrails?
Search through millions of articles from over 150,000 large and small news sources and blogs. See the documentation
Returns the current data about the given hostname. See the documentation
Retrieve live top and breaking headlines for a category, single source, multiple sources, or keywords. See the documentation
Lists out specific historical information about the given hostname parameter. See the documentation
Returns the neighbors in any given IP level range and essentially allows you to explore closeby IP addresses.
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`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
securitytrails: {
type: "app",
app: "securitytrails",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.securitytrails.com/v1/account/usage`,
headers: {
"APIKEY": `${this.securitytrails.$auth.api_key}`,
},
})
},
})