Actions15
Overview
This node integrates with Baidu Netdisk (Baidu Cloud Storage) APIs to retrieve various types of file information, manage files, and handle shared content. Specifically, for the Resource: 获取文件信息 (File Information) and Operation: 获取视频列表 (Get Video List), it fetches a list of video files from a specified directory in the user's Baidu Netdisk storage.
Common scenarios where this node is beneficial include:
- Automating retrieval of video files stored in Baidu Netdisk for further processing or analysis.
- Building workflows that need to list videos in a folder, optionally recursively, and process metadata such as file names, sizes, and timestamps.
- Integrating Baidu Netdisk video content into other systems or dashboards.
Practical example:
- A user wants to automatically generate a catalog of all videos stored under a specific folder in their Baidu Netdisk account, including subfolders if desired, sorted by date or name.
Properties
Name | Meaning |
---|---|
目录名称 (parent_path) | The directory path in Baidu Netdisk from which to list videos. Default is root directory / . |
查询数目 (num) | The maximum number of video files to return. Range: 0 to 1000. Default is 100. |
是否递归 (recursion) | Whether to recursively search subdirectories within the specified directory. Boolean true/false. |
文件排序 (desc) | Whether to sort the returned video files in descending order. Boolean true/false. |
These properties allow users to customize the scope and ordering of the video list retrieved from Baidu Netdisk.
Output
The node outputs an array of JSON objects representing video files found in the specified directory. Each object contains metadata about a video file, such as:
- File name
- File size
- File path
- Creation/modification timestamps
- Other relevant file attributes provided by Baidu Netdisk API
The output is structured as an array under the json
field for each item. There is no binary data output for this operation; it strictly returns metadata information.
Dependencies
- Requires an active Baidu Netdisk API key credential configured in n8n to authenticate requests.
- Uses Baidu Netdisk REST API endpoints to fetch file lists.
- Relies on internal helper functions for API request handling, error checking, and response formatting.
No additional external services are required beyond Baidu Netdisk API access.
Troubleshooting
Common issues:
- Invalid or expired API credentials will cause authentication failures.
- Specifying a non-existent directory path may result in empty results or errors.
- Requesting too many files (above 1000) will be rejected due to API limits.
- Recursive listing on very large directories may lead to timeouts or performance issues.
Error messages:
- Errors returned from Baidu API calls are surfaced by the node. For example, "Invalid token" indicates authentication failure; re-authenticate your API credentials.
- "Directory not found" means the specified
parent_path
does not exist. - "Exceeded max query count" suggests reducing the
num
parameter below 1000.
To resolve errors, verify API credentials, check directory paths, and adjust parameters accordingly.
Links and References
- Baidu Netdisk API Documentation
- Node documentation URL (from source): https://kkii7i0416.feishu.cn/wiki/DZ9DwGaZqivbh6kCNfIcfwYsnye