import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pexels: {
type: "app",
app: "pexels",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.pexels.com/v1/search?query=people`,
headers: {
"Authorization": `${this.pexels.$auth.api_key}`,
},
})
},
})
Pexels uses API keys for authentication. When you connect your Pexels account, Pipedream securely stores the keys so you can easily authenticate to Pexels APIs in both code and no-code steps.
Anyone with a Pexels account can request an API key, which you will receive instantly.