With the Harry Potter API, you can build applications that:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
harry_potter_api: {
type: "app",
app: "harry_potter_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.potterapi.com/v1/sortingHat`,
params: {
key: `${this.harry_potter_api.$auth.api_key}`,
},
})
},
})
Harry Potter API uses API keys for authentication. When you connect your Harry Potter API account, Pipedream securely stores the keys so you can easily authenticate to Harry Potter API APIs in both code and no-code steps.
Get your API key here