The Cloudinary API empowers developers to manage media assets in the cloud with ease. It allows for uploading, storing, optimizing, and delivering images and videos with automated transformations to ensure the content is tailored for any device or platform. This API's versatility is key for automating workflows that require dynamic media handling, such as resizing images on-the-fly, converting video formats, or even extracting metadata for asset management.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cloudinary: {
type: "app",
app: "cloudinary",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.cloudinary.com/v1_1/${this.cloudinary.$auth.cloud_name}/resources/image`,
auth: {
username: `${this.cloudinary.$auth.api_key}`,
password: `${this.cloudinary.$auth.api_secret}`,
},
})
},
})
Automated Social Media Content Creation: When a new product image is uploaded to your ecommerce platform, trigger a Pipedream workflow that uses Cloudinary to resize and optimize the image for various social media channels, then automatically post it to Instagram, Facebook, and Twitter using their respective APIs.
User-Generated Content Moderation: Integrate a system where user-uploaded images are sent to Cloudinary via Pipedream, which then uses Cloudinary's AI-powered content moderation to flag inappropriate content. Once moderated, the images could be stored in a secure bucket on Amazon S3 for approved content, while sending alerts to administrators for review if content is flagged.
Dynamic Asset Delivery for Web Applications: Create a Pipedream workflow that listens for new entries in a CMS like Contentful. Upon a new post creation, automatically trigger Cloudinary to generate multiple versions of the associated images (thumbnails, different resolutions, watermarked versions) and update the CMS entry with the optimized image URLs for faster page loads and improved SEO.
Enables you to get a report on the status of your Cloudinary account usage details, including storage, credits, bandwidth, requests, number of resources, and add-on usage. See the documentation
Lists resources (assets) uploaded to your product environment. See the documentation
Transforms images on-the-fly. It modifies them to any required format, style and dimension, resize and crop the images, etc. See the documentation
Transforms image or video resources on-the-fly. It allows transformation options for resource optimization (i.e. web viewing), resize and crop the resources, etc. Image transformation documentation. Video transformation documentation
Uploads media assets in the cloud such as images or videos, and allows configuration options to be set on the upload. See the documentation
Cloudinary uses API keys for authentication. When you connect your Cloudinary account, Pipedream securely stores the keys so you can easily authenticate to Cloudinary APIs in both code and no-code steps.
Enter the cloud name, API key and API secret to connect your Cloudinary account. The API credentials are listed on the Programmable Media page of your Cloudinary console.