Actions15
Overview
This node integrates with Baidu Netdisk (Baidu Cloud Storage) APIs to perform various operations related to user information, file management, and shared services. Specifically, for the resource 获取文件信息 ("fileinformation") and operation 获取Bt列表 ("btList"), it retrieves a list of BitTorrent files from a specified directory in the user's Baidu Netdisk storage.
Common scenarios where this node is useful include:
- Automating retrieval of torrent file lists from cloud storage folders.
- Integrating Baidu Netdisk file metadata into workflows for further processing or reporting.
- Managing large collections of torrent files stored on Baidu Netdisk by querying and filtering them programmatically.
Practical example:
- A user wants to periodically fetch the latest torrent files added to a specific folder in their Baidu Netdisk account and trigger downstream automation such as notifications or downloads.
Properties
Name | Meaning |
---|---|
目录名称 (parent_path) | The directory path in Baidu Netdisk from which to retrieve the torrent file list. Default is root / . |
查询数目 (num) | The maximum number of torrent files to query and 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 files in descending order. Boolean true/false. |
Output
The output is an array of JSON objects representing the torrent files found in the specified directory. Each object contains metadata about a torrent file, such as its name, size, creation date, and other relevant attributes formatted by the helper function formatFileMessage
.
The node does not output binary data for this operation; it only returns structured JSON metadata about the files.
Dependencies
- Requires an API key credential for Baidu Netdisk API access.
- Uses internal Baidu API endpoints to fetch user and file information.
- Relies on n8n's HTTP request capabilities and helper methods for constructing execution metadata.
- No additional external services beyond Baidu Netdisk are required.
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 queries on very large directories may lead to timeouts or performance issues.
Error messages:
- Errors returned from Baidu API calls are checked and thrown with descriptive messages.
- If the node throws an error about invalid JSON or missing parameters, verify that all required properties are correctly set.
- Network or connectivity issues can cause request failures; ensure stable internet connection.
Links and References
- Baidu Netdisk API Documentation (in Chinese)
- Baidu Netdisk official site: https://pan.baidu.com/
If you need details on other resources or operations, please provide their names.