Enigma provides fresh, accurate data about the identity and financial health of every small business.
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
The Enigma API enables developers to access data and content from a variety of
sources, including news, weather, and social media. With the Enigma API, you
can build applications that display real-time data, offer insights and
analysis, and provide a variety of other features and services.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
enigma: {
type: "app",
app: "enigma",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.enigma.com/businesses/{your_enigma_id}`,
headers: {
"x-api-key": `${this.enigma.$auth.api_key}`,
"accept": `application/json`,
},
params: {
lookback_months: `1`,
},
})
},
})
// 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
},
})