Actions15
Overview
This node integrates with Baidu Netdisk (Baidu Wangpan) API to retrieve information about files stored in a user's cloud storage. Specifically, the "获取文件信息" (Get File Information) resource with the "获取视频列表" (Get Video List) operation fetches a list of video files from a specified directory in the user's Baidu Netdisk account.
Common scenarios for this node include:
- Automating retrieval of video file lists from specific folders in Baidu Netdisk.
- Integrating Baidu Netdisk video content metadata into workflows for media management or processing.
- Filtering and sorting video files based on user-defined criteria such as folder path, recursion, and sorting order.
Practical example:
- A user wants to get the latest 50 videos from their "Movies" folder in Baidu Netdisk, including all subfolders, sorted by date descending. This node can be configured with the folder path, number of items, recursion enabled, and descending order to achieve that.
Properties
Name | Meaning |
---|---|
目录名称 | The directory path to query for video files. Example: "/" for root directory. |
查询数目 | Number of video files to retrieve. Range: 0 to 1000. Default is 100. |
是否递归 | Whether to recursively search subdirectories within the specified directory. Boolean value. |
文件排序 | Whether to sort the results in descending order. Boolean value; false means ascending order. |
Output
The output is an array of JSON objects representing video files retrieved from the specified directory. Each object contains metadata about a video file, such as its name, size, modification date, and other relevant attributes formatted by the helper function formatFileMessage
.
The node does not output binary data directly but provides structured JSON metadata about each video file.
Dependencies
- Requires an API key credential for Baidu Netdisk API authentication.
- Uses internal helper functions and API request wrappers to communicate with Baidu's endpoints.
- No additional external services beyond Baidu Netdisk are required.
- Proper configuration of the Baidu Netdisk API credentials in n8n is necessary.
Troubleshooting
- Empty or incomplete video list: Ensure the directory path (
目录名称
) is correct and accessible. Check if recursion is enabled if you expect files from subfolders. - API errors or failures: May occur due to invalid or expired API credentials. Re-authenticate or update the API key credential.
- Invalid parameter values: For example, setting
查询数目
outside the allowed range (0-1000) may cause errors. - Rate limiting or timeouts: If querying very large directories or many files, consider reducing the number of requested items or enabling recursion carefully.
- Error messages from Baidu API: The node uses error handling to detect API error codes and surface them. Review the error details and verify parameters and credentials.
Links and References
- Baidu Netdisk API Documentation (in Chinese)
- Baidu Netdisk official site: https://pan.baidu.com/