Actions2
List Media
AI-generatedOverview
This node operation lists media files from the Media Kit API. It is useful for retrieving paginated lists of uploaded media files, allowing users to manage or display media content efficiently. For example, it can be used to fetch media files for a website gallery or to audit uploaded media assets.
Use Case Examples
- Fetch the first 100 media files to display in a dashboard.
- Retrieve the second page of media files with a custom page size for batch processing.
Properties
| Name | Meaning |
|---|---|
| Page Size | Specifies the number of media items to retrieve per page, with a minimum of 10 and a maximum of 1000. |
| Page | Specifies the page number of the media list to retrieve, allowing pagination through the media items. |
Output
JSON
fileName- Name of the media file.mimeType- MIME type of the media file.fileExt- File extension of the media file.fileSize- Size of the media file in bytes.uploadedFileUrl- URL where the uploaded media file can be accessed.
Dependencies
- Media Kit API access via an API key credential
Troubleshooting
- Ensure the API credentials are correctly configured to avoid authentication errors.
- Verify that the page size and page number parameters are within valid ranges to prevent request errors.
- If no media files are returned, check that media files have been uploaded to the Media Kit API.