Overview
The node named "glmVideo Node" is designed to interact with a video-related service, specifically supporting operations under the "视频生成" (Video Generation) resource. The provided operation "视频列表" (Video List) allows users to retrieve a paginated list of videos. This node is useful in scenarios where you want to fetch and process video metadata or listings from an external video service within an n8n workflow.
Practical examples include:
- Automatically fetching the latest videos for processing or analysis.
- Integrating video lists into content management systems.
- Triggering workflows based on new video uploads or updates.
Properties
| Name | Meaning |
|---|---|
| page | 页数 (Page number) |
| page_size | 每页数量 (Number of items per page) |
These properties allow users to specify which page of the video list to retrieve and how many videos should be included per page.
Output
The node outputs JSON data representing the list of videos retrieved from the service. Each item in the output array corresponds to a video entry returned by the "视频列表" operation. The exact structure of each video object depends on the external API response but typically includes metadata such as video ID, title, description, URL, duration, etc.
No binary data output is indicated in the source code.
Dependencies
- Requires an API key credential for authentication with the external video service.
- The node uses a resource factory (
ResourceFactory.build(__dirname)) to dynamically build its properties and call methods, implying that additional resource-operation implementations are bundled alongside. - No explicit environment variables are mentioned, but proper API credentials must be configured in n8n.
Troubleshooting
Common issues:
- Missing or invalid API credentials will cause authentication failures.
- Requesting pages beyond the available range may return empty results or errors.
- Network connectivity problems can lead to timeouts or failed requests.
Error messages:
"未实现方法: 视频生成.视频列表"indicates that the requested resource-operation method is not implemented; ensure the correct resource and operation names are used.- Errors during the API call are logged with detailed messages and stack traces.
- If
continueOnFailis enabled, errors for individual items will be captured in the output as error objects instead of stopping execution.
Links and References
- No direct external links are provided in the source code.
- For more information on configuring API credentials in n8n, see the n8n documentation on credentials.
- For general usage of custom nodes and resource-operation patterns, refer to the n8n developer docs.