import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
iplocate: {
type: "app",
app: "iplocate",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.iplocate.$auth.region}iplocate.io/api/lookup/{your_ip_address}`,
params: {
apikey: `${this.iplocate.$auth.api_key}`,
},
})
},
})
IPLocate uses API keys for authentication. When you connect your IPLocate account, Pipedream securely stores the keys so you can easily authenticate to IPLocate APIs in both code and no-code steps.