with Pexels and HeyGen?
Emit new event when a new curated photo is added to the Pexels curated collection. See the documentation
Emit new event when a specific avatar video event occurs. The user can define a custom set of event(s) to trigger. See the documentation
Emit new event when a photo is published that matches a specified search query. See the documentation
Emit new event when a Heygen video fails during processing. See the documentation
Emit new event when a new avatar video has been successfully generated. See the documentation
Download a specific photo by providing its photo ID and optionally choosing the desired size. See the documentation
Creates a talking photo from a provided image. See the documentation
Retrieve detailed information about a specific photo by providing its photo ID. See the documentation
Generates a video from a selected template. See the documentation
Search for photos on Pexels using a keyword or phrase. See the documentation
The Pexels API provides access to a well-curated library of high-quality photos and videos, all offered under the Pexels license which allows for a broad range of uses. On Pipedream, this API becomes a treasure trove for automations that require dynamic, attractive visuals. Whether for social media posts, content curation, or website updates, you can fetch and utilize rich media programmatically to enhance your digital projects.
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 HeyGen API offers tools for generating visual content, such as social media posts, banners, and other graphics programmatically. Integrating this API with Pipedream allows you to automate the creation and distribution of visual assets based on various triggers and data sources. For example, you can generate new images when a new product is added to your inventory, create customized social media posts from RSS feed items, or even automate weekly visual reports.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
heygen: {
type: "app",
app: "heygen",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.heygen.com/v2/avatars`,
headers: {
"X-Api-Key": `${this.heygen.$auth.api_token}`,
},
})
},
})