Automate anything with Abstract APIs
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
The Abstract - IP Geolocation API allows you to request detailed information
about a specific IP address, including country, region, city, latitude and
longitude, and more. This information can be used to build a variety of
applications and services, including:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
abstract_ip_geo: {
type: "app",
app: "abstract_ip_geo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://ipgeolocation.abstractapi.com/v1/?api_key=${this.abstract_ip_geo.$auth.api_key}&ip_address=75.111.82.152`,
})
},
})
// 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
},
})