with SecurityTrails and Currents API?
Returns the current data about the given hostname. 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: {
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
currents_api: {
type: "app",
app: "currents_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.currentsapi.services/v1/search?language=us&keywords=amazon&apiKey=${this.currents_api.$auth.api_token}`,
})
},
})