Free Stock Photos
The Pexels API is a powerful tool for developers who want to create
applications and services with stock photo and video content. It provides
access to millions of professional-grade, high-quality images and videos from
over 60,000 contributing photographers and videographers. With the API, you can
quickly access Pexels' database of images and videos, search for the right
content to suit your specific project needs, and add the media to your own
application.
The Pexels API provides a great opportunity to create projects that include
visuals, and here are some examples of what you can do with this API:
No matter what kind of digital creation you’re looking to build, the Pexels API
is there to support your project!
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}`,
},
})
},
})
The Filter API is a great way to build powerful workflows that can manipulate
and transform data. Here are some examples of what you can build using the
Filter API:
export default defineComponent({
async run({ steps, $ }) {
let condition = false
if (condition == false) {
$.flow.exit("Ending workflow early because the condition is false")
} else {
$.export("$summary", "Continuing workflow, since condition for ending was not met.")
}
},
})